Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-24-2018, 08:40 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Questions on calibre migration

Hi Kovid, on migration to another computer I used the Export/Import function, which works in principle very well
I really liked it to find all my settings and saved searches.

However (there is always an however ) I encountered some points I like to have clarified.
  1. On export, I choose the top directory of an empty USB-drive.
    Calibre refused to use it as it was not regarded as an empty folder. Creating on the USB-drive some empty folder solved that, but it might confuse the average user.
  2. On import, calibre correctly informed me the saved directory structure, but refused to restore them. Only when I manually made these directories in the destination drive/folder, all calibre directories were restored. It should be more straightforward that calibre suggests to create those known original directories, unless the user decides otherwise. Again it might confuse the average user.
  3. After restoring, I noticed a difference in the shown library structure (see attachments: left original, right migrated). The migrated libraries now show also the library path, while curiously also the same libraries without path are shown. My question: is this correctable?

I used calibre 3.30 32bits (source) and calibre 3.30 64bits (target).
Attached Thumbnails
Click image for larger version

Name:	calibre01.jpg
Views:	104
Size:	52.7 KB
ID:	165826   Click image for larger version

Name:	calibre02.jpg
Views:	111
Size:	67.6 KB
ID:	165827  

Last edited by DrChiper; 08-24-2018 at 08:42 AM.
DrChiper is offline   Reply With Quote
Old 08-24-2018, 02:39 PM   #2
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Ok, I could find no way to fix this via calibre: at least I could not find it.
So this is what I did:
  1. In calibre, I deleted all libraries but kept the files, and closed calibre.
  2. In Windows, I renamed the top directory name of those still present libraries with according files, by adding some name, say "ORG".
  3. I opened calibre and created all libraries anew with the original intended names: no more path-name prefixes in the library names! I closed calibre.
  4. In Windows, I deleted the contents of the just created libraries, and copied the contents of the previously renamed "ORG" directories into them.
  5. I started calibre and all libraries with their contents could now be found using the single library name.
  6. For every library, I issued the Library Maintenance->Library check to make sure the libraries were healthy.
  7. I closed calibre and removed the "ORG" directories.
  8. Job done.

Summarizing,
  • the import worked to init the new calibre installation with plugins, saved searches, etc. from my original calibre on the old computer;
  • the import does not worked to define the libraries in the new calibre installation in the same manner as they were on the old computer (duplicates, additional path names);
  • however, with some tweaking this can be corrected;
  • also the export from calibre on the old computer does not seem to include file metadata.opf; perhaps not needed?

I'm not sure whether this behavior is due to my handling, or some oversight, or that this is erroneous behavior of calibre.
Anyone?

Last edited by DrChiper; 08-24-2018 at 02:56 PM.
DrChiper is offline   Reply With Quote
Old 08-24-2018, 08:35 PM   #3
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 10,142
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
I've never used the import-export function, and I've moved my libraries to new computers at least three times. I always copy my libraries and the configuration folder manually to an external HD and from there to a new computer. Works like a charm. Nothing has ever been lost, all the plugins, settings, preferences have always been intact.
Sirtel is offline   Reply With Quote
Old 08-24-2018, 09:07 PM   #4
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,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I've used the export/import feature without any issues. In two instances between different operating systems, Windows->MacOS, and Linux Mint->Windows, the other two were Windows->Windows. I've also provided guidance to a couple of people over the phone when they needed to use it, again with no issues.

BR
BetterRed is online now   Reply With Quote
Old 08-24-2018, 11:57 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Import does not re-create the full path to previous libraries, it only preserves the library name. This is because there is no guarantee that the full path is valid on the new computer. You can always rename the libraries/move them manually after import if needed. The important thing is that *all* the data is preserved.

I'm not sure how you ended up with paths as library names, but I cannot reproduce that.
kovidgoyal is offline   Reply With Quote
Old 08-25-2018, 07:06 AM   #6
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Well, the problem is that not many persons probably do use the migration functions export/import much, so it is not tested that much.

Further, I used calibre a long time on my old and trusty machine, starting with version 1.x or so. During all those years derelict and obsolete files seem to clutter the calibre environment as I noticed when inspecting and comparing old and new directories. So a fresh new start from time to time is never a bad thing IMHO.

Quote:
Originally Posted by kovidgoyal View Post
Import does not re-create the full path to previous libraries, it only preserves the library name. This is because there is no guarantee that the full path is valid on the new computer.
Agree. Only on importing, the original full path-name with library name were shown (hence known), plus an input field so you could define the new destination. So I guess somehow the original path is remembered after all.

Quote:
Originally Posted by kovidgoyal View Post
The important thing is that *all* the data is preserved.
I did a compare between the original directories and the new ones and noticed that all files are present on the new computer, minus file "metadata.opf". The latter was missing for all entries. No idea whether that file is important, can be recreated or is now obsolete.

Quote:
Originally Posted by kovidgoyal View Post
I'm not sure how you ended up with paths as library names, but I cannot reproduce that.
In this case, by a rare coincident, the old source location and the new target destination *WHERE* the same, which *MIGHT* have helped to create the import confusion. Remember from my pictures: all libraries were shown with and without a path-name prefix, hence appeared twice.

At this moment calibre 64bits seems to work happily on the new ridiculous state-of-the-art machine using the old libraries. Even without those missing "metadata-opf" files.
DrChiper is offline   Reply With Quote
Old 08-25-2018, 10:32 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
metadata.opf is a backup file that is not needed for normal operation and it will be regenarated automatically over time in your new libraries.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python 3 migration igi Development 5 06-17-2018 08:38 AM
Library migration from MS Word. rizzay Library Management 2 02-04-2015 10:37 AM
Problem connecting to Calibre after migration ChristopherTD Marvin 8 12-11-2013 09:45 AM
python 2.X to 3.X migration? KevinH Calibre 7 02-13-2011 07:56 PM
Calibre library migration kiat Calibre 4 10-22-2010 03:47 AM


All times are GMT -4. The time now is 12:08 AM.


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