[Digikam-users] How to move a digikam collection

Jean-François Rabasse jean-francois.rabasse at wanadoo.fr
Sun Jun 24 23:10:19 BST 2012


Hi Thomas,

On Sun, 24 Jun 2012, Thomas wrote:

> So, now my question is, how do I get this all up and running again
> with the collection in the new location and digikam on a new computer?
>
> I see that the SQL dump of digikam4.db has this line:
> INSERT INTO "AlbumRoots"
> VALUES(8,'photos',0,1,'volumeid:?path=%2Fphotodisk%2Ftdn-photos%2Fphotos','/');
>
> Should I just change this to:
> INSERT INTO "AlbumRoots"
> VALUES(8,'photos',0,1,'volumeid:?path=%2Fnet%2Fphoto%2Fphotos','/');
> And then restore the digikam db?

Seems good. That kind of tweak works for me, I have similar problems
when replicating (rsync) DK database between two computers, a desktop
and a laptop, and yes, I have to change the path of the collection
base directory.
A simple command line SQL command can do "UPDATE TABLE ... " etc.

One more thing you should check is the location of your DB file, the
digikam4.db, because it's stored into the DK runtime configuration
file, $HOME/.kde4/share/config/digikamrc
If your DB file is stored at the root of your collection, you'll
also have to change the "Database Name=" parameter from, e.g.
/photodisk/photos to /net/photo/photos, so that DK can find your new DB 
upon next startup.

And if your DB file is on your local computer, not on a USB drive or
network drive, of course nothing to change in rc configuration.



Regards,
Jean-François


More information about the Digikam-users mailing list