Problem with permissions
matt at mattmccutchen.net
Sat Nov 28 15:15:56 MST 2009
On Fri, 2009-11-27 at 11:38 -0600, Chris Adams wrote:
> rsync --stats -v -axH --inplace --delete --rsync-path="rsync --fake-super" / user at remote:/backup/root/
> My problem is that there is a local directory that has permissions 0111
> ("d--x--x--x"), and rsync throws an error trying to set the xattr:
> rsync: failed to read xattr user.rsync.%stat for "/roach/backup/root/tcb/lib": Permission denied (13)
> It appears that rsync knows to create remote files with u+rw, but not
> directories. Is this a bug, or am I missing something?
Yes, it's a bug. The fake-super code does add u+rwx to directories, but
then the directory-retouching code wrongly activates and sets the
permissions back to what they were. Patch forthcoming...
More information about the rsync