Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is rsync up to and including 1.6.3 only one-directional? #4118

Closed
JimOser opened this issue Jun 27, 2014 · 2 comments
Closed

Is rsync up to and including 1.6.3 only one-directional? #4118

JimOser opened this issue Jun 27, 2014 · 2 comments

Comments

@JimOser
Copy link

JimOser commented Jun 27, 2014

Just to clarify is rsync up to and including 1.6.3 only one-directional?

https://github.com/mitchellh/vagrant/blob/master/CHANGELOG.md
states:

New synced folder type: rsync - Does a one-time one-directional sync to the guest machine. New commands vagrant rsync and vagrant rsync-auto can resync the folders.

Are all the other rsync changes up to and including 1.6.3 also only referring to sync being one-directional sync?

Also https://github.com/mitchellh/vagrant-aws/blob/f8525a265a83aa2d32e25c46f1ceae6f82d887a4/README.md

first mentions:

Minimal synced folder support via rsync.

then later states:

There is minimal support for synced folders. Upon vagrant up, vagrant reload, and vagrant provision, the AWS provider will use rsync (if available) to uni-directionally sync the folder to the remote machine over SSH.

http://docs.vagrantup.com/v2/synced-folders/index.html
states:

Synced folders enable Vagrant to sync a folder on the host machine to the guest machine, allowing you to continue working on your project's files on your host machine, but use the resources in the guest machine to compile or run your project.

However:
#3062

has 2 solutions to make syncing bidirectional:

  1. Steven Merrill
    smerrill

    https://github.com/smerrill/vagrant-rsync-back

  2. Alex Rodionov
    p0deje

vagrant ssh-config > vagrant-ssh-config
rsync --archive -z --exclude .vagrant/ --exclude Vagrantfile --exclude .git --exclude tmp --exclude .bundle -e 'ssh -F vagrant-ssh-config' default:/vagrant/ .
rm vagrant-ssh-config

The above is probably also related to:

#4111

@mitchellh
Copy link
Contributor

The rsync in Vagrant is currently one directional.

@jayunit100
Copy link

is anyone planning on making it two way for 1.6+ or 1.7?

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants