Quote:
Originally Posted by esears
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?
|
You haven't mentioned what OS you're running, but I believe the rsync utility is available for windows, too. I've been using a custom rsync setup to keep the home directories of my desktop and linux netbook entirely synchronized for some time now. It works very well, even remembering where I was in each book when it syncs the calibre directory.
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...