Have you ever wanted to sync your iTunes library to two computers? There are a few ways to do it, and we've mentioned one of the easiest, Dropbox (here's how to do that).
Well there is another way to do that, and MacRumors has a useful guide. The best part is that your Mac is already equipped with what it needs: Automator and rsync.
The guide suggests backing up both your computers.
Here's how it works:
1) Network your two Macs together using a router or switch. The guide says that it's useful t set static IP addresses with your computers, so you know which to use with each.
2) Enable File Sharing: System Preferences > Sharing from there, you will choose to enable file sharing.
3) Load up the terminal
4) Create a command line for the rsync. It will probably look something like this:
rsync -av –force –delete –size-only ~/Music/iTunes /Volumes/johndoe/Music
It's worth checking out the guide (link) at this point to see what the various functions in that command line mean.
5) Run the first sync. The guide suggests connecting the computers via Ethernet for the first sync, since it's likely going to be transferring a lot of information between the two machines. It also says that you should avoid turning off either of the computers.
6) Automate it. After the first sync, you may want to automate that process to make it easier in the future.
7) Launch Automator
8) Open a new Workflow and add in the "Get Specified Servers" action.
9) Click Add and enter the IP addy of the other Mac on your server, followed by the shortname.
10) Add a "Connect Servers" action, and then a "Run Shell Script" action.
11) Copy/paste your rsync action into the Run Shell Script action.
12) Add the following to the end of your shell script:
This will log any errors that happen during sync.
13) Go to your Documents folder and make a new folder called "Automator Logs" any time you run that action, it will create a log file.
14) Save the work flow as an Application in your Applications folder. You will want to create a script for each computer.
Full credit to MacRumors Guides.