overwrite read-only file with inplace option
bram.vandoren at kuleuven.be
Thu Jan 11 14:49:54 UTC 2018
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.
Institute of Astronomy
Universtity of Leuven
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 627 bytes
Desc: not available
More information about the rsync