How to restore Photos to a few hours ago?

I was working in my Imports folder on my Mac and mistakenly set all 3,500 photos in that folder to have keywords that don't belong to them. (It's amazing how when you're tired how easily your fingers can slip and do things they shouldn't do.) What's my best course of action? I have an hourly Time Machine backup. My photos do use iCloud, and I have a phone and two iPads. Is there a way to only restore photos from a backup? Thanks for any help.

iMac 24″, macOS 14.4

Posted on May 12, 2024 8:08 PM

Reply
Question marked as Top-ranking reply

Posted on May 13, 2024 7:30 AM

léonie wrote: If your iCloud Photos Library has used the Optimize feature, you can try to remove the wrong keywords manually. when you select several photos, even thousands at once and open the Info, you can delete a keyword from all selected photos at once by deleting it from the Info.

Of course, you'll delete that keyword from the legitimate uses, as well. But replacing those might be easier than restoring.


While I have occasionally had to restore a Library from Time Machine, I had not thought about dealing with one connected to iCloud. It does complicate things! Thanks, léonie!

Similar questions

6 replies
Question marked as Top-ranking reply

May 13, 2024 7:30 AM in response to léonie

léonie wrote: If your iCloud Photos Library has used the Optimize feature, you can try to remove the wrong keywords manually. when you select several photos, even thousands at once and open the Info, you can delete a keyword from all selected photos at once by deleting it from the Info.

Of course, you'll delete that keyword from the legitimate uses, as well. But replacing those might be easier than restoring.


While I have occasionally had to restore a Library from Time Machine, I had not thought about dealing with one connected to iCloud. It does complicate things! Thanks, léonie!

May 13, 2024 9:23 AM in response to rick7

rick7 wrote: Why wouldn't it just replace the existing library?

Photos syncing works with the Mac, the iPhone, and the iPad. It makes sure that all the devices have the same pictures.


Imagine taking a picture on your phone-- it goes to iCloud. Moments later, before that picture is downloaded to your Mac, you edit a picture on your Mac, and the edits go to iCloud. Since the Mac doesn't have the new iPhone picture, should iCloud erase that from every device? NO! So iCloud gets all the pictures from all the devices, and then downloads the missing ones to each device as needed. It doesn't take away pictures, unless they are intentionally deleted.

May 12, 2024 9:57 PM in response to rick7

That will not work. When you restore the Photos Library from your backup and sync it with iCloud Photos, the restored library will not replace your iCloud Photos Library but be merged into the existing library. You might create many duplicates with different keywords this way.


How are you using iCloud Photos? Are you using "optimize Mac Storage" for iCloud Photos or are you downloading all originals? Only, if all originals have been downloaded from iCloud Photos your Time Machine backup will be a complete backup.

If you are sure, all originals have been downloaded from iCloud, and you can repeat the last import again, you can try the following:

  • Restore your Photos Library from the older Time Machine backup, but do not yet overwrite the current library. Open the restored library in Photos and test it, if it is complete.
  • Quit Photos and switch back to your current iCloud Photos Library and erase the photos from iCloud completely. Wait for the deletion to sync to all your devices.
  • Then make the restored library your iCloud Photos Library.



May 12, 2024 9:02 PM in response to rick7

Could someone confirm that this is what I should do (updating my original post which I can no longer edit)--


  • Click on the Time Machine icon in my menu bar at top, then choose ‘Browse Time Machine Backups’ (I don’t see an option for ‘Enter Time Machine’)
  • Among the many windows that display, find the backup I’m looking for, which is about 10 pm this evening.
  • On the left pane, select Pictures which I have in the Favorites group
  • In the main pane, scroll down to the very bottom item and select Photos Library.photoslibrary
  • click Restore


Once I do that, will the old/restored version then propagate to my other devices through iCloud?


Thanks for the help

May 13, 2024 9:07 AM in response to léonie

Thanks for this, léonie. I hadn't thought that through. I'm using 'Optimizing Mac Storage', so I guess that what I have in the Time Machine backup is a copy of the 'device-sized' photos that are on the Mac. I understand you to be saying that restoring that backup would merge that backup into the existing library and potentially create duplicates rather than replacing it, and therefore make a mess of things. I get that, but can you help me understand why exactly? Why wouldn't it just replace the existing library? I'm just learning about all this, so I don't have a good grasp of the technical details yet.


I will manually take care of the incorrect keywords on those 3500 photos via bulk-processing. After I delete the wrong keywords, I will have to restore the correct ones on a lot of imports, but clearly that's just something that has to be done.


The help is much appreciated.

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.

How to restore Photos to a few hours ago?

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