Why are files that I download with rsync from a server a different size on the client? This caused rsync to keep redownloading until I added the `–ignore-existing` argument.
This shows the downloading of a file, listing its size and then sshing to the server and listing the size and it shows different size. Some files are a few bytes bigger, some are smaller.
/ # rsync --rsh="sshpass -p $SSH_PASSWORD ssh -o StrictHostKeyChecking=no" -azv --ignore-existing --progress -h "$SSH_USER@$SSH_HOST:${SOURCE}name/season/episode.mkv" "${DESTINATION}test3"
receiving incremental file list
episode.mkv
759.89M 100% 47.61MB/s 0:00:15 (xfr#1, to-chk=0/1)
sent 43 bytes received 759.73M bytes 32.33M bytes/sec
total size is 759.89M speedup is 1.00
/ # ls -ls /data/tv/test3
742084 -rwxrw-r-- 1 root 1002 759889988 Mar 25 20:06 /data/tv/test3
/ # ssh $SSH_USER@$SSH_HOST
user@server's password:
Last login: Wed Mar 25 ...
user@cream:~$ ls -ls downloads/tv/name/season/episode.mkv
742088 -rw-rw-r-- 1 user user 759889988 Mar 24 00:15 'downloads/tv/name/season/episode.mkv'