Hacker News new | ask | show | jobs
by kree10 5250 days ago
Also don't forget that rsync does not overwrite a remote file until it's completely uploaded.

Compare to ftp, sftp and scp, which overwrite the file from the start, possibly breaking your site during the transfer (or definitely breaking your site if the transfer dies part-way through).

1 comments

> Also don't forget that rsync does not overwrite a remote file until it's completely uploaded.

which is really troublesome when you're transferring a big file and the target doesn't have enough space for a second copy of that particular file. I, for one, would prefer that "feature" to be optional.

Take a look at rsync's "--inplace" option. I think this does what you want.