rsync has --fake-super, the ability to store metadata in extended attributes, e.g. in case the filesystem does not support metadata or the user does not have permission to chown() etc. However, it also still chown()'s and chmod()'s if it can, even with --fake-super, if I pass --uid, --perms, etc. If I do not pass those flags, then it does not chown() and chmod(), but also doesn't store that information in the extended attributes. It would be nice if there was an option to prevent any sort of metadata storage on the destination filesystem (and files would only be created according to the umask). Maybe this should even be inherent in the use of --fake-super. The reason is that I have a few files and directories with 0000 permissions and those create errors on the destination, when storing the backups themselves to tape. It seems a bit counterproductive to store metadata externally but also insist on using chmod() if possible.
Note that ACLs can change permissions too.
We believe that the bug you reported is fixed in the latest version of
rsync, which is due to be installed in the Debian FTP archive:
rsync_3.0.9-1.diff.gz
to main/r/rsync/rsync_3.0.9-1.diff.gz
rsync_3.0.9-1.dsc
to main/r/rsync/rsync_3.0.9-1.dsc
rsync_3.0.9-1_amd64.deb
to main/r/rsync/rsync_3.0.9-1_amd64.deb
rsync_3.0.9.orig.tar.gz
to main/r/rsync/rsync_3.0.9.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 536755@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Paul Slootman <paul@debian.org> (supplier of updated rsync package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
Format: 1.8
Date: Tue, 04 Oct 2011 18:54:56 +0200
Source: rsync
Binary: rsync
Architecture: source amd64
Version: 3.0.9-1
Distribution: unstable
Urgency: low
Maintainer: Paul Slootman <paul@debian.org>
Changed-By: Paul Slootman <paul@debian.org>
Description:
rsync - fast, versatile, remote (and local) file-copying tool
Closes: 536755 586551 586707 587567 605731 614098 635603 639632 640869
Changes:
rsync (3.0.9-1) unstable; urgency=low
.
* new upstream release.
* Bumped Standards-Version to 3.9.2.0 (no change necessary).
* manpage no longer shows erroneous default for --delete-before.
(upstream fix)
closes:#640869,#587567
* manpage now mentions that --files-from sorts the filenames.
(upstream fix)
closes:#536755
* init.d script checks nice value correctly now.
closes:#586707
* fixed typo in comment in sample script rrsync.
closes:#635603
* Updated package description and included homepage line.
closes:#614098
* Correct error message when using --delete-delay when dying in certain cases.
See also #587567
closes:#586551
* included rsync.service file for systemd, supplied by Michael Stapelberg.
closes:#639632
* conflict with duplicity < 0.6.11 as that tries to use rsync:// in
combination with ::module syntax, which is not allowed (but used to be
accepted in older rsync versions).
closes:#605731
Checksums-Sha1:
63c2f3ab9f032bfffab9b8df108733be68c9a4ca 977 rsync_3.0.9-1.dsc
c64c8341984aea647506eb504496999fd968ddfc 792725 rsync_3.0.9.orig.tar.gz
55a8a902682fc0c7e421b9fdf70d2dd1c81d1d84 20824 rsync_3.0.9-1.diff.gz
854ec69feb03731ed85416d7d6cfbc54eb0311e9 366726 rsync_3.0.9-1_amd64.deb
Checksums-Sha256:
028514d8a8e42fca0f2f905c36ac55ae4f6a3d47898827305c494d4ea0a7a527 977 rsync_3.0.9-1.dsc
30f10f8dd5490d28240d4271bb652b1da7a60b22ed2b9ae28090668de9247c05 792725 rsync_3.0.9.orig.tar.gz
6b726fd1525004dfcf365cff54a9ae1962f2b75c803e6c58426ae6fbca19d376 20824 rsync_3.0.9-1.diff.gz
3faca4d2f247415c4412ed2a518bb3f77bc53dde833aa2d7d783bedfd25d94c8 366726 rsync_3.0.9-1_amd64.deb
Files:
43bcda59cef3aafc8507776ae930c5fa 977 net optional rsync_3.0.9-1.dsc
5ee72266fe2c1822333c407e1761b92b 792725 net optional rsync_3.0.9.orig.tar.gz
f759de5854e024530e27cf309f549b5c 20824 net optional rsync_3.0.9-1.diff.gz
8bcc806d51964b1614df363f8941e22c 366726 net optional rsync_3.0.9-1_amd64.deb
iD8DBQFOnuCZutvvqbTW3hMRAlE8AKCPjAsy3tzTS0Ub/NqNRiO7/Y/X/QCfW34O
9Me3AT+a/hHsvpD+xn+uwPE=
=4CHt
-----END PGP SIGNATURE-----
reopen 536755 thanks I seem to have entered the wrong bug number here, sorry :( It's not closed by the upload of 3.0.9-1. Paul