Page 1 of 1

Incremental backup using snapshots.

Posted: 30. Jan 2013, 12:54
by usefree
Hello.

1. I have installed on two pc's (pc1 and pc2) identical configuration: Ubuntu 12.04 x86_64, virtualbox 4.1.12, extension pack for it.
2. I have created virtual machine with windows on my pc1.
3. I used VBoxManage export/import in order to have 2 identical Virtual machines on my pc1 and pc2.
4. After that i worked on virtual machine on pc1 (installed soft, etc).
5. I make snapshot of virtual machine on pc1.

How can i use this snapshot in order to get on virtual machine of pc2 the same state, as on pc1 (with all changes, that were made after export/import operations)?

Re: Incremental backup using snapshots.

Posted: 30. Jan 2013, 13:35
by mpack
You can't. For one thing, if you used export/import then the VMs on the two PCs are not identical, they are only related - which is not good enough if you intend to graft on an hdd difference image. Second, if your list is accurate then you made the changes and then took the snapshot... that aint gonna work. Finally, snapshots are not backups, they are just markers on a timeline.

If you want to keep VMs on two PCs synchronised then start by simply copying the VM folder from one PC to the other (use Machine|Add to register the VM on the 2nd PC). After that you can copy the bare VDI as required after changed as made. Under no circumstances should you use snapshots in either VM.

Re: Incremental backup using snapshots.

Posted: 30. Jan 2013, 14:06
by usefree
mpack wrote:simply copying the VM folder from one PC to the other (use Machine|Add to register the VM on the 2nd PC).
Thanks,
as i understood from your reply, i have to copy files of Virtual machine from pc1 to pc2, then create new virtual machine and in progress of creation add copied before *.vdi file of virtual machine of pc1?
Is it possible to use Rsync, if i am not mistaken it does incremental copying?

Re: Incremental backup using snapshots.

Posted: 30. Jan 2013, 15:41
by mpack
You copy the complete VM folder, with all contents, to the 2nd PC. You register the VM there using the Machine|Add... menu item and browse to the .vbox file. You do not create a new VM. You do not need to do anything special with the vdi at this point. Only later will copying be necessary if you want to keep the two PCs synced.

As to the rsync question, within reason you can run any software on a virtual PC that you could on any other PC.