35

I have some files and folders on a USB drive connected to my iMac...I would like to sync them with a folder on my iMac...how do I do that?

Is there built-in functionality in Lion that allows me to do that, or do I have to use a 3rd party solution?

  • When you say "Sync", exactly what behavior do you want to see? How do you want discrepancies resolved? – Daniel Jan 4 '12 at 3:05
  • I want to make sure both folders contain the same files (no duplicates). So if one folder has newer files and then it replaces the old ones in the other folder. Basically, they just transfer files that are newer - or the diffs of existing files. – marcamillion Jan 4 '12 at 4:31
  • And older files clobbered without prompting – Daniel Jan 4 '12 at 5:26
  • Not necessarily, @Daniel. Chronosync, for example, allows you to archive X versions of the older files for Y days. Handy if you decide you want an older version back. – james.garriss Jan 4 '13 at 13:50
  • Use a launch deamon to automatically start rsync when your USB is connected. – CousinCocaine May 21 '15 at 7:20

10 Answers 10

29

arRsync is a free OS X GUI to the rsync command line utility. It will get you started on the path to rsync enlightenment. You can save common sync operations to recall them at a later time for easy rsync. And it supports the common rsync use case scenarios: push A to B but leave stuff that's in B but not A in place, push A to B and delete stuff that's in B but not in A, make A and B look the same (with a conflict report).

13

If you are comfortable with the terminal, rsync is a great utility that will sync folders easily. Take a look at a tutorial here (the tutorial is on an "Everything Linux" website, but the rsync utility comes with both Linux and Mac OS X).

Example commands:

Copy/merge everything newer from SOURCE into DEST, do not delete anything:

rsync -va   /path/to/folder/SOURCE/  /path/to/folder/DEST/

Copy everything newer into DEST, and delete any items from DEST that don't exist in SOURCE:

rsync -va --delete   /path/to/folder/SOURCE/  /path/to/folder/DEST/

Be sure to include the trailing forward-slash / at the end of your folder paths.

A useful hint here is that you can drag folders into the Terminal window to have it insert the full path to that folder (or file), saving you lots of typing and typos.

  • Here's a nice hint on using Mac OS X's built-in rsync and Automator to make a GUI for this: bananica.com/Geek-Stuff/… – Demis Jan 29 '16 at 20:37
  • If you're syncing in OSX, you probably want to add --exclude '.DS_Store' --exclude 'Thumbs.db' into your rsync command to avoid copying OSX metadata. – Hengjie Mar 13 '18 at 9:57
4

Another donationware is SyncTwoFolders:

This program synchronizes two folders. The oldest files will be replaced by the most recent, and in certain cases, some files will be removed. Use the help tags to familiarize yourself with the options. Be sure of what you are doing when you start a synchronization. If in doubt, do a Simulation. This will show you what will happen if you choose to synchronize, but no files will be replaced or removed.

2

I have had good luck with Chronosync for synching folders/Macs.

2

SyncTwoFolders is a free great app that's very useful and handy for Mac users. I use this to sync my GoogleDrive and Dropbox folders. Here is the link to setup SyncTwoFolders.

Actually you can schedule a sync. You have to create as setting of your own for ex. "mysync' by clicking the '+' sign next to 'Last Settings' drop down and saving it. This 'mysync' will appear in your window to the right when you click the '*' button above the 'Synchronize' button.

At the bottom of that sliding schedule window you can set the time interval at which it can sync.

You need to keep the application running in the background for it do scheduled syncing.

2

Install Xcode from the App Store and use File Merge.

Then you can open both directories, and compare individual differences and pick which one is "correct" (even down to lines of text within a file), merging the results to a new directory or over the top of one of the two you're comparing.

(it should be available in Spotlight after you've installed Xcode, if not open Xcode and from the Xcode Menu it's under "Other Developer Tool)

  • Useful utility! Although a little bit cumbersome, nice that it shows all the changes before you merge. – Demis Jan 29 '16 at 20:23
0

For a decent GUI based file synchronizer, check out File Synchronization (website found here) It is a low cost ($15) utility that has nice control over the sync process. GUI arrows give you a pretty good feel of what is going to happen, ensuring you use the tool properly and don't end up overwriting the wrong file. Nice tool.

-2

Free Dropbox account is great if you need to sync small amount of files with other devices too, but if you have many devices, you should either upgrade Dropbox or get Chronosync. I personally use both of these solutions, so all my Macs are basically in sync. :)

-2

I use Beyond Compare for Mac. I used it before on Windows and it is very good with maximum control.

http://www.scootersoftware.com/download.php

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

-6

Dropbox is the answer. Simple. Multi-platform. Free.

Give it a go!

  • 1
    Dropbox syncs between machines not a USN drive and a folder – user151019 Sep 19 '12 at 12:34

You must log in to answer this question.

protected by nohillside Jul 15 '16 at 8:39

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .