Page 1 of 1

VDI on remote server - script to copy back and forth?

Posted: 28. Oct 2009, 23:54
by zero0ne
This is what Id like to Do:

VDI image: stored on remote fileserver

Script that copies the VDI image from the fileserver to my local machine.
When I am done with using it, I can turn it off, and then run a new script that updates the VDI on the fileserver with all changes.

This of course is "easy" to do, problem is a 8GB VDI image will take a bit to copy over. Is there any way to just copy over the changes?

If i put the single file in a GIT repository, do you think it would correctly update only the changes? what about using dd.exe to run a comparision and then a change?

Is this possible at all even!?

Re: VDI on remote server - script to copy back and forth?

Posted: 29. Oct 2009, 00:37
by Sasquatch
If you want to least amount of data to be transferred each time you want to sync, use snapshots and compare the local files with the remote files and transfer the new snapshot and XML files. Hashes can be created to make sure the correct files are transferred and are transferred correctly. MD5 can be used as a file hash, but some think that's not enough and resort to SHA1 or stronger. Backup software can handle this too.

But, why the trouble of all this? Do you run the VM on other systems too or just this one Host? If only on one Host, why not periodically, like once a week, back up the files instead of after each run?

Re: VDI on remote server - script to copy back and forth?

Posted: 29. Oct 2009, 11:54
by vbox4me2
zero0ne wrote:This of course is "easy" to do, problem is a 8GB VDI image will take a bit to copy over. Is there any way to just copy over the changes?
rsync is your word for today.