rsync keeps overwriting some unmodified files
3 Attachment(s)
Hello people.
I'm having this strange problem with rsync. I'm trying to synchronize my music collection with the music collection on my mp3 player (Cowon iAUDIO). The mp3 player has a harddisk with the FAT32 file system. The problem is that it keeps overwriting unmodified files on the mp3 player. I use this command to synchronize: Code:
rsync -avhpu --delete --progress --exclude-from "/home/serrano/backup-filters-iaudio.txt" "/windows/D/music/" "/media/IAUDIO/music/" I've done some test to get a view of what's going on: *Connect the IAUDIO* *run the rsync command* See attachment: rsync_result1.txt *run the rsync command again* See attachment: rsync_result2.txt (so far so good) *Disconnect the IAUDIO* *Connect the IAUDIO* *run the rsync command again* See attachment: rsync_result3.txt (overwrites unmodified files) First, everything seems to work just fine. As seen in rsync_result2.txt, rsync skips the files that have already been synchronized. You would expect the same result once I reconnect the mp3 player. But as seen in in rsync_result3.txt, some unmodified files are overwritten again. What also is very strange, is that it keeps overwriting the same files while it skips others without an apparent reason. Could someone please explain to me what's happening? System information: openSUSE 11.2 rsync version 3.0.6 protocol version 30 |
Have you tried md5suming the files before and after rsync3?
|
Quote:
*reconnect mp3* 80d5ee2fa4823f7877aa56a991724687 01. Arctic Monkeys - My Propeller.mp3 *run rsync command* ("01. Arctic Monkeys - My Propeller.mp3" is being overwritten) 80d5ee2fa4823f7877aa56a991724687 01. Arctic Monkeys - My Propeller.mp3 *run rsync command again* ("01. Arctic Monkeys - My Propeller.mp3" is ignored) 80d5ee2fa4823f7877aa56a991724687 01. Arctic Monkeys - My Propeller.mp3 So it indeed overwrites unmodified files. Could this have anything to do with the file dates? |
Code:
core:~/test/test20$ touch fred-fred-burger |
Quote:
Code:
--modify-window So for everyone who's having the same problem, here's my modified rsync command: Code:
rsync -avhpu --delete --progress --modify-window 1 --exclude-from "/home/serrano/backup-filters-iaudio.txt" "/windows/D/music/" "/media/IAUDIO/music/" |
All times are GMT -5. The time now is 06:37 PM. |