Copy link to clipboard
Copied
How do I exclude the cache and the smart previews from my Time Machine backup?
Also, is Time Machine an acceptable method of backing up the catalogue file, seeing as edits are synced to local storage? Or, is it impossible to restore the catalogue and better to exclude this too and resync from the cloud?
Copy link to clipboard
Copied
Use the steps in this Apple help article:
Exclude files from a Time Machine backup on Mac
After you add files to the Time Machine exclusion list, it will look like the picture below, in the list on the right. I don’t currently have Smart Previews, but I excluded the …previews.lrdata file because it’s an expendable file that can become very large and take up too much backup space.
Also, is Time Machine an acceptable method of backing up the catalogue file, seeing as edits are synced to local storage? Or, is it impossible to restore the catalogue and better to exclude this too and resync from the cloud?
By @Another Madala
It should work, but as the old IT advice says, “test your backups” to make sure they can be restored, no matter what backup system you use.
The rest of your question is a little unclear because you talk about the catalog, which is Lightroom Classic only, but you also talk about cloud sync. With Lightroom Classic, what syncs to the cloud is not the entire catalog. Only Smart Previews of synced images, and only a subset of their metadata. So if the catalog is lost, it isn’t possible to reconstruct all of it from cloud data. If you use Lightroom Classic and you don’t want to lose the catalog, then you do have to ensure that your backup system is reliable, whether that’s the backup feature built into Lightroom Classic, or Apple Time Machine, or something else.
It’s different if you’re talking about cloud Lightroom (not Classic). With cloud Lightroom, there is no catalog. All organizational information is in the cloud, and backed up in the cloud by Adobe, so there is nothing to back up locally, and no local catalog to lose. With cloud Lightroom (not Classic), any device that loses its locally cached Lightroom data can always refresh it from the cloud at the next sync.
Copy link to clipboard
Copied
Hi,
Thanks for the detailed reply. Really appreciated. My fault for not being clear that I was familiar with the Time Machine part of the equation.
Does Lightroom store the (allocated) local cache in '~/Library/Caches'?
Thanks for pointing me to '~/Pictures'
The question on the catalog was not the Lightroom Classic concept, but rather a reference to where Lightroom stores the local index. If that's better terminology? In the case of failure or transfer to a new machine, is it better to let Lightroom rebuild this from the cloud than to force restore the old version?
Last question. Where does Lightroom store the sidecar edit files? I am planning to keep a local copy on an external hard drive, but my understanding is that this is the RAW only.
Copy link to clipboard
Copied
You’re asking about several different things, they have different answers and locations.
Lightroom Classic maintains these files, among others:
Catalog database
Previews
Smart Previews
Camera Raw cache
XMP metadata sidecar files
Does Lightroom store the (allocated) local cache in '~/Library/Caches'?
By @Another Madala
If you literally mean Lightroom (not Lightroom Classic), then the local cache is in the Pictures folder by default, and that path is displayed in Lightroom Preferences / Cache as shown in the picture below. There’s a Browse button in case you want to move that to another volume with more free space, such as an external SSD.
Lightroom Classic has multiple caches. For the Develop module only, it caches at the Camera Raw Cache location specified in Preferences / Performance. You control that location and size limit, as shown in the picture below. Note that below that, there is also a Video Cache with a size limit, always stored at:
~/Users/[username]/Library/Caches/Adobe/Lightroom/Video
For all modules other than Develop, what they cache are the previews and Smart Previews, not the Camera Raw cache. Those are always located in the same folder that contains a catalog.
The question on the catalog was not the Lightroom Classic concept, but rather a reference to where Lightroom stores the local index.
By @Another Madala
If you mean the “‘local index” as in the record of what images are being tracked and the folder path to each image, for Lightroom that is stored in the cloud and cached locally inside the Lightroom Library.lrlibrary file. Technically, that’s really stored as a macOS Package file, which is a file that contains other files (different than a folder). It can be opened and inspected if you right-click it and choose Show Package Contents, but never alter anything in that package or things could get corrupted. (This is exactly the same way Apple Photos works; the Apple file Photos Library.photoslibrary is also a macOS Package and its contents must also never be tampered with.)
For Lightroom Classic, that’s what the catalog does (the catalog is the index), with the help of the other files in the same folder that contains that catalog.
In the case of failure or transfer to a new machine, is it better to let Lightroom rebuild this from the cloud than to force restore the old version?
By @Another Madala
For Lightroom, yes, it’s best to rebuild from the cloud simply because it’s cloud-based. All you have to do is install the Adobe Creative Cloud desktop app, sign in, and install Lightroom. After Lightroom sees that you are signed into your Creative Cloud account, it syncs down your photo info from the cloud to the local cache location you saw in Lightroom Preferences above. Originals will be downloaded on demand.
For Lightroom Classic, as I said before, a local catalog cannot be rebuilt from cloud data. For one thing, the cloud data knows nothing about what local folders the images were in, so those can’t be rebuilt. Any successful restoration depends on how well a local catalog is backed up, because it has to be restored from that backup.
Last question. Where does Lightroom store the sidecar edit files? I am planning to keep a local copy on an external hard drive, but my understanding is that this is the RAW only.
By @Another Madala
Any time XMP sidecar files are used, they must always be stored in the same folder as the raw file, with the same base filename as the raw file. If a file format can be written to, such as a DNG, TIFF, or JPEG, then metadata can be written into the file itself so no XMP sidecar file is created.
Lightroom does not use XMP sidecar files for any cloud-stored originals (photos you edit using its Cloud tab). Instead it stores the data in the cloud and syncs it to the local cache. Lightroom does use XMP sidecar files for any images you edit using its Local tab, similar to if you edit a raw file with Adobe Camera Raw. There is that strict separation between the Cloud and Local tabs, they work very differently. The Local tab doesn’t interact with the cloud data in any way.
Lightroom Classic does not use XMP sidecars file by default, the catalog is primary storage for all edits. To have Lightroom Classic generate XMP sidecar files, you either have to do it manually by selecting photos and then choosing the command Metadata > Save Metadata to File, or you can have them written automatically by enabling the option Automatically Write Changes Into XMP (in Catalog Settings, Metadata tab).
Copy link to clipboard
Copied
Thanks so much for the lengthy reply. My query is all about Lightroom. I don't know anything about Lightroom Classic or how it works. That's why I posted this in the Lightroom forum.
The reference to Time
Machine is that I don't want to waste backup on caches and previews that aren't required as I'll be using the local storage option. Also, if there's any value to backing up the index file which I (mistakenly) called a catalogue as in an index catalogue. This would be for a loss of the primary computer lor local corruption or loss of I'm away from the internet or transferring to a new device.
So, I can really just exclude all of '~/Pictures/Lightroom' from the backup and have a local copy on an external SSD?
For clarity, I am in no way going to be operating through the confusingly named local tab. I'll be doing this all through the cloud tab.
Copy link to clipboard
Copied
Yes, I over-explained because I wasn’t quite clear what you were after, but after your last reply it sounds like you’re on the right track. If using Lightroom, I think it’s perfectly OK to exclude the Lightroom local cache from Time Machine backups to make the best use of backup space.
I suppose if you had to restore a Mac from Time Machine, it might save a little time to already have the Lightroom cache in the backup, but even so, the next time you start Lightroom it would be checking in with the server anyway and make any local changes needed to keep it in sync with the cloud data.