Forum Discussion
francisco_1_162
Nimbostratus
Feb 12, 2008BIGIP (LTM/GTM) Automated Backup
Just a quick question guys, is it possible to automate the backup configuration for the BIGIP. I have read a doc on askf5 to manaually backup and restore config's but i dont have time to do that. Ple...
Kevin_Davies_40
Nacreous
Jan 23, 2014!/bin/bash
host=`echo $HOSTNAME | awk -F. '{ print $1 }'`
date=`date +%Y%m%d`
/usr/bin/tmsh save /sys ucs backup_${host}_${date}.ucs
/usr/bin/find /var/local/ucs -name backup_${host}_\*.ucs -mtime +30 -exec rm {} \;
Save the above to a new file called /config/mybackup and add the following line to /config/startup.
[ ! -L /etc/cron.daily/mybackup ] && ln -s /config/mybackup /etc/cron.daily/mybackup
Now run the following commands to complete the configuration.
chmod +x /config/mybackup
ln -s /config/mybackup /etc/cron.daily/mybackup
Kevin_Davies_40
Nacreous
Jan 23, 2014The mybackup script should carry over to an upgraded config and be stored in a UCS archive. If for any reason the symbolic link goes away the command in /config/startup will recreate it. The find will remove any backups older than thirty days. Just check the backup size as 30 of them may take up too much space.
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