TechBuzzPro

Previous iTunes Libraries Explained and How to Use Them

· 6 min read · Apps & Browsers

In this article
  1. Background: What the folder contains
  2. How iTunes creates a Previous Library
  3. Locating the Previous iTunes Libraries folder
  4. Restoring an older library safely
  5. Common problems and troubleshooting
  6. Alternatives and best‑practice backups
  7. Frequently Asked Questions

A “Previous iTunes Library” is a backup copy of your iTunes library that the program automatically saves when you upgrade iTunes or move the library folder, allowing you to revert to an earlier version if something goes wrong.

Background: What the folder contains

When iTunes creates a backup, it places the files in a subfolder named Previous iTunes Libraries that sits next to the active iTunes Library.itl file. Inside the folder you will typically find:

  • iTunes Library.itl – the binary database that stores playlists, play counts, ratings, and the exact location of every track.
  • iTunes Music Library.xml (optional) – an XML representation of the same data, useful for third‑party apps that read iTunes metadata.
  • One or more timestamped copies of the above files, each reflecting the state of the library at the moment iTunes performed a backup.

The folder is created on both macOS and Windows, and its location mirrors the location of your active library. If your library lives in ~/Music/iTunes on macOS, the backup will be in ~/Music/iTunes/Previous iTunes Libraries. On Windows the default path is C:\Users\[User]\Music\iTunes\Previous iTunes Libraries.

How iTunes creates a Previous Library

iTunes generates a previous‑library copy in two main scenarios:

  1. Major version upgrade – When you install a new major version (for example moving from iTunes 12.9 to 12.10), the program copies the current .itl file into the backup folder before it rewrites the file to accommodate any new database schema.
  2. Library relocation – If you choose File > Library > Rename Library or manually move the iTunes Library.itl file to a new folder, iTunes saves a copy of the original file in the Previous iTunes Libraries folder.

These backups are created silently; you do not need to enable any setting. The only time iTunes does *not* create a backup is when you deliberately delete the folder or when you are using a portable version of iTunes that runs from a USB stick.

Locating the Previous iTunes Libraries folder

Finding the folder is straightforward if you know where your active library resides. Follow the steps that match your operating system:

  1. macOS
    • Open Finder.
    • Navigate to your Music folder (usually ~/Music).
    • Open the iTunes folder.
    • You will see a subfolder called Previous iTunes Libraries. Double‑click to view its contents.
  2. Windows
    • Open File Explorer.
    • Go to C:\Users\[YourUserName]\Music\iTunes.
    • Locate the Previous iTunes Libraries folder and open it.

If you have moved your library to a non‑default location, simply right‑click the iTunes icon in the Dock (macOS) or taskbar (Windows), choose Open iTunes Preferences, and note the “iTunes Media folder location”. The backup folder will be alongside that path.

Restoring an older library safely

Restoring a previous library is essentially a file‑swap operation, but you should always back up the current library first to avoid accidental data loss. Here is the recommended procedure:

  1. Quit iTunes completely.
  2. Navigate to the folder that contains your active library (iTunes Library.itl).
  3. Make a copy of the current iTunes Library.itl and, if present, iTunes Music Library.xml. Store the copies in a safe place such as your Desktop or an external drive.
  4. Open the Previous iTunes Libraries folder.
    • Identify the version you want to restore. Filenames usually include a date stamp, e.g., iTunes Library 2023-07-15.itl.
  5. Copy the chosen .itl file to the parent iTunes folder and rename it to iTunes Library.itl (replace the existing file).
  6. If an XML file is present, copy it as iTunes Music Library.xml as well.
  7. Re‑open iTunes. The program will read the restored database and display the playlists, play counts, and ratings exactly as they were on the backup date.

After confirming that everything looks correct, you can delete the temporary backup you made in step 3, or keep it as an additional safety net.

Common problems and troubleshooting

Even though the process is simple, users sometimes encounter obstacles. Below are the most frequent issues and how to resolve them.

  • The backup folder is empty. This usually means you have never upgraded iTunes or moved the library since the folder was created. In that case, you must rely on external backups (Time Machine, Windows File History, or a manual copy of the library folder).
  • The restored library fails to open, showing “iTunes could not read the library file”. The most common cause is file corruption. Try the following:
    1. Open the .itl file with a text editor to verify it is not zero bytes.
    2. If the file is corrupted, locate an older backup (if multiple exist) and repeat the restore steps.
    3. As a last resort, use the XML file (if present) to rebuild playlists: in iTunes, choose File > Library > Import Playlist and select the XML file.
  • iTunes reports duplicate tracks after a restore. This happens when the Media folder was not consolidated before the backup. To fix:
    1. In iTunes, go to File > Library > Organize Library and enable “Consolidate files”.
    2. iTunes will copy each track into the Media folder once, eliminating duplicates.
  • The restored library shows missing songs. The paths stored in the old .itl file may point to a location that no longer exists (e.g., an external drive that was unplugged). Use iTunes’ built‑in “Locate” dialog, or manually move the missing files back to the original folder structure.

Alternatives and best‑practice backups

Relying solely on the automatic “Previous iTunes Libraries” folder is risky because it only captures the state at upgrade or relocation moments. Consider these complementary strategies:

  • Time Machine (macOS) or File History (Windows) – Both create incremental backups of your entire Music folder, including the iTunes library files. Restoring from these utilities lets you pick any point in time, not just the limited moments iTunes records.
  • Manual copy – Periodically copy the entire iTunes folder to an external drive or cloud storage. A simple drag‑and‑drop once a month provides a reliable fallback.
  • Third‑party iTunes backup tools – Some utilities specialize in exporting playlists, ratings, and play counts to CSV or JSON formats. These can be re‑imported if the binary .itl file becomes unreadable.
  • iCloud Music Library / Apple Music sync – When you enable iCloud Music Library, Apple stores your playlists and metadata in the cloud. This does not replace a local backup, but it does protect most metadata from loss.

Regardless of the method you choose, always keep at least one copy of the library on a device that is not the primary playback machine. This protects you against hardware failure, accidental deletion, or ransomware.

Frequently Asked Questions

Can I have more than one previous library?

Yes. Each time iTunes creates a backup, it adds a new timestamped file to the Previous iTunes Libraries folder, so you may end up with several versions to choose from.

Do the previous libraries include my purchased music?

The backup stores only the library database, not the actual audio files. Your purchased tracks remain in the iTunes Media folder; the database simply points to them.

Will restoring a previous library delete songs added after the backup?

Restoring replaces the database only. The audio files themselves stay on disk unless you manually delete them. However, any tracks added after the backup will not appear in the restored playlists until you re‑import them.

Is the Previous iTunes Libraries folder hidden?

No. The folder is visible like any other folder. Some users think it is hidden because it only appears after an upgrade, but you can see it in Finder or File Explorer without changing any view settings.

Does iTunes automatically delete old backups?

iTunes does not purge the folder on its own. It will keep every backup until you manually remove files or the operating system clears space in the Music folder.

Can I use a previous library on a different computer?

Yes, provided you copy both the .itl file and the associated Media folder to the new machine and place them in the same relative locations. Then open iTunes and point it to the copied library file via File > Open Library….