Skip to content

Nmishin/backup-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backup-scripts

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

Configuration

sonicwall.py:

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.

Defining appliances:

  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.

Defining FTP Server Details:

  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.

Prerequisites:

sonicwall.py requires pexcept by Noah, this can be downloaded from http:https://www.noah.org/wiki/pexpect


Licensing

All the Above are licensed under the MIT license, please see the license file for details!

About

Backup Scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published