rsync deletes non existent files!

Joined
Dec 4, 2007
Messages
11
Reaction score
0
Points
1
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top