Make a copy of the post_nightly_maintenance.sample file and open it for editting:
# cp /var/airwave/custom/post_nightly_maintenance.sampl
# vim /var/airwave/custom/post_nightly_maintenance
Paste this to the end of the file:
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:
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.