Few questions
x09 opened this issue · 1 comments
x09 commented
Hi,
I have two questions about kvmBackup
- Backing up only VM that are is active? Is this a requirement? VM that are is inactive are not possible?
- If VM have a snapshots then backup is not possible too?
bunop commented
Hi @x09 ,
- I wrote this script years ago, but for what I remember it should work with an inactive instance: the point is if your VM is turned off, you can copy the image without any problem. This software was written to make a copy of the disk of a running machine, creating a snapshot to solve issues that could arise when modifying the VM disk during the back-up process (see our wiki for a more complete description)
- Regarding having a snapshot during the copy, I think it will break if a snapshot is already present during backup. Consider that when you have a snapshot all the changes to the disk are directed to the snapshot, so you require to back-up the VM disk and all the snapshots to have a full back-up. Ideally, you should modify this code to track the VM disk and the user defined snapshots and eventually fail if a snapshot of a prevision run is found (has an error occurred?)
If you have the possibility, I suggest to take a look at proxmox: it lets you to create a cluster of Host machines, with the possibility to migrate VM between host instances. You can have a light virtualization with LXC and the backups (and snapshots) are well supported.
Hope it helps