[digiKam-users] Dealing with changing albim root

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[digiKam-users] Dealing with changing albim root

g257
A few days ago I had a disc failure and had to recover from backups - no
great data loss as far as I'm aware however because that disc held my
photographs when I restored to a different disc the UUID was different. I
quickly realised that digiKam needed fiddling and amended the digikam.db to
change the album root etc. and that seemed to work although I didn't amend
the thumbnail db so there are a lot of duplicate (and wrong) entries there
now.
In this particular instance my main concern was not losing the various tags
that had been set up over the years and that seems to be OK now.
I did a search before I started but didn't find anything directly useful but
I do wonder whether there is, or should be, a facility to deal with that
sort of global change.
Are there any tools to handle this or better methods than I used ?


graham



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: Dealing with changing albim root

AndriusWild
I might be wrong but I think UUID is stored either in one of the digikam's config files or in .db file.
There should be a way to manually change the UUID so digikam won't even notice that you migrated to a new drive.
I personally migrated few times and never did it and I don't think I lost any information.

Best regards,

On Sat, Jun 30, 2018 at 9:08 AM, g257 <[hidden email]> wrote:
A few days ago I had a disc failure and had to recover from backups - no
great data loss as far as I'm aware however because that disc held my
photographs when I restored to a different disc the UUID was different. I
quickly realised that digiKam needed fiddling and amended the digikam.db to
change the album root etc. and that seemed to work although I didn't amend
the thumbnail db so there are a lot of duplicate (and wrong) entries there
now.
In this particular instance my main concern was not losing the various tags
that had been set up over the years and that seems to be OK now.
I did a search before I started but didn't find anything directly useful but
I do wonder whether there is, or should be, a facility to deal with that
sort of global change.
Are there any tools to handle this or better methods than I used ?


graham



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html

Reply | Threaded
Open this post in threaded view
|

Re: Dealing with changing albim root

g257
In the digikam4.db there is a albumroots table with 'identifier' holding the
'volumeid' as a UUID and the 'specificPath' with the path to the photos.
It's that that I changed. (At no stage did I enter the UUID, it was
obviously read from the disc itself)
But just running digiKam I couldn't see any method to change that data. It
seemed to have a collection present but I couldn't see a way to change its
data from within the program; if I added a new collection with the now
correct file path it just processed that and there didn't appear to be a way
to ask it to import the data and tags from the old data (obviously the file
names were the same but the path wasn't).
How did you migrate your data, if I may ask ?

graham




--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: Dealing with changing albim root

AndriusWild
There is no way to do it within digikam GUI. I don't remember exactly what I
did but I am pretty sure the path was in the digikamrc config file.

I keep my data portable and don't rely on digikam internal database though
so I can't guarantee that my method will work for you.
"Portable" means that I write metadata to JPGs themselves and to XMP
sidecars for RAW image files and video files.



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html