Problem when excluding unreadable files via pattern and using --fake-super
Martin Sander
mrt.sander at gmail.com
Tue Jun 9 05:30:42 MDT 2015
Hey,
I am experiencing a problem when excluding files that are not readable by
the user on the source side.
rsync version is 3.1.1. on debian jessy.
Here is a "minimal" example:
# preparation:
$ mkdir -p source/subdir
$ touch source/subdir/ignored_file
$ sudo chown root:root source/subdir/ignored_file
$ sudo chmod 600 source/subdir/ignored_file
$ mkdir destination
# without --fake-super it works:
$ rsync -av --exclude="/subdir/*" source/ destination/
sending incremental file list
sent 90 bytes received 13 bytes 206.00 bytes/sec
total size is 0 speedup is 0.00
# with --fake-super it does not:
$ rsync -av --fake-super --exclude="/subdir/*" source/ destination/
sending incremental file list
rsync: failed to read xattr user.rsync.%stat for
"/tmp/blubb/source/subdir/ignored_file": Permission denied (13)
sent 90 bytes received 13 bytes 206.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous
errors) (code 23) at main.c(1183) [sender=3.1.1]
Is this behavior expected? Does rsync actually have to read the xattrs of
ignored files?
Thanks and kindest regards,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20150609/c95676f8/attachment.html>
More information about the rsync
mailing list