Forum Discussion
Afroz_Ahmad_114
Nimbostratus
Apr 01, 2014F5 Ltm Backup Script
Hello Experts,
Reference:- https://devcentral.f5.com/wiki/AdvDesignConfig.LTM_Backup_Shell_Script.ashx
I have taken reference from above URL and modified and have used below script to take backup o...
Afroz_Ahmad_114
Nimbostratus
Apr 01, 2014Yes version is 10.x. I intentionally put "export MName <192.168.1.100/F5> because i wanted all my FTP related files to go under F5 folder only.
However i have tried with "export MName <192.168.1.100> it didn't work either.
Other steps that i did after creating script.
Created a file called backup_cron_scriptv10.sh in /etc/cron.daily, and executed by chmod 775 "backup_cron_scriptv10.sh"
Below is the script.
b config save /var/tmp/BIG-IP_backup
export a=`date +"%y%m%d"`
export aa=$HOSTNAME.$a.ucs
export b=/var/tmp/$aa
mv /var/tmp/BIG-IP_backup.ucs $b
tar -cf /var/tmp/certs.tar /config/ssl
export ff=$HOSTNAME.$a.certs.tar
export f=/var/tmp/$ff
mv /var/tmp/certs.tar $f
export c=$HOSTNAME.$a.crontab
export cc=/var/tmp/$c
cp /etc/crontab $cc
export MName=<192.168.1.100/F5>
export Log=/var/tmp/log.bigip
export UserName=admin
export UserPassword=admin
export Machine1f2=$aa
export Machine1f3=$c
export Machine1f4=$ff
ftp -nvd ${MName} <<-END 1>&2 > ${Log}
user ${UserName} ${UserPassword}
bin
put ${b} ${Machine1f2}
put ${cc} ${Machine1f3}
put ${f} ${Machine1f4}
quit
END
rm -f ${b}
rm -f ${cc}
rm -f ${f}
RTN_CODE=$?
exit $RTN_CODE
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects