How to back up your iTunes or Music library

Imac Apple Music Hero
Imac Apple Music Hero (Image credit: Christine Romero-Chan / iMore)

While streaming music seems to be all the rage these days, nothing really beats actually owning your music. You may have acquired a vast collection of thousands of songs on your MacBook or iPhone over the years, so you definitely want to make sure that you back up your iTunes Library or Music Library, as it's called now in macOS.

Whether you are still listening to your digitally ripped CD collection from high school or streaming the latest hits on Apple Music with iCloud Music Library, you'll want to make sure that everything is backed up and safe. Nothing is worse than losing your favorite tunes because of a mistake. Here are a few different ways to back up your iTunes library.

First, make sure your entire library has been locally downloaded

If you use iCloud Music Library or the iTunes Store, you may have some or all of your music stored in the Cloud. But to truly make sure that your purchased and owned content is backed up, you'll want to download a local copy of all of your music to your Mac.

To download specific items in your iCloud Music Library right now to your Mac's drive, do the following:

  1. Launch Music (or iTunes on Mojave and earlier) on your Mac.

Download music to your local library by showing: Launch Music on your Mac (Image credit: iMore)
  1. Find the Artist, Albums, or Songs that you want to download.Tip: In any of these views, you can hit ⌘A to select all.
  2. Click the ••• button to bring up a pop-up menu. Alternatively, you can Control-click or use the secondary click you have set up for your mouse or trackpad.
  3. Click Download to initiate the download of these items.

Download music to your local library by showing: Click the ... button next to your music (Image credit: iMore)

And if you want to start automatically downloading everything that you add to your Apple Music library from this point forward, then it's easy peasy! Here's how:

  1. Launch Music (or iTunes on macOS Mojave and earlier) on your Mac.

Download music to your local library by showing: Launch Music on your Mac (Image credit: iMore)
  1. Click Music in the menu bar.
  2. Click Preferences (or press ⌘, on the keyboard).
  3. Make sure you're in the General tab.

Set up automatic downloading by showing: Open Music preferences, click on General tab (Image credit: iMore)
  1. Click the box for Automatic Downloads to turn it on.

Set up automatic downloading by showing: Check the box for Automatic Downloads (Image credit: iMore)

Once that is turned on, any music you add to your Apple Music library will be downloaded automatically to your Mac's hard drive.

How to back up iTunes Library via Time Machine or another backup service

Getting started with Time Machine

Getting started with Time Machine (Image credit: iMore)

One of the easiest ways to make sure that your iTunes or Music Library is always backed up is to use Time Machine, which is already built-in to your Mac. With this feature enabled, you can automatically back up and restore your Mac with Time Machine and any of the best USB-C external hard drives. The restore functionality lets you jump back in Time Machine's history to retrieve it.

But Time Machine may not be enough. We also recommend having an offsite backup plan for your Mac as well, just in case something like a fire happens, and you lose your external hard drive.

How to manually back up your iTunes library

If you're not employing a Mac-wide backup service (really, though, you should get on that), or if you want to manually back up your iTunes library separately, here's how to go about doing that:

Consolidate your library

To ensure that all of your iTunes files are in the same place when you make a manual backup, you should first consolidate your iTunes library.

  1. Make sure you've downloaded a local copy of your music to your Mac.
  2. Launch Music (or iTunes in macOS Mojave or earlier) on your Mac.

Consolidate your music library by showing: Launch Music on your Mac

Download music to your local library by showing: Launch Music on your Mac (Image credit: iMore)
  1. Click File in the upper left corner of your Mac's screen.
  2. Hover your cursor over Library in the drop down menu.
  3. Select Organize Library from the secondary menu.

Consolidate your music library by showing: Hover over the Library under File, click Organize Library (Image credit: iMore)
  1. Tick the box for Consolidate Files when the Organize Library window appears.
  2. Click OK.

Consolidate your music library by showing: Check the box for Consolidate Files, click OK (Image credit: iMore)

This will make a copy of all files in the iTunes media folder, leaving the originals in their current location.

Copy your iTunes library to a backup source

  1. If you are using an external hard drive, connect it to your Mac using a USB cable.
  2. Click on Finder to open a Finder window.
  3. Select your Mac's Hard drive.

Copy Music or iTunes Library to a backup source by showing: Open Finder, then select your Mac's hard drive (Image credit: iMore)
  1. Click on Music in the sidebar. If Music is not in your sidebar, just drag-and-drop the Music folder to the sidebar.
  2. Select the Music folder (or iTunes on macOS Mojave and earlier) and drag that folder to the external hard drive icon on your desktop or copy it to your online backup service.Source: iMore

Copy Music or iTunes Library to a backup source by showing: Select Music from the sidebar (Image credit: iMore)

Copy Music or iTunes Library to a backup source by showing: Select your iTunes folder and then drag it to your desired backup source (Image credit: iMore)
  1. Click Authenticate, if prompted, to give permission to make a copy of the iTunes folder.
  2. Enter your administrator password.
  3. Click OK.

Copy Music or iTunes Library to a backup source by showing: Click Authenticate to give permission to make a copy of your iTunes library, then enter your administrator password (Image credit: iMore)

The copy process will begin. This could take a very long time, depending on how big your Music/iTunes library is. So, sit back, relax, watch a movie, or whatever you do to pass the time.

Desperate times call for desperate measures

If you are about to do something wild with your Music or iTunes library and don't have a way to back it up on an external hard drive or online backup service, you can make a temporary backup that you store right on your Mac by duplicating your library. This is, by no means, a solid backup plan, but it can be useful in a pinch.

Note: After making a copy, it is a good idea to move the copied folder to an easy-to-find location that is separate from any folder you plan to make changes to (like the Music folder). This copied folder should be deleted immediately after it is no longer needed because it takes up extra space on your computer's hard drive unnecessarily and could cause confusion with your most current Music or iTunes folder.

  1. Click on Finder to open a Finder window.
  2. Select your Mac's Hard drive.

Copy Music or iTunes Library to a backup source by showing: Open Finder, then select your Mac's hard drive (Image credit: iMore)
  1. Click on Music in the sidebar.

Copy Music or iTunes Library to a backup source by showing: Select Music from the sidebar (Image credit: iMore)
  1. Right-click or control-click on the Music folder (or iTunes folder if you're still on macOS Mojave or earlier).
  2. Select Duplicate from the popup menu.
    • The copy process will begin. This could take a very long time.Source: iMore

Copy Music or iTunes Library to a backup source by showing: Select your iTunes folder and then drag it to your desired backup source (Image credit: iMore)

Duplicate your Music library by showing steps: Select Duplicate from the right click menu (Image credit: iMore)
  1. Move the copied iTunes or Music folder to a new, easy-to-find location.
  2. Delete the copied iTunes or Music folder once you no longer need the temporary backup.

Get to backing up

If you've got a huge music library, you want to be able to take that with you when you upgrade your devices so it's a great idea to back it up. It's also prudent to do so in case of theft, disaster, or mechanical failure. Hopefully the above guide will have your music collection backed up in no time.

Updated March 2022: Updated for macOS Monterey.

Adam Oram

Adam Oram is a Senior Writer at iMore. He studied Media at Newcastle University and has been writing about technology since 2013. He previously worked as an Apple Genius and as a Deals Editor at Thrifter. His spare time is spent watching football (both kinds), playing Pokémon games, and eating vegan food. Follow him on Twitter at @adamoram.