View Single Post
Old 03-22-2019, 08:39 AM   #1213
mirikbb
Member
mirikbb began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jan 2012
Device: Kindle
Calibre lib sync

Hello

I am thinking about to have a possibility to create library synchronisation function, which will allow to sync subset of ebooks(virtual libraries) with another library.

I am having main library (LIB1) with a lot of books, which serves as my main library. As this library is very huge, it is not possible to run it on my raspberry where I would like to share it with users on my local LAN via web interface.
So I created new library (LIB2), exported subset of books from main library LIB1 and imported to LIB2.
That works very well and is what I need.
BUT
I am doing all the updates, additions only to my main library LIB1 and then I am doing again export-import to LIB2.
Sometimes the scope of books required to have in LIB2 is changing in large extent.
But that's very inconvenient/uncomfortable. Whole procedure by cloning library structure, exporting ebooks, importing ebooks, replacing LIB2 with new content take relatively long (cca 3 hours for about 1000 ebooks)
Even I have it automated via scripts, some kind of automation of this process, on Calibre level, would be very useful and time saving (eg. syncing just changes, real time or offline syncing).
Importance is also in fact, that all disk operations due to content comparison and rewriting is degrading life of SD card which is used by raspberry pi as disk storage. Calibre internal comparison on DB level, would mean just content comparison/evaluation/manipulation in memory and then disk changes would occur only on really changed items.

Currently there is "copy/move to library" function in Calibre, but it doesn't do for example "mirroring" in terms of remove ebooks from LIB2 which aren't marked for copy from LIB1.
I am limited in python programming knowledge, so maybe there is somebody in this community who find it useful and eager to code it.
Also maybe another Calibre users will see this as useful feature.

Thanx a lot.
mirikbb is offline   Reply With Quote