The scheduler found in System > Maintenance > Scheduler can be used to setup a weekly push of a backup archive to a third party SSH server. However, when using a Windows server as the third party backup destination, the free application WinSCP is an easier option to use for pulling a weekly backup from the Smoothwall.
How do I set up a Windows SSH server with keys in order to backup my Smoothwall configuration?
To do this you will need WinSCP installed from http://winscp.net/eng/download.php.
Note: WinSCP is a third party piece of software which allows file transfer over the SSH Protocol.
The process is to install WinSCP and then create a batch file that can be run on a weekly schedule. The batch file will instruct WinSCP to connect to the Smoothwall and synchronize the content of the folder where the backup archives are stored on the Smoothwall to a local folder.
- Download and install WinSCP to the required server.
- Create a batch file containing the following information:
"c:\Program Files\WinSCP\WinSCP.exe" /console /command "open scp://root:%RootPW%@%Host%:222" "synchronize local -criteria=either %LocalDir% %RemoteDir%" "exit"
passwordis the root password of the Smoothwall
Smoothwall_IPis the Smoothwall's internal IP address the Windows server connect to
directory_pathis the full path of the local directory on the Windows server where the backups should be copied to, for example,
/var/archiveas this is the path to the directory on the Smoothwall where the backups are stored
This will instruct the Smoothwall to make a backup on a weekly basis on the day and hour set, as well as create a backup archive when the system is rebooted. The pruning will insure that only the latest backup archives are retained.