It appears to be working correctly but throws up some errors which are wrong and states that it is exiting and it doesn't!
Code: Select all
# /usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/nagiosxi.1445428805.tar.gz
[b]tar: nagiosxi.1445428805/nagiosxi.tar.gz: Not found in archive[/b]
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
tar: nagiosxi.1445428805/nagiosxi.tar.gz: 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
TS=1445490501
Extracting backup to /store/backups/nagiosxi/1445490501-restore...
In /store/backups/nagiosxi/1445490501-restore/nagiosxi.1445481005...
Backup files look okay. Preparing to restore...Had a look at the nested tarball (via tar tzf ) and the file nagiosxi.1445428805/nagiosxi.tar.gz definitely exists so not sure why it's reporting that it can't find it?
The restore script is the latest
Code: Select all
# ls -la /usr/local/nagiosxi/scripts/restore_xi.sh
-rwxr-x--- 1 nagios nagios 8111 Oct 22 13:03 /usr/local/nagiosxi/scripts/restore_xi.shRegards.... Fred