Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-14-2021, 08:30 AM   #1
recce
Junior Member
recce began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2021
Device: Nook
Missing import/export function

I apologize if this question has been answered before. I search the forum but found only a post from 2019 and it was not helpful.
My setup:
  • Calibre library is on my Google drive
  • Two home PCs running Calibre 5.29 version on Windows 10

Problem:
I noticed that if I update the epub file from one PC, Calibre on that PC shows those updates, but the second PC does not show any updates. I figured that though both PC are connected to the same epub file, the database needs to be in sync between those PCs.

So here is my problem: how can I sync all settings including the databases between the two machines that using the same library?
I thought I saw an Export/Import function in the previous Calibre versions. But for the life of me I can’t find it in the latest version. Was it removed in the latest version or am I searching in the wrong place?

https://drive.google.com/file/d/1bnZ...ew?usp=sharing
recce is offline   Reply With Quote
Old 10-14-2021, 08:57 AM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,187
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by recce View Post
I apologize if this question has been answered before. I search the forum but found only a post from 2019 and it was not helpful.
My setup:
  • Calibre library is on my Google drive
  • Two home PCs running Calibre 5.29 version on Windows 10

Problem:
I noticed that if I update the epub file from one PC, Calibre on that PC shows those updates, but the second PC does not show any updates. I figured that though both PC are connected to the same epub file, the database needs to be in sync between those PCs.

So here is my problem: how can I sync all settings including the databases between the two machines that using the same library?
I thought I saw an Export/Import function in the previous Calibre versions. But for the life of me I can’t find it in the latest version. Was it removed in the latest version or am I searching in the wrong place?

https://drive.google.com/file/d/1bnZ...ew?usp=sharing
From the calibre FAQ's:

https://manual.calibre-ebook.com/faq...rked-drive-nas

Quote:
Even with these tools there is danger of data corruption/loss, so only do this if you are willing to live with that risk. In particular, be aware that Google Drive is incompatible with calibre, if you put your calibre library in Google Drive, you will suffer data loss. See this thread for details.
bernie

Last edited by gbm; 10-14-2021 at 08:59 AM.
gbm is offline   Reply With Quote
Advert
Old 10-14-2021, 09:29 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Many settings, for example saved searches and virtual libraries, are stored in the database. If you aren't seeing changes to these preferences then the two clients are seeing different databases, probably because of conflicts. In other words you have already broken your library. If you haven't then there is a good chance you will, especially using Google Drive.

Putting the above aside, preferences that are stored per user are saved in the calibre configuration folder/directory, which is not in the library. Move this directory to the shared storage and use the environment variable CALIBRE_CONFIG_DIRECTORY to point at it.
chaley is offline   Reply With Quote
Old 10-14-2021, 09:32 AM   #4
recce
Junior Member
recce began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2021
Device: Nook
Ah! Thanks, gbm for the very valuable info. I didn't know about the Google drive. I guess I need to rethink my setup.

Thanks again!
recce is offline   Reply With Quote
Old 10-14-2021, 09:42 AM   #5
recce
Junior Member
recce began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2021
Device: Nook
@chaley
Thanks. That's what exactly what I did today - backed up the entire Calibre2 folder to the shared network drive. I will just keep syncing this folder between the 2 machines using Pathsync.
As for the library location - that's a whole new story. Do you suggest to keep it local and just keep manually sync it between the PCs or use the Calibre server. What would be the recommended setup for multiple PCs using the same library?
recce is offline   Reply With Quote
Advert
Old 10-14-2021, 09:46 AM   #6
recce
Junior Member
recce began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2021
Device: Nook
I found the answer to the missing export option:"Right click the calibre icon in the main calibre toolbar and select Export/import all calibre data. Note that if there is currently a device connected, this menu option will not be available – so, disconnect any connected devices."

I should have read the instructions before asking. But then again, there is a log to read!
recce is offline   Reply With Quote
Old 10-14-2021, 10:00 AM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by recce View Post
@chaley
Thanks. That's what exactly what I did today - backed up the entire Calibre2 folder to the shared network drive. I will just keep syncing this folder between the 2 machines using Pathsync.
Do you mean \Program Files\calibre2? There is no need to copy that. No user configuration is stored there.

The calibre configuration folder is by default in your user folder, AppData\Roaming\calibre IIRC. You can easily find the exact location from within calibre by going to Preferences / Miscellaneous and click "Open calibre configuration folder". Move that folder to wherever you want it, then tell calibre where it is using the environment variable.
Quote:
As for the library location - that's a whole new story. Do you suggest to keep it local and just keep manually sync it between the PCs or use the Calibre server. What would be the recommended setup for multiple PCs using the same library?
First, if you do what I discuss below then you *MUST* ensure that only one instance of calibre is open at a time.

For many years I have kept my library and configuration folder in Dropbox without a problem. Before you run calibre you must be sure that the library etc is fully synced. It is a very good idea to pause syncing while calibre is active.

Another better approach is to use a sync program to copy the library and config folders onto the local machine, run calibre, then run the sync program to copy changes back. This avoids the possibility of problems while calibre manipulates the files. Each sync should be one-way. You could do this in a .bat file: sync the files from the shared storage to the local machine, set the environment variable, start calibre, then sync the files back to the shared storage. If you start calibre using "calibre-debug -g" you will avoid problems caused by calibre disconnecting from the dos box so executing the second sync won't happen until calibre exits.
chaley is offline   Reply With Quote
Old 10-14-2021, 07:20 PM   #8
recce
Junior Member
recce began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2021
Device: Nook
Quote:
Originally Posted by chaley View Post
Do you mean \Program Files\calibre2? There is no need to copy that. No user configuration is stored there.

The calibre configuration folder is by default in your user folder, AppData\Roaming\calibre IIRC. You can easily find the exact location from within calibre by going to Preferences / Miscellaneous and click "Open calibre configuration folder". Move that folder to wherever you want it, then tell calibre where it is using the environment variable.
First, if you do what I discuss below then you *MUST* ensure that only one instance of calibre is open at a time.
That's the best advice! The Config folder happened to be much smaller (like 795KB). I'll sync the folder between my machines.

I don't have a Drop Box, just a Google Drive, so I will keep both libraries and config folders locally synchronized. Of course it is a bit of work, but I don't update my library that often. My major concern was how to keep the library synced between the PCs. Thanks to your advice, now I know how to do it!
recce is offline   Reply With Quote
Reply

Tags
export/import


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find the import/export all Calibre data function skyjockie Library Management 8 03-17-2019 03:49 PM
Export Library Function Gone? adrian142 Library Management 10 02-23-2017 04:43 AM
Export/Import all Calibre data - import error IanKBrown Calibre 5 02-15-2017 08:32 PM
Export - Import jsbt Library Management 2 01-24-2014 02:15 PM
Import/Export Scullion Calibre 2 08-03-2009 01:15 AM


All times are GMT -4. The time now is 08:11 AM.


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