cannot rsync when source directory lacks write permission

Brian J. Murrell brian at interlinx.bc.ca
Fri Jul 27 11:26:14 MDT 2012


I seem to be running into a problem where I am trying to rsync from a
source directory that lacks write permissions (i.e. r-xr-xr-x).
Presumably this is because rsync creates the directory on the
destination, then sets the permissions to match the source and then
tries to sync the contents of the directory, which it cannot of course
lacking write permission in the directory.

Is there a way to have rsync first sync a directory and then set the
permissions to match the source?  Of course, this needs to be done
recursively so that permissions are set as rsync ascends back up the
directory tree.

Cheers,
b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20120727/07a56b0d/attachment.pgp>


More information about the rsync mailing list