Forum Discussion
Backup using External Monitor
Hi,
We are trying to automate the backup using external monitor.Tried using the below script.Looks like monitor is marking the pool as UP but the content(UCS)is not getting copied over to the destination. Please suggest.
!/bin/bash IP=
echo ${1} | sed 's/::ffff://'
PORT=${2}
PIDFILE="/var/run/basename ${0}
.${IP}_${PORT}.pid"
if [ -f $PIDFILE ]
then
kill -9 cat $PIDFILE
> /dev/null 2>&1
fi
echo "$$" > $PIDFILE
tmsh save sys ucs today && scp /var/local/ucs/today.ucs user@${IP}:/var/tmp/backups/ && ssh user@${IP} ls /var/tmp/backups |grep "today" 2>&1 > /dev/null
if [ $? -eq 0 ]
then
echo "UP"
fi
rm -f $PIDFILE
exit- Dylan_375544Cirrocumulus
You could always use Crontab to schedule your backup and send it over. There is some good info in THIS post from a little while back.
Hope that helps! If it does please upvote and select this answer, it’d be greatly appreciated!
-Dylan
Another option is to use iCall, as detailed in this article by Jason Rahm: BIG-IP backups simplified with iCall
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