marcelotk15 / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 0 forks source link

Backup and restore config without web interface #246

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Is there such a way to backup and restore config data via ssh/telnet not web 
interface.
I expect there is a file that consists all config data and can be altered but 
could not find the correct file.

The file /etc/default/config seems to have all data but it is overwritten at 
every startup, then no way to save and run the changes.

Original issue reported on code.google.com by olg...@gmail.com on 26 Nov 2011 at 10:24

GoogleCodeExporter commented 8 years ago
I find myself a solution like following,

Backup:
copy and pack complete tree of /etc in to USB storage:
#tar cvzf /usb/[disk name]/configbackup.tgz /etc

Restore:
untar etcbackup.tgz in to /etc:
#tar xvzf /etc /usb/[disk name]/configbackup.tgz

Save changes in to flash:
/usr/share/snake/config save

Original comment by olg...@gmail.com on 12 Dec 2011 at 10:18