Re: Copy contents of /Database maybe?

Home Page Forums Network Management ZeroShell Saving "Temporary" profile? Re: Copy contents of /Database maybe?

#53546

gordonf
Member

/Database is the mount point where the current Zeroshell profile is stored. /DB would normally mount to the first hard drive and then individual profiles would appear as directories in there.

Make a new profile normally, but don’t activate it. Note the directory’s name, like “_DB.001”. Then try going to a Bash prompt on the router’s console (or SSH?) and try this:

mount /dev/sda1 /DB (or whatever partition device it is)
/bin/cp -brf /Database/* /DB/_DB.001/

This should (I think) copy your current (temporary) profile to the new profile, including any VPN configuration. You should then be able to activate that profile and it should retain the contents of your temporary profile.

I DO NOT KNOW if this will work; it’s just something I tried to do without actually reproducing a complicated profile.