Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-31-2016, 02:09 PM   #1
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,009
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kobo Forma, Libra2, Clara 2e, Kindle PW SE & Kindle 2022
Calibre metadata files query

Hi

I've got my calibre in Dropbox so its accessable by multiple laptops. I made a mistake on one laptop and bulk changed the series info on 800 books to the same name (I meant to bulk add a new tag). I'm trying to work out my easiest resolution. I managed to get to another laptop and pause sycing so i have the database files from that laptop pre change and I was on that PC earlier today so they are uptodate

Can I just replace the metadata.bd file from the unsynced laptop into Dropbox? and will that put back my series info? or am I looking at letting dropbox fully sync then adding the data back manually?
Josieb1 is offline   Reply With Quote
Old 05-31-2016, 04:40 PM   #2
jimbob101
Connoisseur
jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.jimbob101 ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 499999
Join Date: Nov 2008
Location: Laois, Ireland
Device: Kindle App Android, Kindle PW2, Calibre
If you stopped the sync on the second laptop then the first thing I would do is make a copy of your library from this laptop. The Metadata for the individual books is stored in the opf file with the book itself so the calibre metadata file on it's own won't help.

Once you have made a backup on the second laptop then allow it to sync. Once the sync has completed copy the backuped library back overwriting all files in the dropbox folder. This will replace the "messed up" version with the version on the second laptop that is still has ok metadata.

This should work based on what I see happening when I sync my Calibre library on my laptop with the backup version on an external drive. My internet is so slow there is no point using dropbox for Calibre. No matter what happens make the copy from the second laptop and verify that it is correct before doing anything.
jimbob101 is offline   Reply With Quote
Advert
Old 05-31-2016, 04:49 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
As jimbob101 said, if you know the copy on the second laptop is good then you can simply copy it and restore it after Dropbox does its thing.

But if not... well, the easiest and least-interactive thing in my opinion is to revert your entire Dropbox by a couple hours so the synced changes get undone.
Dropbox Support may be able to do this for you, but I used the following python script: https://github.com/eli-schwartz/dropbox-restore

...

A series change only affects the database, and the backup metadata.opf files, so the actual changes will be minimal.
eschwartz is offline   Reply With Quote
Old 05-31-2016, 04:58 PM   #4
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,009
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kobo Forma, Libra2, Clara 2e, Kindle PW SE & Kindle 2022
Quote:
Originally Posted by jimbob101 View Post
If you stopped the sync on the second laptop then the first thing I would do is make a copy of your library from this laptop. The Metadata for the individual books is stored in the opf file with the book itself so the calibre metadata file on it's own won't help.

Once you have made a backup on the second laptop then allow it to sync. Once the sync has completed copy the backuped library back overwriting all files in the dropbox folder. This will replace the "messed up" version with the version on the second laptop that is still has ok metadata.

This should work based on what I see happening when I sync my Calibre library on my laptop with the backup version on an external drive. My internet is so slow there is no point using dropbox for Calibre. No matter what happens make the copy from the second laptop and verify that it is correct before doing anything.
I've let the other laptop sync now, but thanks for the sugestion. If I'm stupid enough to do this again I'll bear that in mind. It's only 200 books that actually were in a series and I made a catalogue of them before I allowed the sync to resume. I can revert it all manually at the weekend. once i've done those 200 I can delete the new 'series' name which will take care of the other 600.
Josieb1 is offline   Reply With Quote
Old 05-31-2016, 04:59 PM   #5
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,009
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kobo Forma, Libra2, Clara 2e, Kindle PW SE & Kindle 2022
Quote:
Originally Posted by eschwartz View Post
As jimbob101 said, if you know the copy on the second laptop is good then you can simply copy it and restore it after Dropbox does its thing.

But if not... well, the easiest and least-interactive thing in my opinion is to revert your entire Dropbox by a couple hours so the synced changes get undone.
Dropbox Support may be able to do this for you, but I used the following python script: https://github.com/eli-schwartz/dropbox-restore

...

A series change only affects the database, and the backup metadata.opf files, so the actual changes will be minimal.
Thanks for the script but tbh I'll feel safer reverting it all manually. I don't feel comfortable playing with dropbox as we have too much stuff on there. It's not as bad as I first feared.

Last edited by Josieb1; 05-31-2016 at 05:02 PM.
Josieb1 is offline   Reply With Quote
Advert
Old 05-31-2016, 05:14 PM   #6
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,009
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kobo Forma, Libra2, Clara 2e, Kindle PW SE & Kindle 2022
I just thought, my third PC that's connected to my Dropbox Calibre is a MAC could I use that devices Dropbox folder to overwrite the one actually in Dropbox? My other two PCs which have both synced up to Dropbox (and down) are Windows laptops. My MAC hasn't been switched on today at all.
Josieb1 is offline   Reply With Quote
Old 05-31-2016, 05:32 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Josieb1 View Post
Thanks for the script but tbh I'll feel safer reverting it all manually. I don't feel comfortable playing with dropbox as we have too much stuff on there. It's not as bad as I first feared.
I totally understand.

Quote:
Originally Posted by Josieb1 View Post
I just thought, my third PC that's connected to my Dropbox Calibre is a MAC could I use that devices Dropbox folder to overwrite the one actually in Dropbox? My other two PCs which have both synced up to Dropbox (and down) are Windows laptops. My MAC hasn't been switched on today at all.
Assuming that the Mac was up-to-date before you made the mistake...
It should be no different than overwriting the Dropbox folder on the Windows computer.
eschwartz is offline   Reply With Quote
Old 05-31-2016, 06:06 PM   #8
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,009
Karma: 18018738
Join Date: Nov 2009
Location: UK
Device: Kobo Forma, Libra2, Clara 2e, Kindle PW SE & Kindle 2022
Quote:
Originally Posted by eschwartz View Post
I totally understand.



Assuming that the Mac was up-to-date before you made the mistake...
It should be no different than overwriting the Dropbox folder on the Windows computer.
Thank you . I'll take a look at my MAC and see what I've updated since the weekend. I am quite prolific with Claibre but it might only be a few books. I'll make sure my router is off before I turn it on first so it can't update
Josieb1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Companion - metadata only query Josieb1 Calibre Companion 9 11-12-2015 08:47 AM
Metadata query iain robinson ePub 4 08-08-2012 12:07 PM
Query re: bugfix in Calibre 8.15 to Kindle "sidecar" files GeekyGal Calibre 4 08-20-2011 02:36 AM
metadata query turbotoes Calibre 2 12-27-2010 06:19 AM
Editing the date in metadata query Cyclops Calibre 11 09-22-2010 11:58 AM


All times are GMT -4. The time now is 03:04 AM.


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