overwrite read-only file with inplace option
Bram Vandoren
bram.vandoren at kuleuven.be
Thu Jan 11 14:49:54 UTC 2018
Hello,
rsync is unable to overwrite read-only destination files with the
--inplace option. I think this is expected behavior but not convenient
for our case. I wrote a small patch that in case of an permission denied
error, adds the owner write bit to the permissions and tries to open the
destination file again for write again.
It's not very elegant but it solved our problem. I attached the patch in
case it's useful for someone.
Cheers,
Bram
--
Institute of Astronomy
Universtity of Leuven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: change-permission-for-inplace-write.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/rsync/attachments/20180111/655f1d5f/change-permission-for-inplace-write.bin>
More information about the rsync
mailing list