I'm trying to set up a full server backup using rsync 3.0.6. I'm using
--fake-super, and SSH keys to access a remote server as a normal user.
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?
The full command I'm using is:
rsync --stats -v -axH --inplace --delete --rsync-path="rsync
--fake-super" / user at remote:/backup/root/
I have to put --fake-super in the remote command only, because the
system I'm backing up doesn't support extended attributes.
--
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
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... -- Matt