Indrajit_Basak_
Mar 23, 2014Nimbostratus
Automatic weekly backup transfer to FTP
Hi , I have configured 00 3 * * * tmsh save /sys ucs /var/ucs/XYZ. ucs in crontab -e and weekly backup is working fine in local . Now I need to schedule automatically transfer to backup files to FTP server .
Got the script from devcentral for FTP transfer
$DATE=
date "+%m_%d_%y"
Here we create the ucs archive
tmsh save sys ucs $DATE
Here we copy it to your server with scp
scp /var/local/ucs/$DATE user@ip_server:path
Here we do the same with ftp
ftp -n your_server <
Now I am little bit confused where to write this script and how it will relate to cronjob ?? Can anybody help on this .
Regds.....