Re: Accidentally deleted zotero.sqlite file using disk cleaning tool
I am running Mac OS Monterey 12.4 and accidentally deleted my Zotero library using a disk cleaning tool. Unfortunately, I had not backed up the data directory and I was not using Zotero syncing.
These are the Zotero.sqlite files remaining in my data directory:
zotero.sqlite 1 MB June 24, 2022
zotero.sqlite-journal 91KB "Today"
zotero.sqlite.111.bak 8.8 MB March 20, 2022
zotero.sqlite.bak 1 MB June 14, 2022
Questions: Can I recover any of my Zotero library? Would it be possible to rebuild the library in whole or in part using the Reference Extractor tool on a Word document that contains the most important resources that were in my Zotero library?
Thank you,
JDP
These are the Zotero.sqlite files remaining in my data directory:
zotero.sqlite 1 MB June 24, 2022
zotero.sqlite-journal 91KB "Today"
zotero.sqlite.111.bak 8.8 MB March 20, 2022
zotero.sqlite.bak 1 MB June 14, 2022
Questions: Can I recover any of my Zotero library? Would it be possible to rebuild the library in whole or in part using the Reference Extractor tool on a Word document that contains the most important resources that were in my Zotero library?
Thank you,
JDP
But zotero.sqlite.111.bak would be your data as of the Zotero 6 upgrade in March. So you can certainly recover to that.
If you don't mind, what disk-cleaning tool did you use? I'm a bit curious how people end up doing this — it seems like somewhat of a failure of the tool to suggest wiping out arbitrary unknown files.
Second, the disk-cleaning tool was MacKeeper, but in all fairness, the fault was entirely mine. I deleted the "cleaned-up" files without looking at them first. Very stupid, I know.
Thank you for attending to my post and questions so promptly. I really do appreciate that!
Current versions of Zotero will warn you with a fairly prominent banner if you don't have syncing set up, but you can tell it not to remind you again. You can check the Sync pane of the preferences to see if by some chance you were syncing with another account.
After backing these up, do I simply copy and paste them into the Zotero folder in the Data Directory? (The 111.bak file above is already in there. If it contains my library, why doesn't it show up when I restart Zotero?)
Assuming that I can restore my library with either or both of these files, will the data still be linked to my existing documents?
"When Zotero starts up, it reads the zotero.sqlite file in the active data directory, so you can try other copies of zotero.sqlite by copying them to that location and filename." It's just your database as of the date of the file. It will work exactly as it worked on that date. Citations for items added to your database later won't be linked, since they won't be in the database.
Do I click "Ok"?
I am not trying to import into Zotero via File → “Import…”
Once again: You'll need to read and follow the exact instructions we provide and not do anything it doesn't say to do. We really can't be any clearer than these instructions, so if you're having trouble with them, you should ask a tech-savvy friend to read them and help you.
"you can try other copies of zotero.sqlite by copying them to that location and filename"