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?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityI 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?
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).
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).
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.
--exclude '.DS_Store' --exclude 'Thumbs.db'
into your rsync command to avoid copying OSX metadata.
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.
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.
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)
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.
I use Beyond Compare for Mac. I used it before on Windows and it is very good with maximum control.
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. :)