Forum Discussion
Automatic backup of BIGIP LTM
Can Anybody suggest me how to take automatic backup in BIG IP LTM v11.2? I want to take weekly backup of system configuration automatically .
Pls help on this .
- Thomas_GobetNimbostratus
Here is the script in which I added the ftp upload section.
!/bin/bash $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 <
- Indrajit_Basak_NimbostratusDear Thomas , Thanks for your post . Can you pls little bit elaborate . Means step by step to do the same . Where to write this script . Is it in /etc/cronweekly ???? Then how to make this file executable ... Pls help on this
- Indrajit_Basak_NimbostratusHi , I have configured 00 3 * * * tmsh save /sys ucs /var/ucs/XYZ. ucs in crontab for automatically store the UCS backup file in F5 . Now pls let me know step by step procedure for automated FTP Backup
- Indrajit_Basak_Nimbostratus
Hi , I have configured 00 3 * * * tmsh save /sys ucs /var/ucs/XYZ. ucs in crontab for automatically store the UCS backup file in F5 .
Now pls let me know step by step procedure for automated FTP Backup
- Indrajit_Basak_Nimbostratus
Can Anybody help on this ?
- Thomas_Gobet_91Cirrostratus
You just have to make some changes on the script upper.
What you did before might not be good, because you're going to erase each occurrence of your UCS file (because it will always have the same name).With my script below, your UCS will have the date as filename.
Here it is :
!/bin/bash $DATE=`date "+%m_%d_%y"` Here we create the ucs archive tmsh save sys ucs $DATE Here we do the same with ftp ftp -n your_server <
What you have to define is : Your_Username, Password and Backup_Directory
- Indrajit_Basak_NimbostratusThanks a lot Thomas . So after writing this script in bash shell how to run it in crontab . I want weekly backup ( Means backup will happen every thrusday at 3 AM automatically and transfer to FTP Server . Can you pls help on that
- Thomas_GobetNimbostratus
You just have to make some changes on the script upper.
What you did before might not be good, because you're going to erase each occurrence of your UCS file (because it will always have the same name).With my script below, your UCS will have the date as filename.
Here it is :
!/bin/bash $DATE=`date "+%m_%d_%y"` Here we create the ucs archive tmsh save sys ucs $DATE Here we do the same with ftp ftp -n your_server <
What you have to define is : Your_Username, Password and Backup_Directory
- Indrajit_Basak_NimbostratusThanks a lot Thomas . So after writing this script in bash shell how to run it in crontab . I want weekly backup ( Means backup will happen every thrusday at 3 AM automatically and transfer to FTP Server . Can you pls help on that
- Thomas_Gobet_91Cirrostratus
In crontab, you have 2 options :
The first one is to add your script in : /etc/cron.weekly/
The second one is to add a line in /etc/crontab like that :0 4 * * 0 Your_script
It will run your script every week (on Sunday) at 4am.
- Sugraman_297082Nimbostratus
Hi I know its a old post, but thought of asking since this procedure is not creating the ucs file. below is what i have done. Not sure what i am missing here.
[root@lb-1a:Active:In Sync] cron.hourly more ucs.sh
!/bin/bash$DATE=
date "+%m_%d_%y"
tmsh save sys ucs $DATE.ucs
[root@lb-1a:Active:In Sync] etc more crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""
HOME=/
run-parts01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthy
01 * * * * root ucs.sh
- Thomas_GobetNimbostratus
In crontab, you have 2 options :
The first one is to add your script in : /etc/cron.weekly/
The second one is to add a line in /etc/crontab like that :0 4 * * 0 Your_script
It will run your script every week (on Sunday) at 4am.
- Sugraman_297082Nimbostratus
Hi I know its a old post, but thought of asking since this procedure is not creating the ucs file. below is what i have done. Not sure what i am missing here.
[root@lb-1a:Active:In Sync] cron.hourly more ucs.sh
!/bin/bash$DATE=
date "+%m_%d_%y"
tmsh save sys ucs $DATE.ucs
[root@lb-1a:Active:In Sync] etc more crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""
HOME=/
run-parts01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthy
01 * * * * root ucs.sh
- Mahmoud_Eldeeb_CirrostratusI prefer to go with Config Backup for F5 utility its a VM appliance with GUI interface and very easy to manage.find it in below link http://sourceforge.net/projects/f5configbackup/
- Mahmoud_Eldeeb_Cirrostratus
I prefer to go with Config Backup for F5 utility its a VM appliance with GUI interface and very easy to manage.find it in below link http://sourceforge.net/projects/f5configbackup/
- Shann_P_160848NimbostratusWe use this too. Extremely easy setup and very good documentation.
- bcrogerzCirrus
suggest to get an Manager Software like AppViewX or EM or Big iQ for basic maintenance of the F5s
Recent Discussions
Related Content
* 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