Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently set up a handy Arch Linux development environment inside a VirtualBox VM on Windows 7.

How can I keep this development environment in version control so I can simply "check out" the environment itself on a new computer?

What VirtualBox files do I need in version control besides the .vdi file?

How can I use rsync to keep two VMs in sync?

I'm not interested in backing up the VM once by hand, exporting an "appliance," or fiddling with a GUI to achieve this; the syncing/versioning process must be completely scriptable.

share|improve this question

Try using git-annex & bup.

bup does the rsync thing.

git-annex relaxes the git 'duplicate the lot' requirement; so you could have your entire VirtualBox data distributed across multiple storage media, and have configurable per-file data redundancy.

Both are scriptable. No more snapshot woes.

This link has further details about git, git-annex and bup.

What VirtualBox files do I need in version control besides the .vdi file?

I am using a *pre-oracle version of VirtualBox. For my antique version: in addition to the vdi files, I also maintain all the vbox config files; so that's all the xml under the /machine/ directory & also the main VirtualBox.xml file.

share|improve this answer
nb: due to my status &the ongoing need for tellytubbyland policing, i was unable to post this third link@ a random blog with some further details – violet313 Feb 27 '12 at 15:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.