07-25-2013, 08:44 AM | #1 |
null operator (he/him)
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 |
07-25-2013, 09:08 AM | #2 |
Wizard
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.
|
Advert | |
|
07-25-2013, 10:00 AM | #3 |
Grand Sorcerer
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.
|
07-25-2013, 10:04 AM | #4 |
Well trained by Cats
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
|
07-25-2013, 10:29 AM | #5 |
Grand Sorcerer
Posts: 12,265
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
|
Advert | |
|
07-25-2013, 06:36 PM | #6 |
null operator (he/him)
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 |
07-25-2013, 08:54 PM | #7 |
Well trained by Cats
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
|
|
07-25-2013, 11:47 PM | #8 |
Grand Sorcerer
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
07-26-2013, 12:10 AM | #9 |
null operator (he/him)
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
07-26-2013, 05:11 AM | #10 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
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
|
07-26-2013, 05:29 AM | #11 | |
null operator (he/him)
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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. |
|
07-26-2013, 09:15 AM | #12 |
Enthusiast
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. |
07-26-2013, 10:41 AM | #13 | |
Grand Sorcerer
Posts: 12,265
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Quote:
Your command copies the directory structure to a new location without the actual database, so is almost the exact inverse of what is wanted. |
|
07-26-2013, 10:45 AM | #14 | |
Well trained by Cats
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:
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' ) |
|
07-26-2013, 12:55 PM | #15 | |
null operator (he/him)
Posts: 20,683
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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. |
|
|
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 |