I've got an rsync script which functions fine, however often only partial files are found on the destination - these files are neither resumed nor deleted. This is better explained with some examples:
Code:
Source:
~ # ls -alh /shares/files/An_big_file.mkv
-rw-r--r-- 1 User jewab 1.2G Nov 28 2011 /shares/files/An_big_file.mkv
Destination:
freenas:~# ls -ltrh /mnt/Tank/An_big_file.mkv
-rw-r--r-- 1 504 admin 133M Jun 27 21:45 /mnt/Tank/An_big_file.mkv
The rsync command I've been using:
rsync -avrutz --delete -e ssh /shares/files/ root@$REMOTE_IP:/mnt/Tank/
What I want is for new files on the source to be rsynced over, files which dont exist on the source to be deleted and any files which are incomplete to be deleted (or resumed) another time. I also want to keep any files which exist on the destination (this is calculated by size). Any help at all - what am I doing wrong here?