Help - Search - Members - Calendar
Full Version: Backup Catalog Management
Luminous Landscape Forum > Raw & Post Processing, Printing > Adobe Lightroom Q&A
MBehrens
I was dong some file managemnt and found that all of the backups ever created for each of my LR Catalogs were still hanging around from Beta Testing up tothe most current. Was consuming a couple of GB of space.

Anyone know of a setting/preference to have LR only keep so many of these? 3 or 4 would be plenty depending on how often backups are created.

Thanks,
Morey
kikashi
QUOTE (MBehrens @ Nov 27 2007, 04:08 AM)
I was dong some file managemnt and found that all of the backups ever created for each of my LR Catalogs were still hanging around from Beta Testing up tothe most current. Was consuming a couple of GB of space.

Anyone know of a setting/preference to have LR only keep so many of these? 3 or 4 would be plenty depending on how often backups are created.

Thanks,
Morey
*


If you're using a Mac, an AppleScript attached to the folder which would delete the oldest backup when a new one was created would be pretty trivial to write.

Jeremy
kikashi
I wrote:
QUOTE (kikashi @ Nov 27 2007, 09:00 AM)
If you're using a Mac, an AppleScript attached to the folder which would delete the oldest backup when a new one was created would be pretty trivial to write.

Jeremy
*


And here it is. Copy into the Script Editor, save as a compiled script in /Library/Scripts/Folder Action Scripts. Enable folder actions for your LR backup folder and assign this script as an action.

All it does is to check, whenever something is added to the folder, if more than maxFolders exist and, if they do, to delete the oldest of them. It works because LR (1.3, anyway) creates a new folder for each new backup.

You can change maxFolders to any value you like, depending on how many backups you want to keep.

Tested, but not thoroughly. Seems to work. Use at your own risk. No warranties, express or implied. Should you or any of your IM team be captured or killed, I will disavow any knowledge of your actions.

Jeremy

to getOldest(folderList)
local theFolder, theOldest, oldestDate
tell application "Finder"
set theOldest to folderList's first item
set oldestDate to theOldest's creation date
repeat with theFolder in folderList
if theFolder's creation date is less than oldestDate then
set theOldest to theFolder
set oldestDate to theOldest's creation date
end if
end repeat
end tell
return theOldest
end getOldest

on adding folder items to thisFolder after receiving addedItems
set maxFolders to 5
tell application "Finder" to set folderList to every folder in thisFolder
if (count items in folderList) is greater than maxFolders then
set theFolder to getOldest(folderList)
tell application "Finder" to delete theFolder
end if
end adding folder items to
dedalus
QUOTE (MBehrens @ Nov 27 2007, 04:08 AM)
I was dong some file managemnt and found that all of the backups ever created for each of my LR Catalogs were still hanging around from Beta Testing up tothe most current. Was consuming a couple of GB of space.

Anyone know of a setting/preference to have LR only keep so many of these? 3 or 4 would be plenty depending on how often backups are created.

Thanks,
Morey
*

If using Windows itīs easy just manually delete the old backup folders.
MBehrens
I'm on Windows so the scripting is possible but not worth the effort. Simply purging them out from time to time seems to be the ticket.

Seems like a good feature for LR in the Catalog settings. Set the frequency and the retention count.

Thanks!
Doug_H
Help! - I decided to follow this and delete the old folders. However in doing so I accidentally doubleclicked on the .lrcat file in one of the old folders and Lightroom no longer starts up - it tries to show the last image I worked on but fails with a 'report this error to Microsoft' box.
Anyone any ideas?
tomrock
Find the .lrcat file in the most recent folder and double-click that.
Doug_H
Thanks - it needed to be the main catalogue file (not the most recent backup which is what I tried first) - am now breathing normally again: memo to self - TRY not to do stupid things in the midst of processing a wedding!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.