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_maintenancePaste this to the end of the file: TFTPSERVER=10.10.10.10tftp $TFTPSERVER -v -m binary -c put /var/airwave-backup/nightly_data001.tar.gz $TFTPSERVER:nightly_data_`date +%m_%d_%y`.tar.gzChange 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_maintenanceAfter 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.
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.