![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
Calibre and conflict of individual books OPF files
I have my Calibre in Dropbox. It's accesable by three different PCs. I've had quite a few conflicts in the main metadata files (among the five that sit in the main database) and I've always deleted the conflicts and Calibre always looks okay. I do have 6500 books in it so it's a large database, but generally everything looks okay.
I've started to notice that individual books have conflicts in their OPF files. I only spotted these when I right clicked to view the book folder in Windows, usually to use Send to Kindle. Where I see them I delete them. Is it possible to run some kind of integrity check where Calibre can flagged up all the individual books with conflict OPF files? Or is there some other way of clearing up the database? |
![]() |
![]() |
![]() |
#2 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Josieb1 - the conflicts are almost certainly due to the fact that you run the calibre library manager and the dropbox client concurrently - see FAQ - I am getting errors with my calibre library on a networked drive/NAS?
Quote:
Aside - a search of the manual for 'dropbox' puts the FAQ I've cited as the first item, and a thread search for 'dropbox' in the MR Calibre forum should find a number of threads with the same advice. BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
Thanks for posting BetterRed. Unfortunately I don't understand most of what you said.
I wanted my Calibre library in Dropbox specifically so it could be accessed and updated using whatever pc I happened to have turned on. I've moved to a Mac as my W7 pc has flaky USB ports and is running slow/hot, and while the Mac is good i I do tend to use Hubbys pc most as I rarely use my Mac during the week. I don't know what a networked drive is really, I certainly don't have one, all our pics are independent they just all access the same Dropbox folder. I did a search of my Calibre folder and it threw up nearly 1400 conflicted opf files going back to July last year. I deleted them all and, touch wood, calibre seems fine. I'm taking a back up now. I'll keep an eye on it. If it becomes a big issue I'll have to move calibre to my Mac and just keep a back up in Dropbox. Last edited by Josieb1; 06-08-2016 at 05:52 PM. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
I'm going away shortly but when I get back I'll try and read up on the threads. As you said it's all about risk. I need to decide if it's acceptable.
|
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
A Calibre library is not a single file, it is a folder containing a database (metadata.db) and a hierarchy of associated sub folders and contents, it must be managed as a whole - no cherry picking allowed. Calibre knows how its libraries work - Dropbox hasn't clue. Regarding your pictures, assuming you're not using an application such as iMatch or Extensis to manage them, then comparisons with Calibre are debatable at best. As I wrote before - to minimise risk of trashing your Dropbox located calibre library adopt the following process: Suspend Dropbox before starting calibre. Before resuming Dropbox run calibre-db --backup_metadata command to flush any pending opf writes. Best way to that is via a script appropriate to the operating system you're using - something along these lines BR
Code:
If Suspend Dropbox is OK If Run Calibre until exit is OK If Run calibredb --backup_metadata is OK Resume Dropbox |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
Thanks again for replying. As I said before I don't understand most of what you are saying. I don't know how or when to run the code you've quoted and I'm not sure why you mentioned pictures either. I understand that my Calibre library is a sum of its parts and not a single entity. I haven't deleted all the OPF files only the conflicts. I'll take a look again tomorrow and decide how best to proceed.
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I mentioned your pictures and Dropbox because you did, with the implication that you don't have have any similar problems with your pictures.
That 'code' is just a set of ' formal instructions' that echoes what I previously wrote. The 'conflicts' are an artefact of dropbox. To avoid them don't run calibre and dropbox at the same time - it's as simple as that. IIRC you suspend/resume Dropbox via its right click menu. Doing it in a script would just save you the effort of doing each step manually - and having to remember them. Anyway I'm just repeating myself so ... BR |
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,055
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Josie1
If you have deleted all the metadata.OPF (used by DB as backup) Right-click: Library Maintenance: Backup Status: Click Queue all book... This take time (~3 sec per book), so let it run ( ![]() |
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
It's pretty simple. To elaborate on what BetterRed said:
... You can make sure that happens automatically with one action, by using a Windows batch file or OSX shellscript. And using the aforementioned `calibredb --backup_metadata` command can provide additional security and peace of mind. But that assumes you are comfortable with scripting. And clearly you are not, which means it was rather counterproductive for BetterRed scare you off with overly-complicated instructions in the first place. ![]() Rest assured -- it is by no means required. Just follow the manual, GUI instructions I provided above. ![]() |
![]() |
![]() |
![]() |
#10 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Additionally, you can resolve your current mess by going to Library Maintenance ==> Check Library and checking for extraneous files.
If there are extraneous OPF files, just delete them and then use Backup Status ==> Queue all book as theducks suggested to regenerate the necessary OPF files. If there are other extraneous files, they might be something you want to keep, so double-check before deleting. |
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
Quote:
Yes I think I understand what you are saying about suspending Dropbox while I use Calibre to add or edit items, you mean pause the sync. At least I think you did. I will have to remember to do it as I wouldn't have a clue where or hoe to load a script, plus I have both windows 7 and a MAC to deal with. I'm going to let all PCs sync to Dropbox (and back down again) and see what I have. If all looks okay I'm going to count myself lucky and not worry about conflicts anymore, just try and only use one of to maintain Dropbox and the other two for enquirys only. Thanks again for your help and advice ![]() |
|
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
Quote:
If not I've got a back up pre removal of conflicts so I can re sync that one. Thank you for helping ![]() Last edited by Josieb1; 06-08-2016 at 11:15 PM. |
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,086
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2
|
Quote:
![]() I understand the pause syncing bit, it's remembering to do it, but it does make sense. Thanks again. ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre - Not using existing metadata from *.opf files when Add books | rolandt99 | Library Management | 19 | 06-15-2020 04:43 PM |
Is there a way to put bookmarks in individual books in the Calibre reader? | ficbot | Calibre | 9 | 06-13-2016 07:56 AM |
Possible bug report - adding books using opf files | kacir | Calibre | 2 | 11-22-2014 05:14 AM |
collection of pdf books with opf files | guycruls | General Discussions | 1 | 03-15-2013 07:42 PM |
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? | DHahn | Kindle Formats | 3 | 04-17-2012 04:06 AM |