Smoothwall CLI backup

by Mike 29. March 2009 13:23
Just a quick note - if you ever need to backup your SmoothWall 3.0 configuration from a script / etc, try the following:

wget http://<ipaddress>:81/cgi-bin/backup.img --http-user=admin --http-password=<password> --post-data="ACTION=Create backup floppy image file" -O fwbackup-`date -I`.img

where ipaddress is the internal IP of your fw and password is your admin/root password. This will create a file called fwbackup-timestamp.img in the local directory. Stick this in a crontab and you're ready to go.

Tags:

Comments

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen