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 07-25-2013, 08:44 AM   #1
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Create New Library from Existing Library at Command Line

Is there a way to create an empty-clone of an existing-library at the command-line - as one can do in the GUI?

BR

Last edited by BetterRed; 07-26-2013 at 05:33 AM. Reason: edited to meet itimpi's short scan capacity
BetterRed is offline   Reply With Quote
Old 07-25-2013, 09:08 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
You can simply copy the library folder and all its contents to a new folder using the OS file manager.
itimpi is offline   Reply With Quote
Advert
Old 07-25-2013, 10:00 AM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,265
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
That skips the wish for an EMPTY library though.
PeterT is offline   Reply With Quote
Old 07-25-2013, 10:04 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,982
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
There is : Create Library (tick box) Copy Structure from Current Library
theducks is offline   Reply With Quote
Old 07-25-2013, 10:29 AM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,265
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by theducks View Post
There is : Create Library (tick box) Copy Structure from Current Library
On the COMMAND LINE?
PeterT is offline   Reply With Quote
Advert
Old 07-25-2013, 06:36 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Thanks Peter T

Should I conclude that 2/3 of Mobileread forum members can't comprehend a 17 word sentence. Hmmmm.

BR
BetterRed is offline   Reply With Quote
Old 07-25-2013, 08:54 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,982
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by PeterT View Post
On the COMMAND LINE?

Oops' missed Comandline
theducks is offline   Reply With Quote
Old 07-25-2013, 11:47 PM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BetterRed View Post
Thanks Peter T

Should I conclude that 2/3 of Mobileread forum members can't comprehend a 17 word sentence. Hmmmm.
Based on responses in various threads, including my responses, I think your estimate is on the low side
davidfor is offline   Reply With Quote
Old 07-26-2013, 12:10 AM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
Based on responses in various threads, including my responses, I think your estimate is on the low side
Perhaps they should apply for the job as Aussie PM - the current applicants, more often than not, don't answer the question they're asked

BR
BetterRed is offline   Reply With Quote
Old 07-26-2013, 05:11 AM   #10
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by BetterRed View Post
Thanks Peter T

Should I conclude that 2/3 of Mobileread forum members can't comprehend a 17 word sentence. Hmmmm.

BR
I think that when it gets above about 3 it is easy (for me at least) to start skipping words and making assumptions . You would probably need to highlight the key words to stop this happening
itimpi is offline   Reply With Quote
Old 07-26-2013, 05:29 AM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by itimpi View Post
I think that when it gets above about 3 it is easy (for me at least) to start skipping words and making assumptions . You would probably need to highlight the key words to stop this happening
Can you manage 4 - see post #1

All I need to do now is to figure how to stop my mouse squeaking and get it to twitter

BR

Last edited by BetterRed; 07-26-2013 at 05:32 AM.
BetterRed is offline   Reply With Quote
Old 07-26-2013, 09:15 AM   #12
tuskin
Enthusiast
tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.tuskin ought to be getting tired of karma fortunes by now.
 
Posts: 44
Karma: 3486210
Join Date: Jul 2010
Location: Jyväskylä, Finland
Device: Xiaomi Redmi Note 9, Surface 3
Google - copy folder structure windows

XCOPY
XCopy source {destination} /t

example
xcopy C:\Folders D:\Folders /t

Tried this on Windows 8 64-bit - worked as advertised.
tuskin is offline   Reply With Quote
Old 07-26-2013, 10:41 AM   #13
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,265
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by tuskin View Post
XCOPY
XCopy source {destination} /t

example
xcopy C:\Folders D:\Folders /t

Tried this on Windows 8 64-bit - worked as advertised.
Sigh... NO... BetterRed is looking for a command solution to creating a NEW calibre library based on an existing one. So any custom columns defined in the metadata.db are wanted to be in the new library but NONE of the content.

Your command copies the directory structure to a new location without the actual database, so is almost the exact inverse of what is wanted.
PeterT is offline   Reply With Quote
Old 07-26-2013, 10:45 AM   #14
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,982
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by tuskin View Post
XCOPY
XCopy source {destination} /t

example
xcopy C:\Folders D:\Folders /t

Tried this on Windows 8 64-bit - worked as advertised.
That is not a 'Library' structure, That is just the folder structure (and would be in error if you could even validate the Library with the Maintenance tool)

A Library is Metadate.db's structure (columns and settings). No books. No Authors. No Tags or Series.

Xcopy <source> <destination> /S is a good command to use to backup your Library (I don't think using /E instead of /s is needed as no valid library folder should ever be 'empty' )
theducks is offline   Reply With Quote
Old 07-26-2013, 12:55 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
Quote:
Originally Posted by itimpi View Post
I think that when it gets above about 3 it is easy (for me at least) to start skipping words and making assumptions . You would probably need to highlight the key words to stop this happening
Can you manage 4 - see post #1

BR
@itimpi - highlight keyword didn't work mate

I'll dive into the GUI python code with the view to doing a stand-alone rewrite of the Copy Structure from Library function to take from_library and to_library off the command line, shouldn't be too hard.

Failing that I'll resort to Autoit

I want to run it in an end of day script.

BR

Last edited by BetterRed; 07-26-2013 at 01:11 PM.
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thinking About a kindle - But What Of My Existing Library Doc333 General Discussions 50 04-28-2012 08:41 PM
Is there an easy way to replicate an existing library structure? PatNY Library Management 4 01-07-2012 01:50 PM
Pre-existing kindle library: best practice? kindletim Library Management 1 08-20-2011 03:50 PM
[Old Thread] import library or export to single file add to existing library PCreighton Calibre 4 04-10-2011 01:08 AM
Used 505 to existing library sync error shrktank Sony Reader 2 11-07-2009 01:10 PM


All times are GMT -4. The time now is 10:18 PM.


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