Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  23] [ 0]  / answers: 1 / hits: 23251  / 2 Years ago, wed, august 17, 2022, 7:35:12

I have music that I play in my car, from an FAT32 USB stick. The folder which I use to put songs on is stored on my EXT4 hard drive. I add/remove/retag songs regularly and occasionally want to rsync the changes to the USB stick. But for some unknown reason (maybe permissions?), rsync copies all the files every time rather than just changed ones. I am calling rsync like:



rsync -vrlptgD source dest


How can I make it work like I want it to (i. e. know when a file hasn't been changed and don't copy it)?


More From » backup

 Answers
4

Javier Rivera's answer works, but it takes quite long for rsync to check and compare all file checksums. I found that using the following option worked better for me:



rsync -rtv --modify-window=1 /source /dest


The --modify-window=1 switch allows for a variance of ±1s on the timestamps. With this option enabled, timestamp comparison will be more lenient and look over the minuscule time differences between NTFS/FAT and Unix file systems.



Source (ger): http://www.kai-hildebrandt.de/tutorials/rsync.html



P.S.: Please be aware that DST will cause full file transfers twice a year. See here for further details and possible solutions.


[#39863] Thursday, August 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
umplegitimat

Total Points: 137
Total Questions: 126
Total Answers: 118

Location: Saint Pierre and Miquelon
Member since Sat, Aug 21, 2021
3 Years ago
umplegitimat questions
;