John R Pierce wrote:
Les Mikesell wrote:
Rsync normally creates the updated file under a tmp name and renames only when the transfer is complete. It has the advantage that if you repeat the tranfer with unchanged files it doesn't actually do it so you don't have to track which files in a directory need to be updated - and it should work over ssh anywhere you could use scp.
I thought the default mode for rsync involved block checksumming and only sending blocks that changed, which get written in place. there's options which modify this behavior.
No, the default creates a new file that is renamed only when complete. This is much healthier for files that may be in use - or transfers that fail. Only the differing blocks are transfered but a new complete copy is reassembled from the old file and changes.