Zotero recovery issue: files are manually back but links between items are gone
Hi everyone,
I recently ran into a serious issue with my Zotero library and I’m trying to understand what happened and whether there is any way to recover the missing structure.
Situation
After switching my Zotero account, my library appeared empty. I later discovered that my local data folder (C:\Users\clair\Zotero) still existed, but it had been reset:
zotero.sqlite is ~1MB (looks like a fresh database)
storage folder was initially empty at that point
I restored/verified my files from other sources, so PDF attachments are now back
Current problem
Although the PDF files are physically present again, all the connections between items are gone, including:
Missing item metadata (title, authors, journals, etc.)
No links between attachments and library entries
Library structure completely lost (appears as unlinked files)
So I basically have the PDFs, but not the Zotero items that originally indexed them.
What I already checked
No .bak, .sqlite, or backup files in the Zotero folder
No Zotero data in OneDrive / File History / Recycle Bin
Zotero cloud library is also empty (likely due to account switch)
Data directory is correctly set.
Questions
Is there any way to rebuild Zotero item metadata from existing storage files?
Are there any tools/scripts that can scan storage/ and reconstruct item entries?
Or is the Zotero SQLite database the only source of that metadata (meaning it’s permanently lost without backup)?
Any recommended workflow for re-linking PDFs to new items efficiently?
Any advice would be really appreciated. I’m trying to avoid manually rebuilding everything if possible.
Thanks a lot!
I recently ran into a serious issue with my Zotero library and I’m trying to understand what happened and whether there is any way to recover the missing structure.
Situation
After switching my Zotero account, my library appeared empty. I later discovered that my local data folder (C:\Users\clair\Zotero) still existed, but it had been reset:
zotero.sqlite is ~1MB (looks like a fresh database)
storage folder was initially empty at that point
I restored/verified my files from other sources, so PDF attachments are now back
Current problem
Although the PDF files are physically present again, all the connections between items are gone, including:
Missing item metadata (title, authors, journals, etc.)
No links between attachments and library entries
Library structure completely lost (appears as unlinked files)
So I basically have the PDFs, but not the Zotero items that originally indexed them.
What I already checked
No .bak, .sqlite, or backup files in the Zotero folder
No Zotero data in OneDrive / File History / Recycle Bin
Zotero cloud library is also empty (likely due to account switch)
Data directory is correctly set.
Questions
Is there any way to rebuild Zotero item metadata from existing storage files?
Are there any tools/scripts that can scan storage/ and reconstruct item entries?
Or is the Zotero SQLite database the only source of that metadata (meaning it’s permanently lost without backup)?
Any recommended workflow for re-linking PDFs to new items efficiently?
Any advice would be really appreciated. I’m trying to avoid manually rebuilding everything if possible.
Thanks a lot!
Upgrade Storage
When you switched sync accounts, Zotero warned you that it would delete all local data for the old account, required you to check a checkbox saying "Remove all data for “[old account]” from this computer", and said to make sure you either had uploaded any data to the old account before continuing or had a backup of your Zotero data directory. It would then delete all local data. If you later switched back to the original account and synced, you'd get whatever you had online — which might have been an older version of your library if you hadn't been syncing, and/or might not have had all files if you were at your storage quota. If you made a backup (not an export) as it advised, you could still restore to the exact state of your library before.