Rsync vs SCP

I use rsync and scp commands to transfer files from one machine to another.

Recently I discovered  a distinctive feature and write it here to not forget.

rsync is atomic. It does a copy into a temporary file and then renames this temp file.

scp on the other hand creates the filename initially. So in case of network problems your software can be very unhappy about file only half-done.