On 05/02/2013 11:54 AM, Noel Kelly wrote: > > Hi All, > > I have the annoying problem thrown up by the latest versions of rsync > not being able to set the uid and/or the xattr when dirvish is backing > up from a cygwin rsyncd service running on Windows. > > I have read many posts about using 'fake super' to get around this but I > can't seem to get the right dirvish configuration set up to null this > error. The backup works it is just this rsync error causes dirvish to > flag it as bad and the backups grow bigger each night! > > I know my dirvish configs are ostensibly fine because I do a second > dirvish backup using an older version of rsync and it works perfectly. > > My problematic dirvish config using rsync 3.0.9: > > client: 192.168.70.250 > tree: :Floorplans > xdev: 1 > index: gzip > image-temp: latest > expire-default: +350 days > > rsync-option: > --no-super > rsync-option: > --fake-super > rsync-option: > --no-xattrs > > > The cygwin rsyncd.conf on Windows 2012 running rsync 3.0.9 looks like this: > > log file = /var/log/rsyncd.log > fake super = yes > uid = 0 > gid = 0 > > [Floorplans] > path = /cygdrive/c/Shared/Floorplans > read only = no > hosts allow = 192.168.5.0/24 > use chroot = no > lock file = /var/log/rsync-floorplans.lock > log file = /var/log/rsyncd-floorplans.log > > > I have tried running the rsync command from the summary with some > amendments and it works absolutely fine with no error: > > ACTION: rsync -vrltH --delete -pgo --stats -D --numeric-ids -x > --no-super --fake-super --no-xattrs > --exclude-from=/data/rotation/floorplans/latest/exclude > --link-dest=/data/rotation/floorplans/20130408/tree > 192.168.70.250::Floorplans/ /data/rotation/floorplans/latest/tree > > > The rsync_error log from last night shows: > > rsync: failed to write xattr user.rsync.%stat for > "/data/rotation/floorplans/latest/tree/systembackup": Operation not > supported (95) > rsync error: some files/attrs were not transferred (see previous errors) > (code 23) at main.c(1536) [generator=3.0.9] > > Previous configurations with settng 'fake-super' on the cygwin > rsyncd.conf side got me this so I feel I have progressed somewhat: > > uid 4294967295 (-1) is impossible to set on > "/data/rotation/floorplans/latest/tree/abc.efd" > rsync error: some files/attrs were not transferred (see previous errors) > (code 23) at main.c(1536) [generator=3.0.9] > > > Any advice much appreciated as I have run out of ideas on how to fix or > troubleshoot this further!
This works for me: use chroot = false strict modes = false hosts allow = 192.168.232.103 log file = rsyncd.log fake super = yes [test] path = /cygdrive/d/public read only = false transfer logging = yes UID = 0 GID = 0 fake super = yes [etel] path = /cygdrive/d/public/etel read only = false transfer logging = yes UID = 0 GID = 0 fake super = yes /root/bin/rsync-novanished.sh -vrltH --delete --stats -z -D --numeric-ids tamas _______________________________________________ Dirvish mailing list [email protected] http://www.dirvish.org/mailman/listinfo/dirvish
