Comment 0 for bug 1519855

Revision history for this message
m.hataj (m-hataj) wrote :

calibredb restore_database --library-path=/mnt/3TB/Bibliothek/eBook-Transfer --really-do-it

takes 2 days to look in each folder and fails with <pre>Buntes Allerlei Nr. 5 ... 99%
Buntes Allerlei Nr. 6 ... 100%
Restoring database failed with error:
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/db/restore.py", line 125, in run
    self.replace_db()
  File "/usr/lib/calibre/calibre/db/restore.py", line 272, in replace_db
    os.rename(dbpath, save_path)
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden</pre>

a simple <pre>touch /mnt/3TB/Bibliothek/eBook-Transfer/metadata.db</pre> solves this issue.

As I'm still repairing my huge, crashed library and moving folders by hand to reindex, this would be useful to just create metadata.db if there is no, as this is the goal of the game.
Even after a restore-run that took days.