|
|
|
@ -38,6 +38,7 @@ do_secondary() {
|
|
|
|
echo "We are the secondary. Expanding package from the primary."
|
|
|
|
echo "We are the secondary. Expanding package from the primary."
|
|
|
|
mysqlfile=`ls -tr1 /store/backups/nagiosxi/ | tail -1`
|
|
|
|
mysqlfile=`ls -tr1 /store/backups/nagiosxi/ | tail -1`
|
|
|
|
[ -z "$mysqlfile" ] && echo "No MySQL Backup file." && exit 2
|
|
|
|
[ -z "$mysqlfile" ] && echo "No MySQL Backup file." && exit 2
|
|
|
|
|
|
|
|
./restore_xi.sh $mysqlfile
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case "$hostname" in
|
|
|
|
case "$hostname" in
|
|
|
|
|