Your iTunes library, a database that's made up of all of the music and other media that you add to iTunes, is organized into two iTunes library files and an iTunes Media folder.
Before you back up your media, consolidate your library.
You should also redownload any previous purchases (music, movies, TV shows, etc.) and turn on automatic downloads for future purchases. iTunes in the Cloud is not a backup service, and having a local copy (a copy downloaded to a computer) is the only way to back up your purchased media.
To make sure that local copies of movies and TV shows stay downloaded to your computer, select iTunes > Preferences > Advanced (Mac) or Edit > Preferences > Advanced (PC) and deselect "Automatically delete watched movies and TV shows."
With a Mac, your iTunes Library typically backs up when you make a backup of your computer using Time Machine. Just make sure not to exclude iTunes from your backup. When you restore a backup on a new Mac, it will typically include iTunes. Alternatively, you can backup and restore your iTunes Library using an external drive by following the steps in this article.
iTunes and Store availability and features might vary by country or region. Learn what's available in your country or region.
Consolidate your iTunes library
- Open iTunes.
- From the menu bar at the top of your computer screen or at the top of the iTunes window, choose File > Library > Organize Library.
- Select "Consolidate files."
- Click OK.
When you consolidate, copies of any files that were outside of your iTunes Media folder are added to your iTunes Media folder. To save space on your hard drive, you might want to delete the original files after you make sure that the copies are in your iTunes Media Folder.
Find the iTunes Media folder
By default, your iTunes Media folder is in your iTunes folder:
- Mac: Open a Finder window, then click Go > Home > Music > iTunes.
- Windows 7 or later: Go to
- Windows XP: Go to
\Documents and Settings\username\My Documents\My Music\.
If you don't see your iTunes Media folder in the above location,you can find where it's located using these steps:
- Open iTunes.
- Mac: From the menu bar at the top of your computer screen, choose iTunes > Preferences.
Windows: From the menu bar at the top of the iTunes window, choose Edit > Preferences.
- Click the Advanced tab.
- Look in the box under "iTunes Media folder location" for the location of your iTunes Media folder.
You can also change the location of your iTunes Media folder by clicking Change.
Back up your library and media files
After you consolidate your media files, you can back up your library and media files to an external drive.
- Quit iTunes.
- Find your iTunes folder.
- Drag the iTunes folder from its location to an external drive. Your library and media files copy to the drive.
Restore your library from a backup
You can restore your iTunes library or iTunes Media folder from your external drive to your computer. If you're restoring an iTunes Library from a different computer, make sure that your new computer has the latest version of iTunes.
- Quit iTunes.
- Locate your external drive.
Mac: On the Desktop or Finder sidebar.
Windows: In My Computer.
- Drag the iTunes folder (that you backed up earlier) from your external drive to where you want it on your internal drive. We recommend that you put the iTunes folder back into its default location.
- Hold down the Option key (Mac) or Shift key (Windows) while opening iTunes.
- When you see a message that asks you to Choose iTunes Library, click Choose Library.
- Choose the iTunes folder (that you dragged in step 3) from your internal drive.
- Mac: Click Choose.
Windows: Click Open.
- Choose the iTunes Library.itl file inside.