The safest way to back up an offline Photos Library

Hello,


looking at the Activity Monitor, I see that the "photolibraryd" daemon is often working on the Photos library in the background, even when the Photos app is closed. Apple’s Support articles say that when one wishes to back up one's photos library, copying it by dragging it to another volume is sufficient. However, I am wondering if the photos library is always in a consistent state, ready for backing it up, when the photolibraryd task is reading from and writing to it intermittently.


We have a 1.5TB photos library which is not synced with iCloud, which we back up to a Unix tar archive. Here, I would expect the same issue to occur of the library not being in a consistent state while its files are accessed for backup.


Do you know of a way to obtain proper backups? I also used Carbon Copy Cloner, which should be subjected to the same problem. Right now, the only way I can think of might be to switch Photos to another library before backing up the main library.


We restored our library from a tar backup, and our library still works, but with long delays in between operations and frequent heavy disk activity. We rebuilt/repaired the library, as well, but that operation went very slowly (with 1-2% CPU utilization) and when it was finished, the delays have improved only slightly.


We store the library on a regular Western Digital USB external hard drive formatted with APFS.


Many thanks!

Mac mini (2023 with M2 Pro)

Posted on Feb 13, 2023 7:10 AM

Reply

Similar questions

8 replies

Feb 13, 2023 9:11 AM in response to anacond42

PowerPhotos is a ver good addition to Photos. And it can sometimes rebuild a damaged library, even if Photos can no longer work with it. It is the successor to the good old iPhoto Library Manager, that we used in desparate situations to rescue a Photos or Aperture Library.


I am using PowerPhotos to incrementally backup my new photos into an archive library I am keeping on an external volume. It is working rather well:

  • In my main library on my Mac I am creating a smart album with the rule "Date added is after ..." (the date of my last backup)
  • Then I use PowerPhotos to copy the items from this album to the Archive Library.


Feb 13, 2023 7:33 AM in response to anacond42

First, Apple tell us never to use our Photos Library from a networked drive. The Library must be used from a directly connected drive formatted in either APFS format or Mac OS Extended (Journaled) format. Attempts to do otherwise may damage the Library. (A static backup can be stored on other drives.) It sounds like this is what your are doing.


And, every backup is a snapshot. The fact that the Library may be constantly changing doesn't impair the quality of the backup. It may be that a minute later you will have one more face identified, but the backup for that moment will be fine. We have not seen any evidence that a backup copy (and lots of people here make lots of backups!) has been corrupted because of background processes. I use Time Machine, Carbon Copy Cloner, and straight drag and drop-- they all work fine.

Feb 13, 2023 8:16 AM in response to anacond42

I know you have re-built the library. Have you tried starting in "Safe Mode" to see if the problem is is with your account, or with caches and login items, and stuff like that?

           Start up your Mac in safe mode - Apple Support 


One way to make a fresh copy of your library (though it will take weeks!) is to connect to iCloud, wait for it to synchronize, and then set up a new library and let it re-populate. It clears up a lot of sins. You can then disconnect from iCloud.

Feb 13, 2023 8:42 AM in response to anacond42

I do not use "Optimize Mac Storage", so I would expect all original image files always to be locally downloaded t my Mac's library, but that is not always the case. When you are seeing "Synced with iCloud just now" in the status bar below "All Photos" all changes are in sync, but it does not mean, that Photos has downloaded all original image files from iCloud, only the versions and albums and folders are in sync. There is simply no indicator that all originals have been downloaded.


I recommend to test your copy of the Photos Library on the external volume, if it is complete and contains all originals. When you open the backup copy of your library in Photos, you should be getting a warning about incomplete items, if not all originals have been downloaded, when the copy has been made.


I am using PowerPhotos to make backup copies of my Library. PowerPhotos will show a list of all incomplete items, that could not be copied. My library has currently a size of 57000 photos, and usually ten to twenty photos, that I have not used in a ling time, will have missing originals, that never have been downloaded from iCloud.



Feb 13, 2023 7:45 AM in response to Richard.Taylor

The fact that all states of the library should be valid backups is comforting to know, thank you!


We use a local USB external drive formatted with APFS, so we should be fine on that front. Our Photos app has been "Force Quit" a number of times, which may be the real cause of our problem. So we may need to refill a new library with all original photos and all edited photos separately.

Feb 13, 2023 8:28 AM in response to Richard.Taylor

I like the iCloud idea, very imaginative. I also noticed iCloud photos can be very, very slow with larger libraries, it's good to see this fact confirmed.


I can try Safe mode, though our system is only 3 days old, so it should still be clean. Also, the previous Mac exhibited the same issues with our current library.


Thanks again for your valued help. I'll gladly come back to the forums if I run into new issues.

Feb 13, 2023 9:04 AM in response to léonie

That's good to know. I'll remember the iCloud option as a possibility.


I googled for PowerPhotos, it seems to be a nice cure-all. Couldn't it also be used to copy the contents of the damaged library to a new one, and then one would use the new one with Photos afterwards, or do the Photos libraries it opens, in your experience, have to be error-free from the start? I guess I'll just try it with the free trial.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

The safest way to back up an offline Photos Library

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.