This one really has stumped me. I have a very simple rsync script to copy my iTunes library over to my server running Ubuntu.

This is the script:

rsync --progress /usr/bin/ssh -ave --stats --delete --exclude ".*" ~/Music/iTunes/"iTunes Music"/ /Volumes/1tb/"iTunes Music"

That's all there is!

Now, every time I run this, it copies files over no problem, it deletes files no problem, but it also tells me it is deleting a whole bunch of podcast files. But they are still there!

Here's some typical output as the script is running:

deleting WNYC's Radiolab/
deleting WNYC's Radio Lab/The Wright Brothers (Radio Lab).mp3
deleting WNYC's Radio Lab/The (Multi) Universe(s).mp3
deleting WNYC's Radio Lab/Tell Me A Story.mp3
deleting WNYC's Radio Lab/Space Capsules (Radio Lab).mp3
deleting WNYC's Radio Lab/Shorts_ 16_ Moments.mp4
deleting WNYC's Radio Lab/Quantum Cello.mp3
deleting WNYC's Radio Lab/Pop Music.mp3
deleting WNYC's Radio Lab/Open Outcry.mp3
deleting WNYC's Radio Lab/Making the Hippo Dance.mp3
deleting WNYC's Radio Lab/Making Radio Lab.mp3
deleting WNYC's Radio Lab/Emergence.mp3
deleting WNYC's Radio Lab/Detective Stories (Radio Lab).mp3
deleting WNYC's Radio Lab/Deception.mp3
deleting WNYC's Radio Lab/Contact (Radio Lab).mp3
deleting WNYC's Radio Lab/City X.mp3

What I *suspect* happens is that the copy functionality makes some sort of hidden directory on 1TB/iTunes Music for each podcast, then when the script is run again it sees these, thinks "they aren't on source drive" and promptly deletes them.

Has anyone else encountered this? I know it's not doing any real harm, but it is just rather infuriating!

I should say I also have rysnc scripts for documents and photos using pretty much the same syntax, and I do not get a similar situation there.