Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

131215

macrumors newbie
Original poster
Dec 15, 2015
5
0
What terminal command can I use to sync two directories. One is on the local HDD. The other one will be on flash drive or SD card?
 
rsync -avP /path/to/first/directory_to_be_synced /path/to/second/ if there are spaces in the path then they need to be escaped or a " put around the path. rsync -avP /path/to/first/directory\ to\ be\ synced /path/to/second/ or rsync -avP "/path/to/first/directory to be synced" /path/to/second/.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.