[Digikam-users] Moving Remote Collection Howto?
Laurent Espitallier
laurent.espitallier at laposte.net
Fri Dec 7 10:41:02 GMT 2012
Le 07/12/2012 10:52, Sjoerd a écrit :
>
>
> On 2012-12-07 10:11, Johannes Graumann wrote:
>> Hello,
>>
>> My digikam setup currently looks as follows:
>> 1) a local mySQL database contains both metadata and thumbnails
>> 2) the (main) collection resides on a network share which I mount as
>> needed
>> on "/mnt/Images".
>>
>> As I am putting a new NAS into use I would like to transfer the
>> collection
>> (2) above) to that NAS and use a standard smba share path rather than
>> having
>> to rely on manual mounting. How can I instruct digikam to modify
>> database
>> information such that paths for the images are converted to the new
>> location? Is that even possible?
>>
>
> You still have to mount the sambashare to a mount point like
> /mnt/newshare.
> Then I would start Digikam and add the new share as a new collection and
> finaly move from within Digikam your old share collection to the new one.
> Will probably take a while (depending on the amount of pictures), but
> sounds the safests..
>
> Cheers,
> Sjoerd
Another way to do it should be to install SQLite manager for Firefox :
https://addons.mozilla.org/fr/firefox/addon/sqlite-manager/
The to open the database file (digikam4.db)
Look for "albumsRoot" table and update the identifier field of the
"collection/albumroot"
You'll need to encode the pathname with a tool. For example :
http://meyerweb.com/eric/tools/dencoder/
For example
/mnt/newpath
will then be encoded to
%2Fmnt%2Fnewpath
So the album root identifier should be updated to :
networkshareid:?mountpath=%2Fmnt%2Fnewpath
You should also update the "thumbnails-digikam.db" file so that each
image the new path (more tricky)
Or delete it to automatically rebuild thumbnails.
Of course, as always it is imperative to make a backup before trying to
modify the database !!!
More information about the Digikam-users
mailing list