Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2026, 05:55 PM   #1
retro
Addict
retro doesn't litterretro doesn't litterretro doesn't litter
 
Posts: 206
Karma: 245
Join Date: Aug 2009
Location: USA
Device: Kobo Libra 2
New library question

I recently created a new library and I chose "Copy structure from current library". Then I moved a few books from my existing library to the new one and checked all the boxes to have missing columns added automatically.

Both libraries are in one instance of calibre, so I have been surpised by how many setting aren't being applied to the new library.
No plugboards, some plugins setting are different, yet others are the same and any changes affect both libraries.

It seems like something is popping up everytime I make a change to the new library. I wish now I had kept a list of what I had to track down. I bet there will be more.

Is there any documentation about which setting are not shared between libraries? Or is there anything that explains the best way to create a new library and keep existing settings?
retro is offline   Reply With Quote
Old 03-04-2026, 06:30 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,578
Karma: 62544528
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
There are 2 kinds of settings:
1) Per USER (those are in the configuration folder)
2) Per LIBRARY. Those usually apply because they relate to a Library Structure (your copy choice method took care of those )
theducks is offline   Reply With Quote
Advert
Old 03-04-2026, 06:48 PM   #3
retro
Addict
retro doesn't litterretro doesn't litterretro doesn't litter
 
Posts: 206
Karma: 245
Join Date: Aug 2009
Location: USA
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
There are 2 kinds of settings:
1) Per USER (those are in the configuration folder)
2) Per LIBRARY. Those usually apply because they relate to a Library Structure (your copy choice method took care of those )
Sure, but I am the same and only user of both libraries and there is only one configuration folder, so I would think the settings would apply to both libraries.
retro is offline   Reply With Quote
Old 03-04-2026, 07:24 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,471
Karma: 31000706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
There are 2 kinds of settings:
1) Per USER (those are in the configuration folder)
2) Per LIBRARY. Those usually apply because they relate to a Library Structure (your copy choice method took care of those )
But how do you know whether a particular setting is Per USER or Per LIBRARY.

Example: some Preferences->Behaviour settings are Per USER (stored in the configuration data folder files) others are Per LIBRARY (stored in the library metadata.db database file), there's nothing in the dialogue to give a hint nor is it documented (e.g. tri-state-bools setting is per Library, Use viewer for is per User)

When you create a library from another library, some per library settings are copied over, many are not copied -- e.g. Virtual libraries and Look & Feel->Column icons.


@retro - have a look at the 'metadata_db_prefs_backup.json' in your library folders with a text editor that 'knows' what a json is. It will give you a clue as to which settings are per library and which have been copied and which haven't — viz:

Click image for larger version

Name:	Screenshot 2026-03-05 111345.jpg
Views:	29
Size:	890.0 KB
ID:	221570

The one on the left is from a 13 year old "Books" library, the one on the right is from "Books Too", a just created clone (all columns checked) of "Books".

BR
BetterRed is offline   Reply With Quote
Old 03-04-2026, 08:25 PM   #5
retro
Addict
retro doesn't litterretro doesn't litterretro doesn't litter
 
Posts: 206
Karma: 245
Join Date: Aug 2009
Location: USA
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
@retro - have a look at the 'metadata_db_prefs_backup.json' in your library folders with a text editor that 'knows' what a json is. It will give you a clue as to which settings are per library and which have been copied and which haven't — viz:

Attachment 221570

The one on the left is from a 13 year old "Books" library, the one on the right is from "Books Too", a just created clone (all columns checked) of "Books".

BR
I wasn't aware of the metadata_db_prefs-backup.json. Thanks for the direction. Sounds like a good place to start!
retro is offline   Reply With Quote
Advert
Old 03-04-2026, 08:35 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,578
Karma: 62544528
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by retro View Post
I wasn't aware of the metadata_db_prefs-backup.json. Thanks for the direction. Sounds like a good place to start!
That JSON is what should be the same for both libraries since you used copied structure (don't change these files as they are only the backup for rebuilding the DB tables. if they are dif, then your choice failed in some way.)

Comfy's Calibre Config reports (a recent PI) documents all settings and tells where they are
theducks is offline   Reply With Quote
Old 03-04-2026, 09:33 PM   #7
retro
Addict
retro doesn't litterretro doesn't litterretro doesn't litter
 
Posts: 206
Karma: 245
Join Date: Aug 2009
Location: USA
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post

Comfy's Calibre Config reports (a recent PI) documents all settings and tells where they are
Actually, Calibre Config reports doesn't cover some of the settings I've looked for. It does not show configs for plugins or plugboards.
retro is offline   Reply With Quote
Old 03-04-2026, 10:51 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,471
Karma: 31000706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
Comfy's Calibre Config reports (a recent PI) documents all settings and tells where they are
Except it doesn't, it identifies a subset of what is in the Configuration files, and none of what is the library databases. AFAIK it's still very much a Work in Progress. I have suggested to Comfy.n that he signpost that in the PI.

The mapping between the UI dialogues and the settings files is hard coded, and that code is not error free… have a look at settings.py:

Moving that to a csv has been discussed, a start was made, see the settings_ui_mapping.csv that's in the PI zip. That would separate the data from the code, but it still has to be maintained within the CCR plugin.

Any addition, change, deletion from the Preferences panels will probably require a new version of the CCR plugin… e.g. there are 12 settings that relate to bookshelf view in gui.json, they don't get a mention in CCR Settings.

And then there's the issue of plugins… new ones, changes to existing ones, etc.

It's nice idea, but I question it's viability given the manner in which the settings data is structured.

BR

Last edited by BetterRed; 03-04-2026 at 10:57 PM.
BetterRed is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
question about library Elektron Kobo Reader 1 10-03-2020 03:52 PM
Virtual library question SampleAndy Library Management 2 05-19-2017 01:05 AM
Question regarding Library AuraHD Marc66 Kobo Reader 14 12-09-2014 06:11 PM
Library Question jerryleejr Sony Reader 1 10-09-2010 02:36 PM
Calibre library question... brightscreamer Calibre 6 02-11-2009 06:00 PM


All times are GMT -4. The time now is 02:46 AM.


MobileRead.com is a privately owned, operated and funded community.