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

rsync behaves badly with '*' char in rsync__exclude (seems only on windows) #4069

Closed
clementbethuys opened this issue Jun 20, 2014 · 1 comment

Comments

@clementbethuys
Copy link

Hi,

I'have been hit by a bug (seems only on windows)

If we use in Vagrantfile
rsync__exclude: ['folder_name/*']
and 'folder_name' exist in Vagrant directory (which is not the synced directory)

Rsync will mess up.
I believe the 'folder_name/*' string is interpreted by the windows shell.

I created a minimal github repo to reproduce the case https://github.com/clementbethuys/vagrant_bug.git

A basic workaround is to use instead

rsync__exclude: ['folder_name/']
and then create the folder on the VM (if necessary)

Versions I use

Vagrant 1.6.3 (and at least 1.5.2)
rsync version 3.0.9 (cygwin)
shell, cygwin or git shell
@mitchellh
Copy link
Contributor

Vagrant doesn't subprocess rsync into a shell, it uses CreateProcess directly (avoiding any shell expansion). This sounds like maybe rsync is expanding it improperly. I've seen this happen when rsync is itself a shell script passing the arguments through. Can you verify this?

I was unable to repro your issue and haven't heard anyone else with it. Closing until I can repro.

@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

2 participants