The backup is from 2012R2.7
The target is version 5.2.7
It appears that there are files missing from the backup. Should I assume the backup is corrupted or just not compatible?
This is the response to my restore:
Code: Select all
root@localhost /tmp> /usr/local/nagiosxi/scripts/restore_xi.sh /root/Downloads/1462203402.tar.gz
tar: usr/local/nagiosxi/var/xi-sys.cfg: Not found in archive
tar: Exiting with failure status due to previous errors
tar: usr/local/nagiosxi/var/xi-sys.cfg: Not found in archive
tar: Exiting with failure status due to previous errors
TS=1462472202
Extracting backup to /store/backups/nagiosxi/1462472202-restore...
In /store/backups/nagiosxi/1462472202-restore/1462203402...
Backup files look okay. Preparing to restore...
Shutting down services...
Restoring directories to /...
Restoring Nagios Core...
Restoring Nagios XI...
Restoring NagiosQL...
Restoring NagiosQL backups...
Restoring NRDP backups...
tar (child): /store/backups/nagiosxi/1462472202-restore/1462203402/nrdp.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Restoring MRTG...
cp: cannot stat ‘/store/backups/nagiosxi/1462472202-restore/1462203402/conf.d’: No such file or directory
Restoring MySQL databases...
Restoring Nagios XI MySQL database...
/usr/local/nagiosxi/scripts/restore_xi.sh: line 253: /store/backups/nagiosxi/1462472202-restore/1462203402/mysql/nagiosxi.sql: No such file or directory
Error restoring MySQL database 'nagiosxi' !