Rsync different behavior when syncing folders HDD-HDD or HDD-Ext HD

rsync

When I sync two folders between two HDDs, rsync only lists the changes made at the end.

However if I sync a folder between a HDD and an external HD, while the sync is running it is listing each directory where it gets in. So at the end I have a "dirty" log about tasks made and I have to be filtering it.

I would like to have a clean log also when syncing with the external HD, any idea?

I'm using -av –delete.

Examples where both directories are the same already:

  • HD to USB:

    rsync -av --delete A/ /media/USB/E/
    sending incremental file list
    ./
    B/
    B/C/
    B/D/
    
    sent 102 bytes  received 27 bytes  258.00 bytes/sec
    total size is 0  speedup is 0.00
    
  • HD to HD:

    rsync -av --delete A/ /media/DATA/E/
    sending incremental file list
    
    sent 90 bytes  received 15 bytes  210.00 bytes/sec
    total size is 0  speedup is 0.00
    

Best Answer

rsync has got an option called --modify-window=NUM which you can use to reduce the accuracy of time-stamp comparison. Try it with --modify-window=1. The option was created for exactly this purpose.

rsync may also try to fix other metadata, like file ownership, which is lost on FAT32 and friends, so you may still have issues even when using --modify-window=1

Related Question