Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2010, 05:14 PM   #16
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by sherman View Post
while you're away you start a new libary on your laptop. This new libary may include SOME books that are in the main library, and some books that are new. When you get home, you want to add the new books into the main library. But how would you do this using directory based syncing...?
You can't. Only one user can make changes between syncs and each library needs to be at the current maximum size. I agree with you - a sync tool needs to be calibre-aware, and it would be useful. I'd like to be able to work on a small library (for speed), then add the small one to the main one, once all the metadata is correct. A separate utility could do this. All it takes is someone with the time to write it. (It shocks me to think that two users could get together and combine their libraries with such a tool.)
Starson17 is offline   Reply With Quote
Old 02-18-2010, 07:39 PM   #17
jshoemaker
Junior Member
jshoemaker began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2009
Device: Linux Netbook w/calibre
Quote:
Originally Posted by sherman View Post
The main problem I see with the directory based sync method is problems with the metadata.db file. Basically, you can only have a metadata.db file from one library or the other at a time. Now this isn't much of a problem if both libraries are always in sync right from the beginning. However...

What happens when you start off with only having one calibre library. You then go away with your laptop for a couple of weeks, and while you're away you start a new libary on your laptop. This new libary may include SOME books that are in the main library, and some books that are new. When you get home, you want to add the new books into the main library. But how would you do this using directory based syncing...?
Well, I actually do this, but you're right, the one on the laptop was initially created as an exact mirror of the desktop, which is indeed necessary. I don't start a new library on the laptop, I just add books to it and reverse the rsync command when I get home. This takes the 'current' metadata.db and directory structure, and updates the desktop version to parity.

If you want to have separate instances entirely, for multiple people, the easiest way to do that would be to have a special export directory that holds copies of all books not currently added to both libraries. /home/wife/export/wife-outbox could contain the books the wife wants to share out, while /home/husband/export/husband-outbox on another machine contains the set the husband wants to share. As the export directory is updated via rsync, both will end up with a duplicate copy of this directory, with both 'outbox' subdirectories. If each adds the new book(s) to their calibre app, then deletes the relevant outbox directory files they just added, the data can be kept separate from the individual metadata db's, which will then be unique across systems, even though both will have all books.

This is not entirely automated, since a manual add/delete file is required at some point, but it's relatively painless despite that, and should work until calibre's planned sync tool is implemented.

Last edited by jshoemaker; 02-18-2010 at 07:43 PM.
jshoemaker is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
suddenly a problem with Calibre libraries Rie142 Calibre 2 08-11-2010 11:08 AM
Multiple Calibre Libraries on Mac OS X Starganderfish Calibre 3 05-24-2010 05:21 AM
Calibre Really Needs a Sync Function Marcy Calibre 26 02-18-2010 10:27 AM
Merging Calibre Libraries pope_a Calibre 3 01-17-2010 09:51 AM
Consolidating 2 Calibre Libraries mrgiedrnkr Calibre 1 08-12-2009 05:34 PM


All times are GMT -4. The time now is 09:03 PM.


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