I use rsync
to make backups of my files located on my NAS to an USB device. I use the following command:
sudo rsync -rv --modify-window=9999 --update --delete --stats --progress --log-file=/shares/Franck/log/backup_photos.log /shares/Public/photos /USB_DRIVE/photos
Everything works fine provided that the USB drive remains attached to the NAS. That is to say, rsync
copies new and changed file and nothing more.
However, from time to time I use the backup USB drive for other things and plug it to other windows and Mac machines (but I do not touch the /photo folder on the drive) and when I mount it again on the NAS and lauch a backup, rsync
copies every single file again (even if it hasn't changed).
Do you know how to fix this? Thanks.
The drive is formatted in FAT32 format and that cannot be changed (I interact with Linux, Windows and Mac). I know this is not optimal for rsync
but I have to deal with it (I do not care about keeping permissions informations and so on).