
Quick Answer
To restore a Photos library from Time Machine, quit Photos, open the backup in Finder or enter Time Machine, locate the Photos Library.photoslibrary file, and restore it to your Mac.
Before You Restore Your Photos Library
A Photos library is a package that stores your photos, videos, edits, albums, metadata, and other Photos data. In Finder, it usually appears as one file named something like:
Photos Library.photoslibrary
Time Machine may contain several versions of this library. Choose a backup from a date when the photos or albums you need were still present.
Keep these points in mind:
- Quit Photos before copying, moving, or opening a restored library.
- Make sure the destination Mac has enough free storage.
- Do not disconnect the Time Machine disk while files are being copied.
- A restore does not merge two Photos libraries automatically.
- If you replace your current library, first keep a backup copy of it in case you change your mind.
- If you use iCloud Photos, the restored library may synchronize with iCloud after you open it. This can change the contents of the library over time.
If your Time Machine disk does not appear, first check its connection and settings. You can also follow this guide to fix Time Machine when it cannot find a backup disk.
Method 1: Restore the Entire Photos Library with Time Machine
This is usually the simplest method when you want to recover the complete library as it existed at an earlier time.
1. Quit Photos
If Photos is open, save any work and quit it:
- Click Photos in the menu bar.
- Choose Quit Photos.
Warning: Do not restore or replace a Photos library while Photos is open. Photos may be using the library, and copying it at that moment can produce an incomplete or inconsistent result.
2. Connect the Time Machine backup disk
Connect the disk that contains your Time Machine backups. If it is a network backup, make sure your Mac is connected to the same network and that the backup location is available.
Wait for the disk to appear in Finder. If macOS asks whether you want to use the disk for Time Machine, do not change the setting unless you intend to configure it as a backup disk.
3. Open the Time Machine interface
You can open Time Machine from the menu bar if its icon is visible. Otherwise:
- Open System Settings.
- Click General.
- Click Time Machine.
- Click Browse Time Machine backups.
The wording and location of Time Machine controls can vary slightly by macOS release. If you do not see the browsing option, open the Time Machine menu from the menu bar or search for Time Machine with Spotlight.
4. Open the folder containing the Photos library
In the Time Machine window, navigate to the location where your Photos library was stored. For most users, this is the Pictures folder in their home folder:
Macintosh HD > Users > your username > Pictures
Look for the file ending in .photoslibrary. The default name is usually Photos Library.photoslibrary, but you may have renamed it.
Use the timeline or arrows on the right side of the screen to move to an earlier backup. Select a date from before the photos disappeared or the library was changed.
5. Restore the library
Select the Photos library and click Restore.
Time Machine normally restores the file to its original location. If a library with the same name is already there, macOS may ask whether to keep both files, replace the existing file, or stop. Choose carefully:
- Keep Both preserves the existing library and creates another copy.
- Replace overwrites the current library.
- Stop cancels the operation.
Warning: Choosing Replace can remove the current library from its original location. If you are unsure, choose Keep Both or cancel and make a separate copy of the current library first.
The restore may take a long time because a Photos library can contain many large video files.
6. Open the restored library
After the restore finishes, open Finder and go to the folder where the library was restored. Double-click the library to open it in Photos.
If Photos opens the wrong library:
- Quit Photos.
- Hold the Option key while opening Photos.
- When the library chooser appears, click Other Library.
- Select the restored
.photoslibraryfile. - Click Choose Library.
Check your albums, photos, videos, edits, and dates to confirm that you restored the correct version.
Method 2: Restore the Library Manually from a Time Machine Disk
A manual restore can be useful when you want to keep the current library and inspect the restored copy before making it your main library.
1. Quit Photos and open the backup disk
Quit Photos first. Then open the Time Machine disk in Finder. Depending on how the disk is configured, you may see a folder such as Backups.backupdb, a disk image, or another backup structure. Do not modify files inside the backup.
Use Finder to browse to the backup from the date you need, then open your user folder and the Pictures folder.
2. Copy the Photos library to your Mac
Find the .photoslibrary file, then copy it to a location with sufficient free space, such as:
- The Pictures folder
- An external drive formatted for Mac use
- A temporary folder on your Mac
Drag the library from the backup to the destination and wait for the copy to finish.
Warning: Copying a large library can take considerable time. Do not eject the backup disk or put the Mac to sleep while the copy is in progress.
If macOS asks for an administrator password or permission to access the backup, follow the onscreen instructions. Never move or delete the original item inside the Time Machine backup.
3. Give the restored copy a clear name
After copying, you can rename the restored library so that it is easy to identify. For example:
Photos Library Restored.photoslibrary
Renaming the library does not change the photos inside it. It only changes the filename shown in Finder.
4. Open the copied library
Quit Photos if it reopened, then hold Option while opening Photos. Choose Other Library, select the copied library, and click Choose Library.
Photos may need time to prepare or update the library before displaying all content. Do not interrupt the process unless macOS indicates that it has stopped responding.
How to Replace Your Current Photos Library Safely
If the restored library contains everything you need, you can make it your primary library. First, preserve the current library:
- Quit Photos.
- Open Finder and choose Go > Home.
- Open the Pictures folder.
- Select the current Photos library.
- Press Command- D to duplicate it, or drag it to another folder or external drive.
- Rename the backup copy so you can identify it later.
- Open Photos while holding Option.
- Select the restored library.
- Click Choose Library.
Do not delete the original library until you have verified the restored one. Confirm that important photos, videos, albums, edits, and metadata are present.
If you use iCloud Photos, check which library is set as the System Photo Library. Open the restored library, then choose Photos > Settings, click General, and look for the option to use the library as the System Photo Library.
Warning: iCloud Photos synchronizes changes. If you enable iCloud Photos in an older restored library, Photos may upload, download, or reconcile content with your iCloud collection. Review the library carefully before enabling synchronization or changing the System Photo Library.
Restore Only Photos Instead of the Whole Library
Time Machine can restore individual files, but an individual photo inside a Photos library is not always convenient to recover directly. Photos and their database information are stored inside the library package.
For a single missing photo, the safest approach is usually:
- Restore or copy the entire library from the appropriate Time Machine backup.
- Open the restored library separately.
- Export the needed photos from the restored library.
- Return to your current library.
- Import the exported files.
To export photos from the restored library:
- Select the photos.
- Choose File > Export.
- Select an export option, such as Export Unmodified Original or an option that includes edits.
- Choose a temporary destination.
- Open your regular Photos library.
- Choose File > Import and select the exported files.
This approach preserves your current library while allowing you to recover selected items. For other types of documents, you can also review this guide to restore files from a Time Machine backup.
Troubleshooting
The restored library will not open
Make sure the copy completed fully and that you selected the .photoslibrary file rather than a folder containing it. Try opening Photos while holding Option, then select the library manually.
If Photos reports that the library must be repaired:
- Quit Photos.
- Hold Option-Command while opening Photos.
- Select the library that needs repair.
- Follow the onscreen instructions.
Warning: Repair can modify the library. Keep the original restored copy untouched if possible, and work on a duplicate.
Photos opens the wrong library
Photos remembers the last library it used. Quit it, hold Option while opening it, and choose the restored library from the library chooser.
You can also double-click the restored .photoslibrary file after quitting Photos. If several libraries exist, rename them clearly to avoid confusion.
The Time Machine backup does not contain the library
The library may have been stored somewhere other than the default Pictures folder. Search other folders or external volumes that were connected when Time Machine created the backup.
If the Photos library was excluded from Time Machine, it will not be available in the backup. Open System Settings > General > Time Machine, click Options, and review excluded locations. Do not remove an exclusion unless you want future backups to include that location.
The restored library is missing recent photos
A Time Machine restore contains only the data that existed when that backup was created. Photos added afterward will not appear in an older library unless they are available in another backup or in iCloud Photos.
Check several backup dates. The newest backup may contain the missing items, while an older backup may contain the album or library state you originally wanted.
The restore is taking too long
Large libraries, especially those containing videos, can take a long time to copy or prepare. Keep the Mac connected to power, avoid disconnecting the backup disk, and allow the process to continue.
If Time Machine itself is stuck while creating a backup, do not interrupt a restore by repeatedly disconnecting the disk. Resolve the backup issue separately using steps for Time Machine stuck on “Preparing Backup”.
iCloud Photos changes the restored library
If iCloud Photos is enabled, the restored library may begin synchronizing when opened. This can make the library appear to change after restoration.
To inspect an older version without immediately syncing it, keep the restored library as a separate copy and avoid making it the System Photo Library until you have checked its contents. If you need a permanent offline archive, export the required originals and keep them in a separate backup location.
Frequently Asked Questions
Does restoring a Photos library delete my current photos?
Not by itself. Time Machine normally restores another copy or asks how to handle a duplicate. Your current library is at risk only if you choose to replace it, delete it, or move it without keeping a backup.
Can I restore a Photos library without Time Machine?
Yes, if you have another copy of the .photoslibrary file, an external backup, or the needed photos in iCloud Photos. The steps in this guide apply specifically to a Time Machine backup.
Will my albums and edits be restored?
If you restore the complete Photos library, its albums, edits, and library information should be included as they existed on the selected backup date. Items added or changed after that date will not be included in that version.
Can I merge a restored library with my current library?
Photos does not provide a simple automatic merge for two complete libraries. You can open the restored library separately, export selected photos, and import them into your current library.
Should I restore the library to the Pictures folder?
That is the usual location, but it is not required. You can store the library on another suitable drive, provided the drive has enough space and is formatted for Mac file storage. Keep the library available whenever you want to use it.
Final Thoughts
The safest way to restore a Photos library from Time Machine is to quit Photos, recover the library from the correct backup date, and open the restored copy separately before replacing anything.