Lost my recent library.
Hi. I found one of my huge folders deleted in my library. So, I disabled the automatic sync and tried to reset and restore from my local data. This deleted all my library, and so I did this:
""First, disable auto-sync in the Sync pane of the Zotero for Firefox or Zotero Standalone preferences. Open the Advanced pane of the preferences and click “Show Data Directory”. This should reveal your active data directory containing zotero.sqlite and possibly a 'storage' subdirectory. Close Firefox or Zotero Standalone and move zotero.sqlite and 'storage' from this folder into a temporary folder on your desktop. Next, copy — don't move — zotero.sqlite and 'storage' from your backup into the active data directory. When you now reopen Firefox or Zotero Standalone, your Zotero library should be restored."
This did not work. Next, I used another computer of mine where zotero was installed and logged in and found that there was a library from 1 year ago. I managed to restore that to my current library in the computer I use, but I lost 90 percent of my data. I re-checked the zotero.sqlite file in my custom data directory and it now has only 1.5 mb (the zotero.sqlite.bak has only 1.5 mb, too).
I think I have tried all the instructions here on the Forums and perhaps got messed up myself in the process. I know restoring data has nothing to with what the "storage" folder contains (as far as I understand), but the folder is indeed full and I recognize my recent data in the folder. Are there some other ways to recover or find the voter.sqlite file that reflects the actual amount of data I have collected? Or, is it just lost forever? Please help!
""First, disable auto-sync in the Sync pane of the Zotero for Firefox or Zotero Standalone preferences. Open the Advanced pane of the preferences and click “Show Data Directory”. This should reveal your active data directory containing zotero.sqlite and possibly a 'storage' subdirectory. Close Firefox or Zotero Standalone and move zotero.sqlite and 'storage' from this folder into a temporary folder on your desktop. Next, copy — don't move — zotero.sqlite and 'storage' from your backup into the active data directory. When you now reopen Firefox or Zotero Standalone, your Zotero library should be restored."
This did not work. Next, I used another computer of mine where zotero was installed and logged in and found that there was a library from 1 year ago. I managed to restore that to my current library in the computer I use, but I lost 90 percent of my data. I re-checked the zotero.sqlite file in my custom data directory and it now has only 1.5 mb (the zotero.sqlite.bak has only 1.5 mb, too).
I think I have tried all the instructions here on the Forums and perhaps got messed up myself in the process. I know restoring data has nothing to with what the "storage" folder contains (as far as I understand), but the folder is indeed full and I recognize my recent data in the folder. Are there some other ways to recover or find the voter.sqlite file that reflects the actual amount of data I have collected? Or, is it just lost forever? Please help!
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
And nothing indicates that you'd ever delete or move them from there. That's your version of the database. Do you still have that?
Maybe start by describing in your own words exactly what you did when following the paragraph you quote above.
Then, I followed the quote, got confused a couple times, and did this too in the process: "Close Firefox/Standalone. In your data directory, rename zotero.sqlite to zotero.sqlite.old, rename zotero.sqlite.new to zotero.sqlite, and restart Firefox/Standalone."
I think I eventually copied and stored zotero.sqlite in my desk, and put it back to the "active data directory." But these didn't help.
In your zotero data folder, there may be several files with names like zotero.sqlite.bak -- any that are significantly larger in size?
Do you have a backup of your harddisk to an external drive?
If I can't fix this issue now, I am still wondering why a large folder disappeared in the first place when I did not change or upgrade zotero—nor did I manually delete the folder.
These happened last time and I was fortunate enough then to recover a lot of data (if not all) by following instructions in the Forums.
But again, how can I avoid such problems of losing data on my zotero standalone? My computer is Mac.
Note that collections are not folders, so deleting a collection would typically not have deleted the items in it (and if it did, those would still be in the Zotero trash).
Do you use TimeMachine? If so, you should be able to recover your lost data.
If not, please consider immediately buying a large external drive and using it. The cost of an external drive has become lower and lower. Having backups will save you from frustration.
adamsmith and developers...
Might there be a need to revise or expand the troubleshooting documentation to give details of what _not_ to do? Perhaps with a decision tree? Although I've used Zotero for ten years or so, I continue to find the restore to / restore from processes confusing and when, if ever, to use them. If there is any interest, I'm willing to work on a draft. How much will this change when the next Zotero update is released?
I believe the only place in the instructions it says to use restore (and that's "restore to server") is after restoring from an automatic backup (typically to revert a recent change).