darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.65k stars 1.13k forks source link

Sync database with exernally edited library #17512

Open gael-vanderlee opened 2 weeks ago

gael-vanderlee commented 2 weeks ago

I'm unable to use darktable at the moment because my library is stored on an external drive which I use to edit my photos on multiple computers. I thought that since all the data is stored on the xmp file it would be easy but the databases not being synched really make this difficult. Enabling "look for updated xmps on startup" somewhat helps but it still doesn't work.

Deleting photos from one device shows skulls on other devices, and the dbmaint script doesn't seem to work. Duplicating on one device doesn't show duplicated images on other devices. And this is just the first two things I tested.

Ideal solution would be to have an option "update database on startup", otherwise at least a manual option to "refresh" a film roll from the library.

ralfbrown commented 1 week ago

That sounds like you have your images on the shared drive, but the actual library (database and configuration files) locally on each machine. You can use the --configdir commandline argument to point all of your machines at a common directory on the external drive, at the cost of slower operation (database updates as you work will take a bit longer) and not being able to edit from multiple machines at the same time.

Another option is skipping the database file with --library :memory:, but that will require reimporting each folder you want to work on every time you work on it, plus you lose the ability to search for images.

gael-vanderlee commented 1 week ago

Didn't know about the configdir agrument. It might just work, thanks for helping out