Third Time's the Charm: BIG-IP Backups Simplified with iCall
Published Jun 26, 2013
Version 1.0Was this article helpful?
I've successfully managed to create a working script that uses the ftp protocol for the transfer of the file , just modify the following in the original script , follow these steps :
1. replace the lines
SSH settings
exec scp /var/tmp/$fname.tar.gz USERNAME@SERVER:DIRECTORY
2. with these lines
Make sure ftpcommands.txt file doesnt exist to avoid errors
exec rm /var/tmp/ftpcommands.txt -f
Create ftpcommands.txt file
exec echo "open SERVER" >> /var/tmp/ftpcommands.txt
exec echo "user USERNAME PASS" >> /var/tmp/ftpcommands.txt
exec echo "binary" >> /var/tmp/ftpcommands.txt
exec echo "put /var/tmp/cfg-backups/$fname.tar.gz /DIRECTORY/$fname.tar.gz" >> /var/tmp/ftpcommands.txt
exec echo "bye" >> /var/tmp/ftpcommands.txt
Run ftp copy procedure
exec ftp -n < /var/tmp/ftpcommands.txt
good luck !