Home › Knowledgebase › KB-302

How to set up and sync an external drive for automatic photo backups on macOS

Summary

This guide helps you troubleshoot and resolve: How to set up and sync an external drive for automatic photo backups on macOS. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Managing a large photo library can quickly consume your Mac's internal SSD storage, leading to performance issues. Moving your System Photo Library to an external hard drive frees up internal space, but because the library is no longer on your internal drive, it requires its own backup strategy. This guide explains how to relocate your photo library to an external drive, set up automatic backups with Time Machine, verify the move was successful, and safely handle the original library.

Important: If you use iCloud Photos, moving your System Photo Library to an external drive can cause synchronisation conflicts. iCloud Photos is itself a form of automatic backup and may make an external drive redundant or problematic. We recommend disabling iCloud Photos before moving your library, or consulting with our support team to determine the best backup strategy for your environment.
Operational requirement: The external drive containing your photo library must remain connected to your Mac at all times for the Photos app to function. If the drive is disconnected, the Photos app will not be able to open your library, and you will not be able to view, import, or edit photos until the drive is reconnected.

Prerequisites

Important: Do not use a drive formatted as ExFAT or NTFS for your primary System Photo Library, as this can lead to database corruption and library instability.

Detailed Instructions

Step 1: Prepare the External Drive

  1. Connect your external drive to your Mac.
  2. Open Disk Utility using Command + Space and typing "Disk Utility".
  3. Select your external drive from the sidebar and click Erase.
  4. Choose APFS (recommended for SSDs) or Mac OS Extended (Journaled) (for HDDs) as the format.
  5. Click Erase to format the drive.

Step 2: Move the Photo Library

  1. Close the Photos app completely. Ensure it is not running in the background.
  2. Open Finder and navigate to your /Users/[YourUsername]/Pictures folder.
  3. Locate the file named Photos Library.photoslibrary.
  4. Drag and drop this file from your internal folder to your external hard drive. This copies the library; it does not delete the original yet.
  5. Wait for the copy process to complete. Depending on the size of your library, this may take several hours.
Time Machine warning: Do not allow Time Machine to back up your photo library while the Photos app is open or actively modifying the library. Backing up a large package file that is constantly changing can result in incomplete or inconsistent backups. Always close the Photos app before running a Time Machine backup, or ensure no photos are being imported or edited during the backup window.

Step 3: Set the New Library as the System Photo Library

  1. Hold down the Option key on your keyboard and click the Photos app icon to launch it.
  2. A window will appear asking you to choose a library. Click Other Library....
  3. Navigate to your external drive, select the Photos Library.photoslibrary you just moved, and click Choose.
  4. Once Photos opens, go to the top menu and select Photos > Settings (or Preferences on older macOS versions).
  5. In the General tab, click the button labelled Use as System Photo Library. If it is greyed out, it is already set as the primary library.

Step 4: Verify the Moved Library Works

  1. With the external drive connected, confirm that the Photos app opens and displays your full library.
  2. Open several photos from different dates and albums to ensure they load correctly.
  3. Test that you can import a new photo or make a small edit and save it.
  4. Quit the Photos app completely.

Only proceed to the next step after you have verified that the library on the external drive opens and functions correctly.

Step 5: Handle the Original Library on Your Internal SSD

After verifying the external library works, you have two options for the original Photos Library.photoslibrary in your /Users/[YourUsername]/Pictures folder:

Do not delete the original library until you have completed Step 4 and confirmed the external library opens without errors.

Step 6: Configure Automatic Backups with Time Machine

Moving the library to an external drive protects your internal space, but it does not provide a backup. If the external drive fails, your photos could be lost. To ensure your photos are automatically backed up, use Time Machine with a second external drive.

  1. Connect your second external backup drive to your Mac. This must be a separate physical device from the one holding your photo library.
  2. Go to Apple Menu > System Settings > General > Time Machine.
  3. Click Add Backup Disk and select your backup drive.
  4. Click Options... and ensure that your photo library drive is not in the "Exclude" list.
  5. Time Machine will now automatically back up your photo library whenever both the photo library drive and the backup drive are connected to your Mac.
Backup drive distinction: The drive holding your photo library and the Time Machine backup drive are two separate physical devices. Time Machine backs up the contents of your photo library drive to the backup drive. If you disconnect either drive, automatic backups will not occur.

Troubleshooting

Photos app cannot find the library

This usually happens if the external drive is not mounted or has changed its mount point. Ensure the drive is plugged in and visible in Finder before launching the Photos app. Remember that the Photos app will not work if the external drive containing the library is disconnected.

"Library is not compatible" error

This typically occurs if the external drive is formatted as ExFAT. You must reformat the drive to APFS or Mac OS Extended as described in Step 1. Be aware that formatting erases all data on that drive.

Permission errors accessing the library

If you encounter permission errors when opening the library from the external drive:

  1. Select the Photos Library.photoslibrary file in Finder.
  2. Press Command + I to open Get Info.
  3. Under Sharing & Permissions, ensure your user account has Read & Write access.
  4. If needed, click the lock icon to authenticate, then apply the changes to enclosed items.

Slow performance when browsing photos

Repairing the photo library

If the library behaves unexpectedly after the move, you can attempt to repair it using the built-in Photos repair tool:

  1. Close the Photos app completely.
  2. Hold down the Command and Option keys and click the Photos app icon to launch it.
  3. Click Repair to begin the library repair process.
  4. Wait for the repair to complete. This may take some time for large libraries.

If you encounter any errors during the migration or need assistance with drive formatting, please Open a Ticket.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket