Lightroom: Set Maximum # Of Catalog Backups, and Auto-Replace Oldest

59 Votes
Contributor ,
Jun 30, 2012 Jun 30, 2012

Copy link to clipboard

Copied

Currently it's up to the user to check how many catalog backups have been created, and delete the oldest ones. For people with large catalogs, the amount of disk space consumed can be significant.

It would be great if I could tell LR to create a maximum of 3 backups, and automatically replace the oldest one with the newest one.
Idea No status

Views

337

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
22 Comments
Engaged ,
Jul 01, 2012 Jul 01, 2012

Copy link to clipboard

Copied

Hi Gavin,

Agree this would be a useful feature.

In the meantime I have written the TPG LR Backup plugin that compresses the catalog backups and can help you move them to a different HDD. The catalog backups typically compress to 10-25% of their original size so it definitely helps conserve disk space so you don't need to manually clean the files up as quickly. I will be adding a feature to manage the backups by maximum number of backups or Mb consumed by backups. ETA for that is still to be confirmed.

Matt

Votes

Translate

Translate

Report

Report
Contributor ,
Jul 04, 2012 Jul 04, 2012

Copy link to clipboard

Copied

Great plugin, Matt. Looking forward to the auto-replace functionality!

Votes

Translate

Translate

Report

Report
Community Beginner ,
Oct 21, 2012 Oct 21, 2012

Copy link to clipboard

Copied

I just found out that lightroom keeps spamming my harddrive with backup databases without any limits.
That actually feels like a huge bug, but seems to be a "feature".

So here to request would be what tons of other pieces of software already do:
Make it an option to discard old backups automatically via one of two criteria:
a) discard oldest backups if total sum of backap data exceeds x megabyte
b) discard oldest backups if the get older than x days/weeks/months

Votes

Translate

Translate

Report

Report
LEGEND ,
Nov 23, 2012 Nov 23, 2012

Copy link to clipboard

Copied

I have about 100k photos, and my LR4 Catalogue is nearly 2Gb in size. I've been in the habit of backing up every time LR quits, because I do a fair bit of editing and don't want to lose recent changes if things were to go belly up. I checked the backup folder yesterday and it is over 100Gb in size, with backups stretching back to the last Ice Age... ;o)

Would it be possible to introduce an option to limit the number of backup copies. By that I mean the user could tick a box to limit the number and select how many copies of their catalogue they wish to keep. The programme would keep track of this and delete older copies automatically, or at least give the user a prompt to say "OK, bin them!"

For me the "perfect" implementation would have two aspects:

Firstly, an option to retain, for example, the latest four daily backups then, say, weekly backups of the last month, and perhaps a few monthly backups. This would give a reasonable buffer if anything did go wrong big style.

Secondly, the option to save backups and catalogue to two different locations (i.e. drives) simultaneously.

Thanks for your consideration folks, and an even bigger thank you for LR! It's awesome! :o)

Votes

Translate

Translate

Report

Report
LEGEND ,
Nov 24, 2012 Nov 24, 2012

Copy link to clipboard

Copied

Clear backups LR catalog safely from LR. I had twice problems with deleting old backup files by hand. In the first time, I only lost one day work at all; in the second one, this time, I lost more than month and half work... I was deleting them because they weighted all together more than 40 GBs (1 GB per lrcat).

So, I was sure that I was deleting them correctly, all the backup files except of this month. Everything OK, 30 GB more on HD. Next, I enter LR and says that there's no catalog. What? Lost again? Look in the catalog folder for files. Nothing, everything empty... Not possible! Again!

So I lost/deleted all my backup files and only recover with a good recovery application but at the date of October 13th of this year...

It could be possible to do the cleaning from LR with safety?? This type of human errors could be avoided...

Thanks!

Votes

Translate

Translate

Report

Report
New Here ,
Jan 07, 2013 Jan 07, 2013

Copy link to clipboard

Copied

Implement possibility to specify automatic deleting of old backups.
Old backups of LR catalogs are building up quite fast which is a waste of storage space unless old backups are deleted manually. Would be nice to automate the removing of old backups.

Votes

Translate

Translate

Report

Report
LEGEND ,
Jan 07, 2013 Jan 07, 2013

Copy link to clipboard

Copied

I recommend a scheme that allows user to keep x per year (old years), and y per month (old months), or something like that.

In other words having the latest 15 catalogs does no good if you oppsidentally reset a bunch of photos 16 catalogs ago. One is not likely to restore everything from 16 catalogs back, but one does not need to restore an entire catalog, one can just import adjustments for selected photos from an old backup...

Votes

Translate

Translate

Report

Report
LEGEND ,
Jan 13, 2013 Jan 13, 2013

Copy link to clipboard

Copied

It would be really great to have the option to only save a certain number of backups. At the moment I have to delete excess backups as I save them to cloud storage and they take up quite a lot of space. I'd like the option to only save the last 3 backups, the fourth being automatically deleted when a new backup is made.

Votes

Translate

Translate

Report

Report
Community Beginner ,
Apr 04, 2014 Apr 04, 2014

Copy link to clipboard

Copied



I love LR5 but wish there was a way to limit the number of backups saved in an automatic way. I backup at least once a day when exiting and when I forget to check the backup folder for a long time Giga bytes have been eaten up on my hard drive. This is easy to resolve if your memory (personal) is good enough, but couldn't LR handle this by a Preference that allowed me to select "Save the most recent X (e.g., 6) backups and then I could remember more important things that LR can't remember. Thanks!

Votes

Translate

Translate

Report

Report
LEGEND ,
Apr 18, 2014 Apr 18, 2014

Copy link to clipboard

Copied

I too, would like to see a "save most recent X backups" feature. It is annoying how the backups fill up the hdd (and one forgots about deleting them manually)
thanks

Votes

Translate

Translate

Report

Report
LEGEND ,
Apr 14, 2016 Apr 14, 2016

Copy link to clipboard

Copied

Looks I'm late to the party but only now realized how I had about 60GB of wasted space with my lrcat backups.  Please Adobe, help us better manage our disks.

Votes

Translate

Translate

Report

Report
LEGEND ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied



There really needs to be a user settable parameter to remove old copies of LR Catalog backups.  It could either be based on age of the backup or on the number of backups that are currently in the specified backup location.  I work with clients and often find hundreds, if not thousands of old LR catalog backups consuming a lot of space on their hard drives for no reason at all except then don't know they are there and don't know they can delete them with no harm.  This is a significant oversight in the catalog management process that needs to be corrected.

Votes

Translate

Translate

Report

Report
Explorer ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

YES it would be great to be able to specify max 3 backups or something more sophisticated.  In the meantime, at least TELL people that it's ok to delete backups!   First, they may not be aware of them, and second, like me, they may initially fear deleting backups thinking that they are incremental rather than individually complete. 

Votes

Translate

Translate

Report

Report
Engaged ,
Oct 22, 2018 Oct 22, 2018

Copy link to clipboard

Copied

Since LR doesn't has this cleanup function, I've written a Powershell script that remove the backup based on the age and the minimum number to keep. In case it may be useful to some of you, here it is :

>>>>>>
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# Script Suppress LR Backup
# Purpose
# =======
# This script will remove all but the n most recent LR catalog backup
# files, providing they are old enough.
# The number of files to keep is defined in $FilesToKeep
# The oldest aging to keep is defined in $lastmod
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Declaring variables

#$mypath = "S:\Temp\testremove\test"
$mypath = "S:\Sauvegarde\Catalogue_LR"
$FilesToKeep = 5 # Minimume number of files to keep
$jour = Get-Date
$lastmod = $jour.AddDays(-10) # Minimum aging days for the file to be removed


# Suppress all but the "$FilesToKeep" most recent files,
# providing the files are old enough.
$Count = 0
Get-Childitem $mypath -file -recurse | Sort-object $_.LastWriteTime -Descending | Foreach {
$Count = $Count +1
IF ($Count -gt $FilesToKeep) {
IF ($_.LastWriteTime -le "$lastmod") {
# write-host "Deleting File" + $_.fullname -foregroundcolor "Red";
Remove-Item $_.fullname | out-null
}
}
}
# Suppress the empty folders
$ListFolder = Get-Childitem $mypath -Directory -recurse | where { @(gci $_.Fullname).count -eq 0}
Foreach ($Folder in $ListFolder) {
Remove-Item $Folder.Fullname -Recurse | out-null
}

# End of script

<<<<<<<<<<<<


Votes

Translate

Translate

Report

Report
LEGEND ,
Apr 21, 2019 Apr 21, 2019

Copy link to clipboard

Copied

Brilliant, just what i needed

Votes

Translate

Translate

Report

Report
New Here ,
Oct 20, 2020 Oct 20, 2020

Copy link to clipboard

Copied

currently, it's quite easy for people to unknowingly have a folder of Lr catalog backups that's 100+GB, as Lr merrily creates and adds new backups based on one's setting.

it would be great to have options to limit the folder size, to automatically delete backups older than a certain age, or to have a limit on the number of backups.

or, at least warn the user that the folder size is getting large

Votes

Translate

Translate

Report

Report
Participant ,
Feb 24, 2021 Feb 24, 2021

Copy link to clipboard

Copied

One can quickly eat into storage capacity if one neglects the deletion of old catalogue backups and 2nd copies of imported images.  There is provision for automatic deletion of previews after a set time but not old catalogue backups nor imported 2nd copies.  Catalogue backups are best deleted by number, that is to say, keep the most recent one, two or three and delete any older.  Imported 2nd copies are really not needed after the images are processed so one could have a setting of automatic deletion after so many days.  I wouldn't have thought this not difficult to implement.

Votes

Translate

Translate

Report

Report
Community Beginner ,
Feb 25, 2021 Feb 25, 2021

Copy link to clipboard

Copied

Most of the people I know that have a Backup strategy use third party softwares (TimeMachine on MAC  or SyncBack on PC)  and don't use the LRC catalog Backup neither the 2nd copy because this is a endless storage usage and there is no process in LRC to manage the deletion.  Me i use SynchBack that backup on a NAS and the NAS Backup on the cloud

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Feb 25, 2021 Feb 25, 2021

Copy link to clipboard

Copied

I don't know if this plugin still works: https://www.photographers-toolbox.com/products/mdawson/tpglrbackup/

I use a utility on my Mac called 'Hazel' to do what you want.

-- Johan W. Elzenga

Votes

Translate

Translate

Report

Report
Contributor ,
Feb 25, 2021 Feb 25, 2021

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Explorer ,
Feb 25, 2021 Feb 25, 2021

Copy link to clipboard

Copied

A Backup Cleaner plugin for automatically removing old backups.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Feb 25, 2021 Feb 25, 2021

Copy link to clipboard

Copied

LATEST

This thread is being merged into an existing authoritative thread for better tracking and response. Please review the official answer (if any) in the second post on the thread for more information. 

Rikk Flohr - Customer Advocacy: Adobe Photography Products

Votes

Translate

Translate

Report

Report