Forum Discussion
Stephen_Spence_
Nimbostratus
Sep 04, 2013Backup script for F5 LTM and FTP the UCS off to another server
I am trying to automate backups on my F5 LTMs.
I have downloaded the following script and tried to run it.
For Version 11.x branch
https://devcentral.f5.com/wiki/AdvDesignConfig.LTM_Backup_Shell_Scri...
Alton_104690
Nimbostratus
Nov 04, 2013This scripts works with V9 and V10.
create the script called ftpbackup.sh
"vi ftpbackup.sh"
!/bin/sh
ftp server ip address
HOST='10.2.2.5'
ftp user name
USER='ftp_user'
ftp password
PASSWD='passw0rd1234'
check if LTM is active node or stanby node
A=$(bigpipe failover show | grep -c "active")
store date, to appended to end of the ucs file
D=$(date +%d_%m_%Y_%H-%M-%S)
store the hostname of the ltm node
U=$(uname -n)
remove all old ucs files
rm -f /var/local/ucs/*.ucs
case ${A} in
if ltm is active do a config sync and wait 60 sec and generate a ucs file
"1") bigpipe config sync; sleep 60; bigpipe config save $U-$D; echo " active unit";;
if lmt not active wait before creating the ucs file
"0") sleep 180; bigpipe config save $U-$D; echo "Standby unit";;
esac
ftp to remote ftp server
ftp -inv $HOST <
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
