Wil_Schultz_101
Jun 18, 2007Nimbostratus
How do you backup your BigIP?
So, this isn't iRule related but I'm wondering what other people do.
We have two BigIP's, an "Active" one and a "Passive" one. So what we do is set up a crontab entry on the primary bigip that config sync's to the secondary every night if it's active, and on the secondary I've created an NFS mount and set up another crontab entry that backs up the entire /config directory onto this export. Also some cleanup includes deleting backups that are a month old.
Incase you are interested, here are the scripts... Also post what you do!
primary bigip, configsync:
!/bin/bash
Created by WilS to ConfigSync the primary bigip to the secondary bigip
Added only on the primary bigip
file: /bin/configsync.sh
Added to /etc/crontab:
01 1 * * * root /bin/configsync.sh > /dev/null 2>&1
Variable to make sure we're active
STATE=`/bin/ps1`
Check to make sure we're primary
if [ $STATE == "Active" ] ; then bigpipe config sync all; fi
secondary bigip, backup after configsync:
!/bin/bash
Created by WilS to backup the secondary bigip to /export/backup
Added only on the secondary bigip
file: /bin/backup.config.sh
Added to /etc/crontab:
10 1 * * * root /bin/backup.config.sh > /dev/null 2>&1
Grab the files in /config and tar.date them
cd /
tar zcvf /export/backup/bigip2.`date +%m%d%Y`.tgz ./config
Remove all the files that are a month old...
find /export/backup/ -name 'bigip2.*.tgz' -mtime +31 |xargs rm