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. Please advise.
28 Replies
- Leon_Kyneur_542
Nimbostratus
Simple answer = yes. Add /bin/bigpipe config save /path/to/backup.ucs to your system crontab daily/hourly/weekly/whatever. - francisco_1_162
Nimbostratus
leonkyneur,
Thanks for the instruction mate. i am not familiar with the command line on the BIGIP. Can you please give me more detail explanation. I already use WinSCP to manage files on the BIGIP to move and edit files - JRahm
Admin
The bigip is linux under the hood, so a google search for system-related management will help you out next time.
This will create a file in /etc/cron.daily (daily backup) that will archive your configuration to /var/tmp/daily_archive.ucs.
echo \\!\/bin\/bash > /etc/cron.daily/config_archive
echo " " >> /etc/cron.daily/config_archive
echo \/bin\/bigpipe config save \/var\/tmp\/daily_archive.ucs >> /etc/cron.daily/config_archive
chmod +x /etc/cron.daily/config_archive - francisco_1_162
Nimbostratus
Like i said i am not linux expert but the command below do i execute on the BIGIP under the CLI to create a file in /etc/cron.daily (daily backup) that will archive ymy configuration to /var/tmp/daily_archive.ucs?
echo \\!\/bin\/bash > /etc/cron.daily/config_archive
echo " " >> /etc/cron.daily/config_archive
echo \/bin\/bigpipe config save \/var\/tmp\/daily_archive.ucs >> /etc/cron.daily/config_archive
chmod +x /etc/cron.daily/config_archive - dennypayne
Employee
Yes, you can just execute those lines in sequence on the CLI. Be aware though that this may not survive an upgrade of the unit.
Denny - francisco_1_162
Nimbostratus
good stuff. thanks all for your help.... - francisco_1_162
Nimbostratus
ok. now i have a file called "config_archive" under /etc/con.daily and also under /var/tmp/ i have my daily backup file "daily_archive.ucs" . Now is it possible to name daily backup file (with date tag) under /var/tmp/ for each day instead of having just one daily_archive.ucs file? so each day i can have a backup file with the date and time.
Also i would like to pull the backup ucs file and back it up to a share on the network automatically. - dennypayne
Employee
I'm sure you could change the line in the config_archive to output something using a date variable instead of just "daily_archive.ucs" but you would eventually run into disk space problems if that wasn't cleaned up regularly. Is your BIG-IP configuration really changing daily? Most of the time it is sufficient to create and store an archive at the point each configuration change is made, which is easily done in the GUI after you have made your changes.
As far as copying it off box, you could use ftp or scp executed in your daily config_archive script to copy it to a box that can accept ftp or scp. Something like:
echo ftp \/var\/tmp\/daily_archive.ucs user@{SOME IP ADDRESS} >> /etc/cron.daily/config_archive
Again using a date variable instead of the daily_archive.ucs name if you went that route (I don't recall the bash syntax off the top of my head).
But it seems like a lot of work to do that unless your configuration is really changing that much.
Denny - francisco_1_162
Nimbostratus
Denny,
Thanks. Much appreciated.
Franco. - francisco_1_162
Nimbostratus
Denny,
sorry just one final question- where about does the bipip save the echo ftp command if i need to modify it?
cheers
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