Hi,
I have a rsync backup script that use to work well, but when i run it onto a new target drive (portable usb drive), it keeps writing the source to the target directory all over every time, even when there is no change made.
If i run the script a second time without unmounting the target, it is ok, it just check.
The problem happen when i umount and mount again the portable usb drive.
I saw on google that may be rsync does not keep time/date of the files and rewrite everything.
P.S. No change was made to the script in years except for the UUID of the new drive.
P.S. This xfr#229 does mean it is being transfered? (xfr#229, ir-chk=1237/1780)
Code:
if [ -f /media/normand/1F16-AC89/500GigMounted ]
then
rsync -t -r -h --delete --progress --partial-dir=DIR --stats /media/normand/8d3f4d22-b6fb-4750-ba52-c2e2b484f43e/LinuxStuff /media/normand/1F16-AC89
rsync -t -r -h --delete --progress --partial-dir=DIR --stats /media/normand/8d3f4d22-b6fb-4750-ba52-c2e2b484f43e/PersonnelStuff /media/normand/1F16-AC89
rsync -t -r -h --delete --progress --partial-dir=DIR --stats /media/normand/8d3f4d22-b6fb-4750-ba52-c2e2b484f43e/Photos /media/normand/1F16-AC89
rsync -t -r -h --delete --progress --partial-dir=DIR --stats /media/normand/8d3f4d22-b6fb-4750-ba52-c2e2b484f43e/Video /media/normand/1F16-AC89
fi