02-10-2010, 12:16 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2009
Device: PRS-900
|
Sync two calibre libraries
Both my wife and I use calibre on two different computers. We both use Sony readers, one a touch and the other a pocket. I tend to travel a lot and collect my own books to read. My wife has a bit different tastes than I do. Is there an easy way to sync two different calibre libraries on two different computers?
Is it just a matter of copying the directories from each computer to the other? |
02-10-2010, 12:35 AM | #2 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Do you mean you want both sets of libraries to have the same books?
|
Advert | |
|
02-12-2010, 04:54 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2009
Device: PRS-900
|
|
02-12-2010, 04:56 PM | #4 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I use something called unison to acheive this. But you have to be careful not to run two copies of calibre simultaneously, as that will cause Bad Things To Happen.
|
02-12-2010, 07:22 PM | #5 |
Connoisseur
Posts: 95
Karma: 8282
Join Date: Jan 2010
Device: Kindle PW, Kobo Aura HD, Galaxy Note 10.1
|
What about using something like Dropbox and putting your library within Dropbox-controlled folders?
|
Advert | |
|
02-14-2010, 01:32 PM | #6 | |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2009
Device: Linux Netbook w/calibre
|
Quote:
Something like this in a shell script will do the job: rsync -Cuazv --delete-after --rsh=ssh --filter='merge ~/.rsync-filter' $1:~/ ~/ where $1 will become the ip of the remote box passed via command line. The file ~/.rsync-filter contains lines that direct what NOT to sync, usually stuff like - /.** - /tmp So, when you run the rsync, it will sync everything in your home directory of the remote, minus the excluded merge. To update from the other machine, simply reverse the process. i.e., rsync -Cuazv --delete-after --rsh=ssh --filter='merge ~/.rsync-filter' ~/ $1:~/ It's a bit of work to set up initially, but not too bad. 20 minutes of work should see it completed. Use the -n flag to rsync while testing the setup - this forces it to do a 'dry run,' and not delete anything... |
|
02-14-2010, 10:34 PM | #7 |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2010
Device: Sony PRS-600
|
I store our collection on a network share, and just point both instances of Calibre to the that location. It works perfectly for us, but I'm the only one who adds new items to the share, the wife just uses it to see what's there and upload books to her reader.
|
02-15-2010, 09:59 PM | #8 |
Addict
Posts: 210
Karma: 1000659
Join Date: Jan 2009
Location: Sunnyvale, CA
Device: Kindle Voyage, Kobo Aura H2O, PRS-650 (black), Kindle 3G
|
Dropbox! It's available for the three major platforms and just flat out works.
|
02-15-2010, 10:46 PM | #9 |
Guru
Posts: 869
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Kovid, a thought..
Have you ever considered expanding the content server functionallity of calibre to achieve similar results? Basically, from within calibre have some way of telling calibre to look at a remote calibre library and allowing the user to import/download books directly into the local library. Doing it this way would eliminate any complications arising from two instances of calibre sharing the same library... Just an idea, have no idea whether it is doable or not, or whether you would be interested in implementing such a feature. |
02-16-2010, 11:23 AM | #10 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2009
Device: Linux Netbook w/calibre
|
Dropbox is limited to 2G for free users, or you get to pay, so the library had best be small. Won't work for a lot of us. (Mine is already well over 2G) There are a lot of exceptional free tools available, from unison to my obvious, time-tested favorite, rsync. I personally wouldn't vote to complicate the app more by having it do something already done better by a seperate utility, but if people have the inclination and time to burn, it may help a few people...
|
02-16-2010, 01:24 PM | #11 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@sherman: Support for a proper "cloud" based library is on the TODO list.
|
02-16-2010, 05:58 PM | #12 |
Guru
Posts: 869
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
|
02-16-2010, 09:42 PM | #13 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
2G free plus 3G for referrals and 250M for walking through the Getting Started tab make the final amount of free space possible 5.25G. But you are right Dropbox isn't a solution that will work for everyone. I have 4 machines sync'd via Dropbox (2 at work and 2 at home) and it works great for me. My library is a little over 1100 books and weighs in at 675M so I have a ways to go before this solution will fail me. Last edited by DoctorOhh; 02-16-2010 at 09:47 PM. |
|
02-18-2010, 09:43 AM | #14 | |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2009
Device: Linux Netbook w/calibre
|
Quote:
I honestly don't know why this is such an issue here, but apparently it is. The job of synchronizing things is not an ebook application's forte; it is the job of a utility designed to synchronize. By far the oldest, most feature rich and adaptable solution is rsync, so that's what I use, and it synchronizes everything, not just ebooks. For every app to have to provide a way to do this for its data just seems a bit silly to me, and is bound to create headaches as each implements it in a different fashion. I wanted my spreadsheets and documents sync'd, too, but I never expected OpenOffice to try to handle it... See my point? That's all I was pointing out, that this problem can, and has been solved with much more robust and applicable solutions. |
|
02-18-2010, 05:02 PM | #15 |
Guru
Posts: 869
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
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...? |
|
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 |