View Single Post
Old 04-29-2013, 01:13 AM   #3
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
One trick is to use a "buffer copy" of the library. Then you don't have to turn calibre off on both the laptop and the Pi. Instead you write changes to the buffer copy, and on restart sync with that buffer copy. The buffer should be on a network share that is always available for both the laptop and the Pi.

Also you have to decide the direction of the changes. Typically I assume that you add news on the Pi, and add books and update metadata on the laptop?

This can be managed by having two calibre libraries and two buffer copies. One for news, Pi->buffer1->Laptop, and one for actual books, Laptop->buffer2->Pi.

You can sync to buffer automatically when you shut down calibre by adding steps to the script that launch calibre, after calibre has been run in the script. You can sync from the buffer by adding steps to the script before calibre is run.
Adoby is offline   Reply With Quote