Skip to content

Instantly share code, notes, and snippets.

@johnkary
Last active December 18, 2015 10:19
Show Gist options
  • Select an option

  • Save johnkary/5767837 to your computer and use it in GitHub Desktop.

Select an option

Save johnkary/5767837 to your computer and use it in GitHub Desktop.
Keep VM directory in sync instead of using VirtualBox shared folders or NFS. Ensure the remote directory exists and is chown vagrant:vagrant
#!/bin/sh
while true ; do
# gem install vagrant-sync
# vagrant sync --from ~/Sites/project --to /project
rsync -arq --delete ~/Sites/project vagrant@33.33.33.10:/
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment