Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

RSync Command Question

I am looking to use rsync to sync two directories. I am doing a test with two folders. Folder 1 and Folder 2.


I want folder 2 to looks like folder 1. Folder one has 1 folder and one file, folder 2 has a folder not located in folder 1.


I use:


rsync -a -delete ~/desktop/'folder 1' ~/desktop/'folder 2'



The items from folder 1 move to folder 2 but the extra directory is not being deleted. What am I missing?


Thanks


mi

Posted on Apr 6, 2012 6:02 PM

Reply
Question marked as Best reply

Posted on Apr 7, 2012 8:18 AM

Nevermind, I realized I made a dumb mistake, the switch is --delete not -delete!

1 reply

RSync Command Question

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.