I updated our XI environment to 5.6.13 last Thursday and since that time we have been unable to perform restores using system backups.
Everyday we create a backup of our Production server, copy the backup to our Failover server and then restore the backup of Prod to the Failover to ensure it gets any changes that may have occurred the prior day. Since updating to 5.6.13, the SSH transfer of the Prod backup works, but when the Failover system tries to perform the restore it fails and all of the databases go offline.
Here's the script we're using to perform the restore:
Code: Select all
root@nagiosxi-lv:/home/nagios/scripts> cat failover_restore
#!/bin/bash
#
#copy mangebackups data
#cp /usr/local/nagiosxi/html/includes/components/scheduledbackups/managebackups.php /home/nagios/scripts/managebackups_html.php
#cp /usr/local/nagiosxi/tmp/nagiosxi/nagiosxi/basedir/html/includes/components/scheduledbackups/managebackups.php /home/nagios/scripts/managebackups_tmp.php
#
#executes the restore program, uses the ls command to get the name of the backup file and attaches that to the path
/usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/restore/`ls /store/backups/nagiosxi/restore`
#
#restore managebackups data
#cp /home/nagios/scripts/managebackups_html.php /usr/local/nagiosxi/html/includes/components/scheduledbackups/managebackups.php
#cp /home/nagios/scripts/managebackups_tmp.php /usr/local/nagiosxi/tmp/nagiosxi/nagiosxi/basedir/html/includes/components/scheduledbackups/managebackups.php