# Backing Up an Apple Mac Photos Library

How to back up a Mac Photos library: find the library file, copy it to an external drive, and use Time Machine for automatic macOS backups.

Backing up an Apple Mac Photos library means keeping a second, independent copy of the library file that the Photos app manages, so your images survive a drive failure, a deleted file, or a mistaken edit. You can copy the library to an external drive yourself, or let Time Machine handle it as part of a regular macOS backup. Both routes protect the same library, and many people use both together for an extra layer. 

## Where the Photos library sits 

Your Apple Photos library location is a package file, typically named Photos Library.photoslibrary, inside the Pictures folder of your home directory. The package looks like a single file in Finder, but it holds the originals, edits, and database that the Photos app reads. You must copy the whole package rather than dragging individual images out of it. Moving or renaming the package breaks the link the Photos app expects, so keep it where it is and copy it instead. 

## Copying to an external drive 

An external backup means copying the entire library package to a drive that is separate from your Mac's startup disk. Connect the drive, open Finder, and drag the package to the drive; wait until the copy finishes before ejecting. A drive that holds a second copy of the library is not the same as a working library, so keep it offline when the copy is done. Check the copy by opening it from the external drive once, then unplug the drive. 

## Time Machine and the library 

Time Machine is the built-in macOS backup tool, and it can include the Photos library in its regular snapshots. Point Time Machine at a dedicated external drive and leave it connected so it can run on its schedule. Time Machine handles the library package as a whole, which suits a hands-off backup of the Photos app on Mac. Keep a separate copy as well, because a Time Machine drive is one more device that can fail. 

## Questions about Mac Photos backup 

### How do I back up a photo library on Mac? 

You back up a photo library on Mac by copying the Photos Library.photoslibrary package to an external drive or by including it in a Time Machine backup. Find the package in the Pictures folder of your home directory and drag the whole package, not its contents. Copying the package preserves the originals, edits, and database the Photos app needs. 

### Is backing up an Apple photo library different from backing up other files? 

No, backing up an Apple photo library works like backing up any other file, except the library is a package rather than a plain document. Treat the package as one unit and copy it whole, because the database inside ties the images together. A partial copy can open but may lose edits or albums. 

### Can I keep my photo library backup on the same external drive as Time Machine? 

Yes, you can keep a [photo library backup](/articles/backing-up-a-photo-library/) on the same external drive as Time Machine, but the drive then holds both your snapshots and your copy. A single drive is still one device that can fail or be lost, so a second copy on another drive adds protection. Store one copy away from the Mac when you can. 

### What happens if I move the Photos library file? 

Moving the Photos library file away from its expected place can stop the Photos app from opening it, because the app looks for the package in its known location. If you must relocate it, use the option in Photos to choose a new library, then confirm it opens before deleting anything. Keep a backup copy before you move or rename the package.
