Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Synchronise a portable iTunes library Apps
This sort of hint has been touched upon quite a bit, but I haven't seen it executed just as I wanted (and it still isn't as automated as I'd like), but here's my offering.

Problem: 70GB of iTunes content on an external HD, but only wanting to take around 30GB on the MBP's HD, whilst maintaining ratings, play counts, etc.

Solution: Synchronising the iTunes Music folders with Chronosync. First, download Change File Label Color from Doug's Scripts, and install. In iTunes, gather together the tracks you want on your machine. I created a folder called Portable iTunes, and populated it with playlists that contain music I want to take with me (these being the playlist that contains all my iPod music, an ever-changing playlist of movies I want with me, and my recently added playlist. These are either standalones, or combined in a smart playlist that references those already existing playlists).

Select the Portable iTunes folder, and then select all tracks (this is why the folder is important; it makes it a lot easier to have access to all the tracks you want on your machine). From the scripts menu, choose Change File Label Color of Selected Tracks, and set the files a color of your choice, let's say grey.

Download Chronosync and set up a new synchronisation, with the source folder as your iTunes Music folder on your external HD, and the destination folder as the iTunes Music folder in ~/Music/iTunes/ (this folder is used as when your external HD with all your music on is unplugged, and iTunes is launched; iTunes will revert to the folder ~/Music/iTunes/ making the process a lot easier.) In Chronosync, under Rules, change the drop down menu to Advanced and add this rule: Finder label is Gray.

Sync the folders (you may want to perform the "trial synchronisation" first). I have mine set to Synchronise Deletions like a smart update. This method now ensures that the files are arranged in the same way as the external hard drive, so that when iTunes changes the music folder, the files will be in the same relative positions. You could then even save the sync in Chronosyc and then place that file in your ~/Music/iTunes/ folder, and use the prefpane Do Something When to open it when you mount your external drive.

From now on, you should be able to add or remove files from the selection to be copied by changing finder labels using the method described above, and keep a synced but smaller copy of your iTunes library on your portable machine.

One bonus to this method is that it even copies folders to your iTunes folder on the machine with no contents, so you can always see what artists/albums you have without the external hard drive or iTunes. Hope this helps someone.
  • Currently 2.00 / 5
  You rated: 4 / 5 (5 votes cast)

Synchronise a portable iTunes library | 6 comments | Create New Account
Click here to return to the 'Synchronise a portable iTunes library' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Synchronise a portable iTunes library
Authored by: leamanc on Feb 06, '07 01:48:44PM

Excellent hint, indeed, but good old rsync works great for me keeping my iTunes Library sync'ed up among two Macs and a Linux box. If anyone's interested in that approach, please post a comment and I'll submit it as a hint to the site.

[ Reply to This | # ]
Synchronise a portable iTunes library
Authored by: Andrea on Feb 07, '07 12:11:43AM

I'm interested in your rsync-based solution. Could you post it? Thanks.

[ Reply to This | # ]
Synchronise a portable iTunes library
Authored by: fxt on Feb 07, '07 12:41:24PM

yep, rsync is what i use to syn between machines and/or external drives.
for example,

/usr/bin/rsync_mac --verbose --archive --delete -E --rsh=ssh --rsync-path=/usr/bin/rsync /Volumes/source_drive/Music/ /Volumes/destination_drive/Music/

[ Reply to This | # ]
Synchronise a portable iTunes library
Authored by: Wodgy on Feb 06, '07 02:51:36PM

This hint is excellent and a great solution, but in case anyone is misled/confused, you can't edit play counts and ratings on both machines between synchs, or the changes in one library will overwrite the changes in the other. Apart from that though, great solution.

[ Reply to This | # ]
Synchronise a portable iTunes library
Authored by: knifehandchop on Feb 07, '07 03:58:15AM

Well, this is to store the bulk of an iTunes library on an external HD, so you'd only have one "iTunes" folder, in the ~/Music/ folder, which would mean play counts and ratings will always be the same, that was the main reason I came up with the process, as I only want <i>one</i> library, but different sets of data for it.

Also, wrapping the actions "Quit iTunes," "Open iTunes," and "Open Chronosync file" in an apple/automator script, and running that with Do Something When would be better, as then iTunes will repoint itself to the external HD when it is connected. And don't forget to "consolidate library" when you're connected to make sure CDs imported/iTMS purchases made when on the move are copied back to your external HD.

[ Reply to This | # ]
Synchronise a portable iTunes library
Authored by: Hayl on Feb 06, '07 06:10:19PM

What happens when you replug the external drive? Does iTunes automatically switch back to it or do you have to tell it where the library is every time?

[ Reply to This | # ]