Greetings everyone,

it took me a while and finally i made it.. ;-) I have added the option to switch to and delete the snapshot that was created during backup. However, if you do that, you lose the suspended state of the container as the memory dump will be lost if the container is not running when you do the switch (or) delete. Is that correct or a misunderstanding on my side?

When restoring the container without switch & delete of the snapshot, start it up it comes up in exactly the state it was backed up (with the memory restored). If i then delete the snapshot (without switching to it), everything is where it was backed up. Switching to it would also do it but it looks like it automatically does that when restoring a suspended container?

Am i mistaken here or is my interpretation correct?

Regards,
Andreas

5. September 2013 11:37

It seems like you will have an active snapshot after the restoration.
You probably have to add "vzctl snapshot-switch" & "vzctl
snapshot-delete" to your vzprestore.sh.

3. September 2013 22:56
Greetings everyone,

as i have recently converted my containers to use ploop storage, i was in need of a backup functionality that can be used on cronjobs. I have now the first working version of my backup and restore scripts, which are available at

https://github.com/andreasfaerber/vzpbackup

If you're interested, please have a look and let me know, what you think, if you find any bugs or suggest improvements.

Thanks, Regards,
Andreas

_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to