Lightroom Backups

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Lightroom Backups Sat Jul 25, 2020 3:17 pm • by Bill5818
I'm trying to craft a Hazel rule to control my Lightroom backups. I've searched the forum, but can't find the answer. Here is the folder structure:

/Users/Bill/Desktop/Screen Shot 2020-07-25 at 11.56.29 AM.png

There is a Backup Folder. In this folders are Sub Folders, each names by date and time, i.e.2020-06-15 1821. In that folder is a single file, containing the Lightroom Catalog backup.Lightroom Catalog-2.lrcat.

i.e. Backups. (Folder)
2020-06-15 1821 (Sub-folder)
Lightroom Catalog-2.lrcat.zip (File)

This list can grow quite long and large, as there is a backup each day, and nothing is ever deleted. Before I recently cleared it out, there were something like 30 folders, taking up about 10 GB of space. I want to get rid of all the folders except the most recent two.

I understand how to get Hazel to dive into subfolders, but I am hung up on two points.

1. How do I delete the folder, after deleting the file, and more importantly
2. How do I keep the most recent two folders untouched.

I'm running Hazel 4.4.5 on a 2017 iMac running Mac OS 10.15.6

I'd be grateful for any advice or directions.
Bill5818
 
Posts: 2
Joined: Sat Jul 25, 2020 2:58 pm

Re: Lightroom Backups Mon Jul 27, 2020 11:09 am • by Mr_Noodle
You can try and match a folder based on its contents. There is the "Sub-file/folder count" or you can go by size.

To delete all but the most recent 2, you can add a condition like "Date added is not among the 2 most recent" which will match everything but the two most recent items.
Mr_Noodle
Site Admin
 
Posts: 8623
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Lightroom Backups Mon Jul 27, 2020 12:47 pm • by Bill5818
Thanks. Of course I figured it out about 10 minutes after I made that post. And that is exactly what I did.
Bill5818
 
Posts: 2
Joined: Sat Jul 25, 2020 2:58 pm


Return to Support