Sundaresh_88805
Sep 15, 2015Nimbostratus
Automate Backup
Hi,
I ran the below script to automate the UCS backup. I can see the output moved over FTP when I run the script manually. However, when I schedule in cronjob, I am not seeing the file moved in FTP server, but the file is created /var/tmp. Please advise.
!/bin/bashexport a=
date +"%y%m%d"
export aa=$HOSTNAME.$a
tmsh save /sys ucs $aa
export b=/var/tmp/$aa.ucs
mv /var/local/ucs/$aa.ucs $b
FILE="xyz.$a.ucs"
ftp -n IP <
Regards, Sundaresh