4 ms·
I wonder if this could be used as a replacement for Vagrant's rsync feature.[1] From Vagrant's documentation: Vagrant can use rsync as a mechanism to sync a
by pmoriarty 12y ago
I wonder if this could be used as a replacement for Vagrant's rsync feature.[1]
From Vagrant's documentation:
Vagrant can use rsync as a mechanism to sync a folder to the
guest machine. This synced folder type is useful primarily in
situations where other synced folder mechanisms are not
available, such as when NFS or VirtualBox shared folders aren't
available in the guest machine.
The rsync synced folder does a one-time one-way sync from the
machine running to the machine being started by Vagrant.
The disadvantage of the above is that it's a one-time, one-way sync. SFS would overcome this limitation, if I'm not mistaken.
[1] http://docs.vagrantup.com/v2/synced-folders/rsync.html http://docs.vagrantup.com/v2/synced-folders/rsync.html
- Lethalman 12y agoVagrant could run inotify+rsync periodically from both ends. It works for few files. SFS is when doing an rsync of a whole tree is not an option, in case of a big number of files.
- geerlingguy 12y agoIt's one-time right now (though there's an open ticket to make it bidirectional [1]), but you can use `vagrant rsync-auto` to watch for changes and continously sync. I posted an article a few weeks ago highlighting one of the reasons I use rsync rather than NFS shares with Vagrant [2]. Though I would love to see FUSE+rsync (like this article mentions) as a default/standard option in Vagrant! [1] https://github.com/mitchellh/vagrant/issues/3062 https://github.com/mitchellh/vagrant/issues/3062 [2] http://www.midwesternmac.com/blogs/jeff-geerling/nfs-rsync-and-shared-folder http://www.midwesternmac.com/blogs/jeff-geerling/nfs-rsync-a...