Skip to content

Permission problems under Windows (cygwin rsync) #8

@cbeier

Description

@cbeier

With some shared folders I have some problems to rsync back the files to the host machine (Windows 8.1). I use rsync with cygwin, version 3.1.1.

$ vagrant rsync-back
==> default: Rsyncing folder: /codebase/ => /cygdrive/c/Users/Christian/Workspace/Codebase/Codebase
==> default:   - Exclude: [".vagrant/", ".git/"]
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /cygdrive/c/Users/Christian/Workspace/Codebase/Codebase
Guest path: /codebase/
Command: rsync --verbose --archive --delete -z --chmod=ugo=rwX -e ssh -p 2222 -o StrictHostKeyChecking=no -i 'C:/Users/Christian/Workspace/Codebase/vagrant/.vagrant/machines/default/virtualbox/private_key' --exclude .vagrant/ --exclude .git/ vagrant@127.0.0.1:/codebase/ /cygdrive/c/Users/Christian/Workspace/Codebase/Codebase
Error: rsync: failed to set permissions on "/cygdrive/c/Users/Christian/Workspace/Codebase/Codebase/Projects": Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [generator=3.1.1]

My Vagrantfile:

  config.vm.synced_folder "../Codebase", "/codebase", :type => "rsync", :rsync__args => ['--verbose', '--archive', '--delete', '-z', '--copy-links', '--no-perms'], :rsync__exclude => [".git/"]

I have also tried to use the noacl flag in the fstab file from cygwin (http://i-cat.blogspot.de/2010/01/cygwinnontsec-in-cygwin-17-speak.html):

none /cygdrive cygdrive binary,posix=0,user,noacl 0 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions