copying with rsync: why files with the same name are not updated?
by Didier Spaier from LinuxQuestions.org on (#5759C)
Hello,
I make a backup of files stored in an USB attached SSD to an USB attached HD. This includes images ISO.
After having run this command:Code:rsync -avP -H --delete-after /data/ /USBHD/data/ 2>&1 | tee /tmp/log.synchro.datathe sizes of /data/images_iso and the destination directory /USBHD/data/images_iso differ.
A diff of the output of ls -1s /data/images_iso vs ls -1s /data/USBHD/images_iso shows that the filenames are the same but in some cases the sizes differ, so the files are not identical in the source and the destination.
Is there something wrong in the rsync command? else, what could cause this unexpected outcome?


I make a backup of files stored in an USB attached SSD to an USB attached HD. This includes images ISO.
After having run this command:Code:rsync -avP -H --delete-after /data/ /USBHD/data/ 2>&1 | tee /tmp/log.synchro.datathe sizes of /data/images_iso and the destination directory /USBHD/data/images_iso differ.
A diff of the output of ls -1s /data/images_iso vs ls -1s /data/USBHD/images_iso shows that the filenames are the same but in some cases the sizes differ, so the files are not identical in the source and the destination.
Is there something wrong in the rsync command? else, what could cause this unexpected outcome?