Re: NagiosXI restore problem
Posted: Mon Mar 17, 2014 12:58 am
Thanks - I downloaded both the backup & restore scripts. It still fails at the first step because it can't find the file my-hostname/nagios.tar.gz in the tarball because it is saved with the timestamp -
# tar tzf /store/backups/nagiosxi/my-hostname.tar.gz | grep nagios.tar.gz
1395034202/nagios.tar.gz
This is how I ran the commands:
Create the Backup
Restore
# tar tzf /store/backups/nagiosxi/my-hostname.tar.gz | grep nagios.tar.gz
1395034202/nagios.tar.gz
This is how I ran the commands:
Create the Backup
Code: Select all
/usr/local/nagiosxi/scripts/backup_xi-update.sh -n `/bin/hostname -s`Code: Select all
# cd /store/backups/nagiosxi
# /usr/local/nagiosxi/scripts/restore_xi-update.sh /store/backups/nagiosxi/my-hostname.tar.gz
tar: [b]my-hostname/nagios.tar.gz[/b]: Not found in archive
tar: Exiting with failure status due to previous errors
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
WARNING: you are trying to restore a backup on a 64-bit system
Plugins and other binaries will NOT be restored.
Are you sure you want to continue? [y/N]