I'm using darktable 3.6.0 and am still struggling to find a good workflow. I originally started out with a folder structure where my photos were grouped by "event", but this proved limiting. Instead, I want to switch to a folder structure by date, like
To use this new structure during import from camera, I'm using
gphoto2 from the command line:
gphoto2 --get-all-files --skip-existing --filename '%Y/%m/%d/%f.%C'
Subsequently I import the new photos into darktable. That all works fine.
But how do I convert my existing library to this structure, while preserving the sidecar files (
*.XMP) containing my edits and metadata?
I tried to use the new
copy & import feature in darktable, again with
$(YEAR)/$(MONTH)/$(DAY) folder naming pattern, but this has two problems. One, sidecar files are not imported but instead created anew. And two, everything ends up in a folder with today's date.
gphoto2 apparently knows how to read metadata, I tried to use it to import from a folder rather than a camera, but it doesn't seem to have an option for that. (Am I overlooking something?) But in any case, it would probably ignore sidecar files.
I could come up with a shell script using
exiftool to read metadata and move files around accordingly, but surely there is a simpler way? In Lightroom this would have been trivial...