[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] File-sync weirdness
Hello list,
Here's a weird one and no mistake: transferring files via USB stick changes
20 of the 462 files in some way, but not the others. Always the same 20.
I'm developing a website, hosted on Zen, and I want to keep two copies of
the source files: one on my workstation and one on my laptop, using
sitecopy to make the transfers. I do most of the work on my workstation,
and when ready I "sitecopy -u tmvc.zen" (my local storage directory and
also the name I've given to the site in ~/.sitecopyrc). I have sitecopy
left at its default choice of using file sizes and timestamps to detect
changes.
Fine so far. Then I go to the laptop and run "sitecopy -f tmvc.zen" to fetch
the current state of the Zen host, followed with "sitecopy -s tmvc.zen" to
bring changed files down to the laptop. (I have identical directory
structure and .sitecopyrc on the two machines.)
Now if I plug a USB stick into the workstation to do the transfer that way
instead of consuming bandwidth, this is what happens:
I run "rsync -av --delete tmvc.zen/ /mnt/sdd/tmvc.zen" to copy the local
files onto the stick. Then with the stick plugged into the laptop I rsync
the files across, and 15 HTML files and 5 JPGs are copied across. That's
odd, I think, so I run the fetch and the sync in sitecopy and the same
files are downloaded from Zen again. This works either way round: whichever
way I copy files via the USB stick those same files are found to have
changed and are copied again.
I can't think of anything to explain this behaviour. Both machines are
connected to the same network switch at the time, and nothing else differs
either as far as I can see. Maybe I've misunderstood rsync. I dunno.
--
Rgds
Peter
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation