On 29/10/2019 20:44, Remco Viëtor wrote:
On mardi 29 octobre 2019 20:16:57 CET [email protected] wrote:
On Tue, 29 Oct 2019 12:08:37 -0700

"I. Ivanov" <[email protected]> wrote:
and it's not working. Backing up ~/fotos doesn't copy the sqlite.

Backing up? What program? Is this a link ~/fotos
to /home/user1/fotos?

I should have explained better.

I'd like to do a "photo backup" to an external usb-drive. A simple copy
as a 1-chunk, not some files here a directory there...

Copying ~/fotos to the usb-drive would backup everything, the images,
the xmps, the darktable configs, darktable database and the previews.

There's an option '--library' to specify the location of the sqlite database
(see manual, section 1.1.1)

Both me and my wife use darktable, and we move around between computers and displays, so we have everything on a personal external disk.

Each of us then has a script like below to launch darktable with all data on the external disk.

The awk and perl stuff is to adjust the width of the sidebars between displays of varying resolution.

The database is in the $BASE/config dir, and the thumbnails in the $BASE/cache dir.

While it doesn't appear here, the photos are in $BASE/Photos

All this keeps database, configuration, photos and thumbnails on the external disk, giving you total mobility.

#!/bin/sh
BASE=/media/rene/Media/darktable

width="$(xdpyinfo | awk '/dimension/ { print int(int($2)/6); exit; }')"
perl -i.bak -pe 'if (/^panel_width=/) { s{=\d+$}{='"$width"'} }; if (m{/ui/panel_collaps_state=}) { s{=\d+$}{=0} }' $BASE/config/darktablerc
exec /usr/bin/darktable --configdir $BASE/config --cachedir $BASE/cache "$@"

____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to