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
# 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]
Yes - with this version of the restore script it does complete successfully after I enter the "y"
So now we are still left with the initial error as I can't run the restore via cron and I don't want to fudge it by sending a 'Y' as it then won't restore the plugins and other binaries.
So now we are still left with the initial error as I can't run the restore via cron and I don't want to fudge it by sending a 'Y' as it then won't restore the plugins and other binaries.
I see what you mean. I created a new internal bug report/testing task. As this is not an *actual* bug (backup/restore works fine if you follow the steps, outlined in our docs), it may take some time before/if we fix the issue (not a priority issue). We will let you know when we have a possible solution for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Thanks - though I'm more inclined to think it is a bug as you are trying to restore a file from a path in the tarball that only exists if the timestamp is used as the tarball filename.
This daily export/import is part of the HA strategy I've employed at this site, so it would be really helpful (to me!) to get a resolution on this sooner rather than later.
- Prod server exports Nagios files & configs
- DR server pulls backup file & imports into Nagios
- Prod Server updates DR Server via NSCA