Hello All,
This script is especially for those users who wants to take automatic backup of SRX Firewall on their ftp server's.
In our case, we were taking the configuration backup of around 15-20 SRX Firewalls and doing this manually is really a time consuming job. After working long I created a script which will take the backup of configuration and save this file with "HostName" and "Date", so that we can easily identify that in this backup file is containing backup of which firewall and taken on what date.
2 steps process is given below :
Step-1 : copy or create a new file in /cf/root folder naming "backup". ( you can also test the same file from command line, syntax is : "sh /cf/root/backup")
Step-2 : Create a cron tab job for scheduling this file as a backup job.
command is : crontab -e
0 0 * * 0 sh /cf/root/backup > /cf/root/cronlog
Above job will run the "sh /cf/root/backup" command on every Sunday at 00:00 Hrs. this is nothing but run the script file and log all the entries in another file i.e. /cf/root/cronlog.
That's all...
Cheersssssssss...
Deepak Chopra