Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

Automate Transferring Nightly Backups to a TFTP Server 

Jun 26, 2014 07:16 PM

 

Make a copy of the post_nightly_maintenance.sample file and open it for editting:
# cp /var/airwave/custom/post_nightly_maintenance.sample /var/airwave/custom/post_nightly_maintenance
# vim /var/airwave/custom/post_nightly_maintenance

Paste this to the end of the file:
TFTPSERVER=10.10.10.10
tftp $TFTPSERVER -v -m binary -c put /var/airwave-backup/nightly_data001.tar.gz $TFTPSERVER:nightly_data_`date +%m_%d_%y`.tar.gz

Change the IP address variable, TFTPSERVER from 10.10.10.10 to your TFTP server's IP address.

To test the script, you can run it immediately instead of waiting for nightly maintenance to call it by doing:
# /var/airwave/custom/post_nightly_maintenance

After the script finishes, please make sure your TFTP server received the file successfully and it is not corrupt. The script will transfer every nightly backup with the date in the file name. It does not overwrite existing nightly backups.

Statistics
0 Favorited
3 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.