Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rsync does not properly set permissions on Windows folder

I'm using rsync on Windows 7 (in particular, cwrsync). I'm using a simple command as such:

rsync -r --perms --delete /cygdrive/c/Users/Michael/Documents/Personal/ /cygdrive/c/Users/Michael/Documents/Personal_Backup/

The recursive copy works fine, except if I was to (right-click/Properties/Security tab) on any folder created by rsync on the destination; I get the following pop-up message:

The permissions on {folderName} are incorrectly ordered, which may cause some entries to be ineffective.

I also tried the --acls option but get the following error:

recv_acl_access: value out of range: ff rsync error: error in rsync protocol data stream (code 12) at acls.c(690) [Receiver=3.0. rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(610) [sender=3.0.8]

In any case, I just want to use rsync correctly so that viewing the Security permissions in Windows won't throw an error.

like image 799
Michael Avatar asked Nov 04 '22 18:11

Michael


1 Answers

Michael,

This solution suggests that you should not be using --perms, but using --chmod=ugo=rwX instead.

Good luck!

Dotan

like image 131
bizna Avatar answered Nov 15 '22 06:11

bizna