Page 1 of 1

Restore a snapshot on a new VM

Posted: Thu Dec 04, 2014 5:15 am
by S54326
Hi,

Has anyone managed to restore an XI snapshot taken form one machine onto a new machine?

I'm not talking about using backup and restore scripts because the backup contains PHPs and binaries which may be corrupt so I don't want the corruped files restored to the new machine.

What I've done is take a good snapshot from the old machine (from /usr/local/nagiosxi/nom/checkpoints/nagioscore) copied to the new machine, changed the file permissions, gone to the Configuration Snapshots web page where it appears in the list, clicked on the restore icon, then the web page promptly displays "This snapshot doesn't exist"

Steve

Re: Restore a snapshot on a new VM

Posted: Thu Dec 04, 2014 4:18 pm
by lmiltchev
To be honest with you, I haven't tried this but I believe there is another file that you need in "/usr/local/nagiosxi/nom/checkpoints/nagiosxi/" directory. Try moving this file to the new VM as well.

Re: Restore a snapshot on a new VM

Posted: Fri Dec 05, 2014 9:34 am
by S54326
That was it :D

So you grab the two files from "/usr/local/nagiosxi/nom/checkpoints/nagioscore/" and the one from "/usr/local/nagiosxi/nom/checkpoints/nagiosxi/" all with the same timestamp. Copy them to the new VM. Check/change user permissions. Go to the Configuration Snapshots web page, click restore and hey presto the snapshot gets restored. Just run a verify etc. etc. afterwards.

Thanks

Re: Restore a snapshot on a new VM

Posted: Fri Dec 05, 2014 10:59 am
by cmerchant
Good, we'll go ahead and close this thread. Thanks.