Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2014, 09:37 PM   #1
bibby
Junior Member
bibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the rough
 
Posts: 2
Karma: 7110
Join Date: Feb 2014
Device: Android
Command line transfer between libraries?

Greetings all,
I had a large library that I systematically tagged and split into three libraries across three commodity cloud servers. On each, the calibre-server command line program runs the web-based content server, so there is no access to the main calibre GUI.

I'm in search of a migration strategy for new content, or existing content that is filed on the wrong remote library. I'd like not to have to keep local copies of the libraries (except for backup, not authoritative ), so I'm choosing to rule out file-syncs. File-sync /might/ work as a middle-man library to aid in the transport between servers, so if there is a command line way to transfer content between two local libraries, that should fit my need.

With that in mind, is there a safe command-line-only way to transfer content between libraries?
The covers I don't care about (generated is fine), but my meta-data I'd like to keep.
All machines use Ubuntu Linux.

Thanks!
bibby is offline   Reply With Quote
Old 02-12-2014, 10:15 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Code:
calibredb add [--one-book-per-directory --with-library=LIBRARY_PATH] folder1 [folder2 folder3 ...]
will add a book to a library (defaults to currently selected startup library), using one-book-per-directory you can choose the library book subfolder.

Code:
calibredb list [--with-library=LIBRARY_PATH] [-s SEARCH]
can pass you info about the books in a library, with appropriate scripting you can extract the /path/to/book.

Code:
calibredb remove [--with-library=LIBRARY_PATH] comma-separated-list-of-book-ids
can then delete the book from the original library.
eschwartz is offline   Reply With Quote
Advert
Old 02-13-2014, 03:16 AM   #3
bibby
Junior Member
bibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the roughbibby is a jewel in the rough
 
Posts: 2
Karma: 7110
Join Date: Feb 2014
Device: Android
Thanks!

I've published a public repo for a script I made to migrate my content using that flow.
bibby is offline   Reply With Quote
Reply

Tags
linux, transfer


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line - HOW? bookfanmd Calibre 19 01-12-2013 09:17 AM
Help with command line shotsky Conversion 6 07-23-2012 09:40 AM
Need help using command line tsger Recipes 2 07-16-2011 03:23 AM
Copy/Move books between libraries using command line tools jameszh Library Management 3 02-15-2011 09:02 AM
Why use the command line? slantybard Calibre 6 07-22-2009 12:17 PM


All times are GMT -4. The time now is 01:31 PM.


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