Forum Discussion
Automatic configuration backup on LTM box
Hi Everyone, I was looking for a possible way if my F5-LTM box can take the configuration backup after every 24hours and stores it on the F5-Box with date. Also if it is possible that the box sends this backup to a FTP server or creates an email and send's it to a configured e-mail id.
Regards,
- Thomas_GobetNimbostratus
I've never see something like that on the WebUI.
What I usually do when it's needed is to call a bash script with a cron entry.In /etc/crontab you could add the line :
0 1 * * * your_script_path
Just in case you need the tmsh command it's :
tmsh save sys ucs your_ucs_filename
It will be saved under /var/local/ucs/ path
- TechgeeegNimbostratus
Thanks Thomas for the reply what I am looking for is the automatic timely backup not a manual one. How can this be achieved as there is no such option in the GUI for this.
- TechgeeegNimbostratus
Thanks Thomas for the reply what I am looking for is the automatic timely backup not a manual one. How can this be achieved as there is no such option in the GUI for this.
- TechgeeegNimbostratus
Thanks Thomas for the reply what I am looking for is the automatic timely backup not a manual one. How can this be achieved as there is no such option in the GUI for this.
- TechgeeegNimbostratus
Thanks Thomas for the reply what I am looking for is the automatic timely backup not a manual one. How can this be achieved as there is no such option in the GUI for this.
- EmadCirrostratus
And how do you want that automatic backup like placing it of FTP or scp on daily basis?
- Thomas_GobetNimbostratus
What I gave you is a timely based script call.
In this script you can scp once the ucs is generated.
- Kevin_StewartEmployee
You have basically two options:
-
Create a timed event on the local system that backs up the config. Thomas' crontab example is a frequently used option. You can also create an external monitor to do the same thing, and then tie the monitor to a "phantom" pool, a pool not bound to a VIP. This enables cron-like timed functionality, and is itself generally backed up with the config. Your script could very easily archive and SCP/FTP the archive off-box at regular intervals. You could even potentially monitor the config for significant changes and only archive it then.
-
Use an external management product like F5 Enterprise Manager or BIG-IQ. EM natively archives and stores remote LTM configurations, and can run in a VM.
-
- TechgeeegNimbostratus
Hi Thomas, As I am not very expert with script so I will need a little help so what you have explained I need little more description how to do it or if you can refer me to any reading.
Regards,
- Thomas_GobetNimbostratus
Hi,
You don't really need to create a script if you're not confident in it. With crontab you can call every bash command you want.
For example you can do that :
0 1 * * * "tmsh save sys ucs my_file_name" 15 1 * * * "scp /var/local/ucs/my_file_name user@your_destination_server:path
It will create a backup every day at 1am and copy it with scp to your server at 1.15am
If you want here is a script which will make what you want :
!/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 scp /var/local/ucs/$DATE user@ip_server:path
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