| 
			
			 | 
		#1 | 
| 
			
			
			
			 Zealot 
			
			![]() Posts: 136 
				Karma: 10 
				Join Date: Oct 2013 
				
				
				
				Device: kindle paper white 
				
				
				 | 
	
	
	
		
		
			
			 
			
			Hi guys I used restore database accidentally and lost 1000 books. The pre-restore database file is larger and i am 100% sure it has my entire dat. Theonly question is how do i use this metadata_pre_restore.db . Do I do a library maintenance restore again or do something else. I am desperate.Govind please help!!!!!!!!!!!!!!! 
		
	
		
		
		
		
		
		
		
		
		
		
		
			![]() Thanks Govind for the reply. Can you pls explain 1) do you want me to rename metadat.pre-retsore.db as metadata.db. Andthen should i open calibre and restore from the library maintenance dailogue. This is what i understood from previous msg. Can yoy pls confirm. I am a relative novice at this and dont want to mess the only chance of fixing mylost library. Thanks  
		Last edited by theducks; 02-10-2014 at 06:23 PM. Reason: 2 threads  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Simply replace metadata.db with metadata_pre_restore.db
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Simply renaming (deleting the old one) the file should do it. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	This assumes the books are still there and what you did did not mess up the Author or title  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Zealot 
			
			![]() Posts: 136 
				Karma: 10 
				Join Date: Oct 2013 
				
				
				
				Device: kindle paper white 
				
				
				 | 
	
	
	
		
		
			
			 
				
				pre_restore.db
			 
			
			
			thanks worked like a charm.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 99 
				Karma: 603096 
				Join Date: Aug 2011 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'd like to add my question here because I think it is a similar problem. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			My metadata.db got corrupted and the programme did no open but just tried to and then simply crashed. I copied a backup db into the Library folder instead of the corrupted one and Calibre opens. My problem is now that I have a db that does not contain the added books after the last backup. The books however are in the Library folder. Since the db ist big and there have always been problems with running maintenance I am not sure if I can run it wihtout crashing. Anyway, I have no idea what would be the best solution anyway. Simply adding the books again? I took copies and put them into a different directory so I can handle this like new additions from directory. But will this overwrite the folders and files in the library, will it create duplicates or will Calibre just "update" metadata respectively add entries to the db? P.S. As I thought - maintenance is not possible, Calibre crashes. Last edited by manawydan; 02-16-2014 at 03:56 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Ex-Helpdesk Junkie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421 
				Karma: 85400180 
				Join Date: Nov 2012 
				Location: The Beaten Path, USA, Roundworld, This Side of Infinity 
				
				
				Device: Kindle Touch fw5.3.7 (Wifi only) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			If calibre is crashing when you try to perform maintenance, then something is wrong, it shouldn't do that. It sounds like something is wrong with the new database as well. Can you describe the steps you took to get this problem? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Adding the books again will create a new entry, but if the books don't have an entry at the moment, you will end up with one entry, I'd think. It won't however, overwrite the files in the library. calibre uses an id number included in the filename that will never be reused to make sure each book record is unique.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 99 
				Karma: 603096 
				Join Date: Aug 2011 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Wish I could. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Apart from that there are many books/entries and there has been quite a lot of handling (editing, deleting etc.) I do not know what could have caused it. Apart from Windows or hardware messing it up that is. And although there indeed is a problem on my system which I couldn't track (yet) I don't think that is likely. However I don't think there is another option but to either start from scratch or use the current db. Or is there a way to check the db apart from library maintenance?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@manawydan - have you tried doing a database restore, it will build a fresh database from the .opf files in the book folders, that's why they're there. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Might as well start from the books that are actually in the library, at least then you should have a stable base on which to add missing books etc BR  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Pre-order | chiron11 | Writers' Corner | 5 | 02-24-2012 03:49 AM | 
| Viliv s5 PRE 3G | nmahesh567 | Alternative Devices | 0 | 03-29-2010 03:08 PM | 
| Pre-order Status again | sassanik | Interead COOL-ER | 3 | 03-11-2010 12:09 PM | 
| pre-reader | ddc | Introduce Yourself | 5 | 10-27-2009 10:00 AM | 
| Palm Pre | wodin | Alternative Devices | 2 | 09-06-2009 02:30 PM |