Skip to main content
Known Participant
Jan 25, 2025 2:17 AM UTC
Question

Anyone have a MacOS (unix) shell script to only keep last x Lightroom catalog backups?

I've grown fearful of my LR classic catalog getting corrupted after encountering corruption a few times last year. I don't want to loose anymore work so I'm backing up my catalog after most edit sessions. I have a concern that the growing number of 700mb backups will eat up my local storage.

I'm wondering if anyone might be able to share a unix shell script that runs on MacOS that would keep the most recent x number of backup folders and delete older backup folders?

thanks

mike

2 replies

JohanElzenga
Community Expert
Community Expert
Jan 25, 2025 11:44 AM UTC

I use a very powerful utility called 'Hazel' for this (and many other folder-related tasks). It's not free, but highly recommended. 

 

Translate
-- Johan W. Elzenga
mikeli77Author
Known Participant
Jan 25, 2025 6:24 PM UTC

Thanks Johan, I'll check it out.

Translate