Backup Scripts - A collection of useful backup scripts that will backup network infrastructure items such as:
* Sonicwall Firewalls
* HP Procurve Switches (scp support needed)
* Bluecoat Packetshapers
* Vyatta Routers
This script can backup any number of sonicwalls on your network to a given FTP server, simply schedule it with cron.
The filename for the backup is:
prefs_[description]_[datetimestamp].exp
Where [description] is the description you assign in the appliance declaration, and [datetimetamp] is the timestamp in the format yyyymmddhhmmss.
SONICWALLS = (
('192.168.168.168','admin', 'password', 'TEST-FW', 'NSA 2400'),
('192.168.168.168','admin', 'password', 'TEST-FW-2', 'NSA 2400'),
)
The format for the above tuple items is as follows:
('IP Address','username', 'password', 'host-description', 'System Name')
System Name MUST match the host name when you log into the system e.g.
NSA 2400>
In the above default NSA 2400 config, the system name MUST be NSA 2400 otherwise the backup will fail to run.
FTP_SERVER = '10.xxx.xxx.xxx' #FTP Server Address
FTP_USERNAME = 'myftpusername' #FTP Username
FTP_PASSWORD = 'mystrongpassword' #FTP Password
Simply replace the above strings with your details at the top of the file before running.
sonicwall.py requires pexcept by Noah, this can be downloaded from http://www.noah.org/wiki/pexpect
All the Above are licensed under the MIT license, please see the license file for details!