I am syncing between rsync 3.0.4 and several 3.0.7 versions on mostly windows 2003 R2.
When updating to 3.0.7 I ran into many permission problems:
When using option -a i got the following error: rsync: chown "/CMS/hard/somePath.html" (in depot) failed: Invalid argument (22)
after much trying around i setteled for
rsync --recursive --times --compress --verbose --stats --delete
But that messed up the directory rights on the target machine: 2 or 3 folders below suddenly the user svccwrsync did not have any permissions left. Any use of --owner --perms --group causes many errors telling me that the operation (chown, chgroup ...) failed.
Now i added the local svccwrsync user to the local admin group and it seams to be better now. Is there any better solution?
Here is a short rsyncd.conf and a sample sync call, maybe anyone got a hint for me
use chroot = false strict modes = false log file = /cygdrive/d/Sites/rsyncd.log pid file = rsyncd.pid lock file = rsyncd.lock max connections = 2 secrets file = rsyncd.secrets uid=0 gid=0 [somePath] comment = php application checking depotserver storage use path = /cygdrive/D/test/rsyncTest read only = false transfer logging = yes auth users = CWsync
and the call goes like this
SET CWRSYNCHOME="C:\Program Files\cwRsync" SET CYGWIN=nontsec SET HOME=%HOMEDRIVE%%HOMEPATH% SET CWOLDPATH=%PATH% SET PATH=%CWRSYNCHOME%;%PATH% SET RSYNC_PASSWORD=youDoNotNeedToKnow rsync --recursive --times --compress --verbose --stats --delete /cygdrive/d/somePath/ CWsync@someHost::somePath