Restoring Photos library from Time Machine

While attempting to delete the last from from a video in the Photos app I somehow lost the video. I restored the Photos library from the last backup in Time Machine before the loss.


In doing so I elected to keep the current copy of the library and the restored copy. However I am unable to play videos in the restored library. Videos in the current library play normally. I tried exporting the accidentally deleted video from the restored library but got "export operation failed."


If I move the current library to another location, and rename the restored library so that it is no longer identified by name as a backup, will videos in the restored (now current) library play as normal?



MacBook Air

Posted on Jul 29, 2025 09:33 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 30, 2025 03:46 PM

EricWeir wrote:

...

My library is synced with iCloud Photos. I take you to be saying that there could be a discrepancy between my iCloud Photos and the Time Machine backup of the Photos library.

Yes. Time Machine can only backup the items that have been downloaded from iCloud and are mirrored locally on your Mac. So the Time Machine backup may have missing originals, if the syncing has not been complete, when the particular backup has been made, or if you have enabled the option"optimize Mac Storage".


I don't understand making the restored library the iCloud Photos library and then syncing it with iCloud. Would not doing the former be doing the latter? And how does making the restored library the iCloud library resolve the discrepancy?

After you restore an iCloud library from Time Machine, your previous Photos Library will still be the System Photos Library. When you open the restored library in Photos you have to make it the system Photos Library in the Photos > Settings > General tab, and then enable iCloud Photos in the Photos > Settings > iCloud tab. Then should Photos be able to download incomplete item from iCloud, but only, if they have not been deleted from iCloud. The video you accidentally deleted from Photos will also have been deleted from iCloud. If it had not yet beed downloaded from iCloud when the backup has been made, the Time Machine backup may not include the original and you may need to go back further in time.



7 replies
Question marked as Top-ranking reply

Jul 30, 2025 03:46 PM in response to EricWeir

EricWeir wrote:

...

My library is synced with iCloud Photos. I take you to be saying that there could be a discrepancy between my iCloud Photos and the Time Machine backup of the Photos library.

Yes. Time Machine can only backup the items that have been downloaded from iCloud and are mirrored locally on your Mac. So the Time Machine backup may have missing originals, if the syncing has not been complete, when the particular backup has been made, or if you have enabled the option"optimize Mac Storage".


I don't understand making the restored library the iCloud Photos library and then syncing it with iCloud. Would not doing the former be doing the latter? And how does making the restored library the iCloud library resolve the discrepancy?

After you restore an iCloud library from Time Machine, your previous Photos Library will still be the System Photos Library. When you open the restored library in Photos you have to make it the system Photos Library in the Photos > Settings > General tab, and then enable iCloud Photos in the Photos > Settings > iCloud tab. Then should Photos be able to download incomplete item from iCloud, but only, if they have not been deleted from iCloud. The video you accidentally deleted from Photos will also have been deleted from iCloud. If it had not yet beed downloaded from iCloud when the backup has been made, the Time Machine backup may not include the original and you may need to go back further in time.



Jul 29, 2025 10:46 AM in response to EricWeir

in addition to Richard's advice on the restoring - did you restore the library from the Time Machine backup to the same folder where your library originally has been or did you restore it to some external drive? If the library is on an external drive, the file system format should be compatible with Photos, either APFS or MacOS Extended (Journaled) and not case-sensitive. With a different format, the internal links in the library might not be restored properly and Photos may not be able to find the video components in the container formats like MOV or HEIC.


If your library has been syncing with iCloud Photos the Time Machine backup may be incomplete and some originals missing. In that case you have to make the restored library your iCloud Photos library and sync it with iCloud before all originals will be available.

Jul 29, 2025 09:46 AM in response to EricWeir

How did you "restore" the Photos Library? You can't just drag a Photos Library from the data folder, but you must use Time Machine's "Restore" routine:


If you use Finder to open Time Machine, you should see

an Enter Time Machine button at the upper right, or

there's the Time Machine icon on the Menu bar.


Time Machine does incremental backups, so a particular dated file won't have all the information. You need the Time Machine app to put it all back together.


Does this work?

Jul 29, 2025 12:09 PM in response to EricWeir

EricWeir wrote:…If I had elected to overwrite the current copy I would like to think that the videos could be played, exported, etc. And I still have my question: if I make the restored copy the current copy that be the case?

Photos has no way to know what current copy and restored copy mean. You can double click on either one and see what's there. You can use File>Import to bring in pictures and videos from another Library.


Whichever you decide to keep, make it the System Library in Photos' System Settings>General. The System Library is the only one that will work with other apps like Safari, and it's the only one that can connect to iCloud Photos.

Jul 29, 2025 11:34 AM in response to Richard.Taylor

I restored the library from Time Machine. I accessed Time Machine via the Time Machine icon on the menu bar.


Again, I elected to keep the current copy of the library and the copy restored via Time Machine. The only difference between the current copy and the copy restored from Time Machine is that the latter has the video that accidentally got deleted. (I don't understand how that happened.)


If I had elected to overwrite the current copy I would like to think that the videos could be played, exported, etc. And I still have my question: if I make the restored copy the current copy that be the case?

Jul 29, 2025 11:56 AM in response to léonie

As I indicated in my response to Richard, I restored the library via Time Machine accessed from the icon on the menu bar. To the same folder where the original library was.


My library is synced with iCloud Photos. I take you to be saying that there could be a discrepancy between my iCloud Photos and the Time Machine backup of the Photos library.


I don't understand making the restored library the iCloud Photos library and then syncing it with iCloud. Would not doing the former be doing the latter? And how does making the restored library the iCloud library resolve the discrepancy?




Jul 30, 2025 12:41 PM in response to Richard.Taylor

I abandoned my effort to recover the accidentally deleted photo. I did try importing the missing video from the

Time Machine backup into the original library. I was surprised that it could be done, but Photos seemed to be unable to complete the exposure of images for importation. I couldn't find the one I was looking for and gave up waiting for it to appear.


Your comments have been helpful. I will be more careful about messing around with Photos libraries. I am still mystified by the suggestion of possible discrepancies between Time Machine backups and the current library.

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.

Restoring Photos library from Time Machine

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