Where are presets stored

I have just done a clean install of darktable. I was able to find and import scripts I had previously made with the previous installation of DT. However, I am not sure where I would find the various presets for modules that I had made. I have save the appdata for DT under a different name so it is still available. Thanks for any guidance. I did check the user guide first but didn’t see any relevant answer there.

stupid guess: one of the SQLite file ~/.config/darktable/data.db ?

Is this found in the program files or the appdata? Thanks.

Appdata

any further guidance available

Copy your old data.db into that folder.

I think, you don’t have your old install running anymore? Otherwise the export button would be an option, in the preferences in the lower right…

1 Like

Thanks. Copying the data.db worked. Can I ask where the user preferences get stored? I would like to try and recover them if possible.

You could normally get away with copying your whole config directory overtop of the new install files and when you run it the first time it will upgrade everything. However, I think you might have been trying to weed out some things from past install so maybe that is not an option…in that case you should this occur again then export those presets if DT is working before you install the new version.

Basically I don’t use the DT config files in the default location. I update DT quite often. I run windows so I build or download an exe installer for the new version.

When I start an update it offers to uninstall the previous version. I always say yes but I have not explored what it does and does not uninstall. I then install the new version in the standard DT directory.

THen, I “always” run DT from a custom shortcut that points it to use config folders that I have created and that are backed up and easy to find…

Something like this…

“C:\Program Files\darktable\bin\darktable.exe” --configdir “C:\DT_configdir” --cachedir “C:\DT_cache” --tmpdir “C:\DT_cache”

After a new install if anything needs updated DT prompts me for the database update or more recently some noted changes for opencl etc and I just accept…

If I run into an issue I can quickly install the old version and restore my backup config file directories… and I can always compare to the main pristine ones that are in the default directories that i never use if I want to troubleshoot or compare…

This sort of process has worked for me and I have rarely if ever had to pull DT entirely off my pc…

Just a couple of comments FWIW…

Thanks Todd. I seem to have had some gremlins playing in my machine recently. Today when I installed the latest weekly build it asked to update the database, I said yes and nothing happened. This is the first time I had that problem. Luckily I don’t depend upon the database to save my edits and DT is nice in that it writes xmp files in the picture folder so it is not like corrupting an Adobe Lightroom database which can be a nightmare if you don’t have backups.

1 Like

Try: