05-24-2010, 05:04 PM #1
rsync deletes non existent files!
- Member Since
- Dec 04, 2007
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By astahesta in forum OS X - Operating SystemReplies: 7Last Post: 07-27-2014, 09:47 AM
By jediracer in forum OS X - Operating SystemReplies: 3Last Post: 02-01-2013, 01:05 PM
By supremepbsk in forum Switcher HangoutReplies: 2Last Post: 11-26-2008, 11:41 PM
By MackyToshy in forum OS X - Operating SystemReplies: 1Last Post: 01-03-2008, 02:35 AM
By MacSinceWayBack in forum OS X - Operating SystemReplies: 7Last Post: 04-12-2007, 04:21 PM