2

I currently have a set up where my default iTunes Library (of ~550 HD movies) resides on a 2TB external HD. I share this library and use it to serve my Apple TV/other LAN devices. The drive is close to full, so I got a 4TB External HD to migrate the Library to.

The default library path is set to /Volumes/MEDIA_2TB through iTunes Preferences, though all the .xml and .itl data still resides in ~/Music/iTunes/.

I'd like to migrate my current library contents to /Volumes/MEDIA_4TB while retaining the metadata (ratings, play count, watched/unwatched, date added, etc), as well as set Volumes/MEDIA_4TB as the new default library.

It seems that the file paths are tied to the metadata files though. If I change the default iTunes Library through iTunes and then "Consolidate Library" will this work? Is there another/better way?


Note that I don't want to create symlinks as in this Q&A: Move external iTunes library files to different location without losing metadata

  • If you are not going to migrate your iTunes library via the built-in function in Preferences > Advanced or by creating symlinks there is really nothing left. – Steve Chambers Mar 30 '18 at 23:21
  • @SteveChambers using sym links isn’t viable as I’m moving the data off one drive and onto another. Im going to wipe the old drive and use it for another purpose. I’m willing to do it through the iTunes preference pane as long as it works as I intend! – njboot Mar 30 '18 at 23:31
2

So I successfully migrated the library without losing the metadata by:

1) Changing the default library under iTunes > Preferences > Advanced > to /Volumes/MEDIA_4TB first

2) Selecting all the contents of the library within iTunes.

3) Going to File > Library > Consolidate Files

After many hours of copying, I confirmed it worked by right clicking on a movie > Movie Info > File Tab > Location: /Volumes/MEDIA_4TB/Movies/[Name of Movie]. I can now safely delete the contents of the old 2TB drive and reformat it.

1

One good way would be the classical linux-like approach: use rsync from the Terminal. Rsync is an application designed for file transfers preserving anything from timestamps over access rights to other metadata. And it's really straightforward to use, since Apple was smart enough to include it in OS X :)

The basic syntax is as follows:

rsync -aP <source> <destination>

The -a stands for archive (which means, preserve time stamps, access rights and other metadata) and the P stands for progress (which means show progress during transfer). This will create an exact copy of source over to destination which copying by Finder would not.

If you never ran a command from a Terminal, don't fear, it's not hard! And in this case, there isn't really something you could do wrong.

  • First, open the Terminal from Applications/Utilities, or use Spotlight.
  • Then type in the start of the command: rsync -aP. Make sure to include two spaces: one after rsync and one after -aP.
  • Then drag the source folder from Finder into the Terminal window (probably /Volumes/MEDIA_2TB/iTunes/ in your case). This will insert the path of that folder into the Terminal.
  • Now type a space after the path, so that the source is separated from the destination you'll drag in now.
  • Drag the destination folder (probably /Volumes/MEDIA_4TB/iTunes/ in your case) over to the Terminal window. If the iTunes folder does not exist on your drive yet, create it (e.g. using Finder).
  • Make sure that both the source and the destination path end with a /. Otherwise, the iTunes folder from the original hard drive would be integrated into the new iTunes folder on the new hard drive, resulting in two iTunes folders nested within each other (wouldn't be too bad, though, but unneccessary ;))
  • Hit enter to run the command. Now you should see all your files rush by on the Terminal and the new iTunes folder on the new hard drive should get populated.

That way, you'll create an exact copy of your iTunes data including all metadata. Are you sure that the current version of your .itl files are still in your Music folder? I haven't seen a case where these were located outside the library folder. Check the modification dates on these files to check if they are really the current version. If they are, you should use rsync again to copy them over to your hard drive. Just use ~/Music/iTunes/ as a source now, it will overwrite any files already existing in your destination if the new files you are moving are newer, and all other files will be kept in place.

  • Thanks for your answer, but this still won’t change the path of the files in the xml/itl metadata, so iTunes will still think the files are on the old drive and I’ll get a bunch of (!) file not founds. – njboot Mar 31 '18 at 12:20

You must log in to answer this question.

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