|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,783
Karma: 3253179
Join Date: Dec 2010
Location: Jianghu
Device: PW5, iPhone 13 Pro, iPad Pro 2021, iPad Air 2025
|
What is the best way to keep two Calibre libraries in sync?
Using Claude, I created a private MCP server to access my Calibre library. Although the server has no ‘write’ capabilities, I felt it was best to be safe than sorry later, so I duplicated my main library to maintain a separate library for Claude to access.
To create the duplicate library, I initially copied over the books from the main library to the MCP library. My problem right now is keeping both libraries in sync (i.e., changes made to the main library reflected in the MCP library). Additions and deletions of books are simple enough, but metadata updates are troublesome. I use FreeFileSync to keep my Calibre libraries backed up and available both in the cloud and on a portable device, but when I tried to use it for the two libraries (main and MCP), it wanted to overwrite all the books (13K+) in the MCP library. That seemed a bit overkill. Does anyone have suggestions for simple ways to keep both libraries in sync? |
|
|
|
|
|
#2 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 166
Karma: 669754
Join Date: Mar 2021
Device: Kindle Voyage
|
I would probably start with trying to figure out why. The most likely suspect is the timestamps are different.
I don't use FreeFileSync, but Beyond Compare has some options to ignore daylight saving time issues and even one second differences, so FFS might have the same. I am sure there is an option to ignore the timestamps and compare file size and file contents. That may be slower, but if your files are just normal books (and not audiobooks) it may be fast enough. Alternatively let FreeFileSync sync a few files and see if it wants to sync them again or it it is now happy with those files. If the latter, then the problem may be a one-off and I might be easier to just let it sync all the books once. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,438
Karma: 153744815
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It sounds like MCP did something to change your library. So my suggestion is to dump MCP. There is no way FreeFileSync would want to overwrite everything unless MCP changed everything.
If the fie sizes and time/date are the same, FFS will not overwrite. So MCP would have to have screwed with your library. So get Tron to do away with Master Control Program.
Last edited by JSWolf; Yesterday at 10:52 AM. |
|
|
|
|
|
#4 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,783
Karma: 3253179
Join Date: Dec 2010
Location: Jianghu
Device: PW5, iPhone 13 Pro, iPad Pro 2021, iPad Air 2025
|
Quote:
Now that I've run into this problem, I'm thinking I should've first copied over the entire main library folder instead of copying the books over to the new library. I might have to start over. |
|
|
|
|
|
|
#5 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,783
Karma: 3253179
Join Date: Dec 2010
Location: Jianghu
Device: PW5, iPhone 13 Pro, iPad Pro 2021, iPad Air 2025
|
Quote:
![]() In the context I used it, MCP is Model Context Protocol |
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,438
Karma: 153744815
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,783
Karma: 3253179
Join Date: Dec 2010
Location: Jianghu
Device: PW5, iPhone 13 Pro, iPad Pro 2021, iPad Air 2025
|
|
|
|
|
|
|
#8 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,783
Karma: 3253179
Join Date: Dec 2010
Location: Jianghu
Device: PW5, iPhone 13 Pro, iPad Pro 2021, iPad Air 2025
|
Quote:
Thanks to @sgmoore for helping me think through the problem
Last edited by Loosheesh; Yesterday at 05:17 PM. |
|
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,054
Karma: 83121446
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
My approach has always been to yhave ONE copy of my calibre library considered as the MASTER, where all changes are made. Other computers then receive a one way mirrored copy of that library via rclone sync.
|
|
|
|
|
|
#10 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,774
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Master Control Program was the operating system for Burroughs mainframes, there was no assembler, only Algol; Cobol, Fortran and Basic came later, MCP itself was written in a beefed-up Algol.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to manage multiple Calibre Libraries / Sync devices? | alan.surry | Library Management | 2 | 02-09-2025 08:47 PM |
| How to Sync Two Calibre Libraries | Hellas-USA | Library Management | 1 | 09-07-2016 10:54 PM |
| sync calibre libraries between 2 computers WIN | scooterfrog | Calibre | 4 | 03-21-2014 09:21 AM |
| keeping 2 calibre libraries in sync | benkay | Library Management | 2 | 09-03-2013 04:22 PM |
| Sync two calibre libraries | esears | Calibre | 16 | 02-18-2010 07:39 PM |