06-26-2024, 06:59 AM | #1 |
Zealot
Posts: 112
Karma: 642206
Join Date: Mar 2021
Device: Kindle Voyage
|
Three Questions about calibre running/busy status
1) What is the best way to determine if calibre is running?
2) Is there a way to determine if calibre is busy? 3) What happens if calibre is shutdown (using the --shutdown-running-calibre command line) whilst calibre is busy? The questions arose from something that happened recently. I have a custom column to determine the type of book (e.g. eBook, Audiobook, Paperback) and when I added a new book and set the type I must have accidentality entered the value with a slightly different case (ebook instead of eBook). That seems to trigger a background update where calibre updated the opf of all my existing ebooks (over 5000 in number) and this process seems to have taken at least three hours. So, if I want to shutdown calibre before running a backup routine, what would happen if I tried this whilst it was in the middle of updating all these opf files? |
06-26-2024, 07:18 AM | #2 |
creator of calibre
Posts: 44,650
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
background updates will automatically be shutdown when you shutdown calibre. And resumed when you restart it. You dont need to worry about them.
Last edited by kovidgoyal; 06-26-2024 at 11:14 AM. |
Advert | |
|
06-26-2024, 08:39 AM | #3 | |
null operator (he/him)
Posts: 21,112
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Run calibredb backup_metadata against each calibre library at the start of the backup script, that will finish off any outstanding updates at full throttle. Gets them out of the way for next time you start calibre. BR |
|
06-26-2024, 10:54 AM | #4 | |
Zealot
Posts: 112
Karma: 642206
Join Date: Mar 2021
Device: Kindle Voyage
|
Quote:
Does that mean I should Stop calibre first and then run the "calibredb backup_metadata" command. I can't seem to run this command while calibre is running (even with the --with-library option), but I was worried that stopping calibre would lose any outstanding updates. |
|
06-26-2024, 07:46 PM | #5 |
null operator (he/him)
Posts: 21,112
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Firstly, if you stop calibre when there are outstanding metadata.opf updates, when you run calibre again it will resume processing the outstanding updates.
Secondly, you can't run the calibre library manager (GUI) and calibredb commands concurrently. The only CLI programs I ever run alongside calibre.exe are ebook-edit and ebook-viewer. The reason I force the metadata.opf updates to complete before my daily backup is to ensure that if I restore anything from that backup I am not restoring 'out of date' data. BR Last edited by BetterRed; 06-26-2024 at 08:04 PM. Reason: clarity |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running calibre.exe --shutdown-running-calibre does *NOT* terminate the E-book Viewer | MReader67 | Calibre | 4 | 06-12-2023 02:53 PM |
Read status from Kobo to Calibre? | ZodWallop | Kobo Developer's Corner | 17 | 10-30-2022 01:48 PM |
Issues and questions with running calibre on Ubuntu 18 | devtech8 | Library Management | 6 | 12-16-2018 12:08 AM |
How to get Calibre 3 running on Raspberry Pi 3 running Raspbian Jessie? | fivestones | Calibre | 6 | 01-25-2018 10:41 PM |
Katie, the Busy, Busy, Bee (An Illustrated Picture Book) | sunnitimes | Self-Promotions by Authors and Publishers | 1 | 11-28-2012 12:22 PM |