Failure to restore backup
Hi!
I recently changed the HDD of my laptop, where I had my Zotero database stored locally. The more recent version of the library had for some reason failed to upload on the server (I subscribed to additional space).
In the meantime, I have my old HDD in a casing, and had also backed it up on a flash drive. When following the restoration procedure from both backups. However, it only retrieves data that was saved a year ago. Till I had done the HD upgrade, my library seemed to the latest one (saved locally). The original Zotero folder of the older drive, still seems to contain files I have added recently in my library (in 'storage').
After trying various combinations, I am still unable to restore the latest library to Zotero. The online library too shows more or less the same data, though I usually keep auto-sync off, and have done so now.
I would be grateful for your help and advice as it seems I may lose a lot of data.
Thank you!
I recently changed the HDD of my laptop, where I had my Zotero database stored locally. The more recent version of the library had for some reason failed to upload on the server (I subscribed to additional space).
In the meantime, I have my old HDD in a casing, and had also backed it up on a flash drive. When following the restoration procedure from both backups. However, it only retrieves data that was saved a year ago. Till I had done the HD upgrade, my library seemed to the latest one (saved locally). The original Zotero folder of the older drive, still seems to contain files I have added recently in my library (in 'storage').
After trying various combinations, I am still unable to restore the latest library to Zotero. The online library too shows more or less the same data, though I usually keep auto-sync off, and have done so now.
I would be grateful for your help and advice as it seems I may lose a lot of data.
Thank you!
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.
Upgrade Storage
"click “Show Data Directory”. This should reveal your active data directory containing zotero.sqlite and possibly a 'storage' subdirectory. Close 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."
I had more tahn one of these zotero.sqlite.bak files and a numbered one (zotero.sqlite.[highest-number].bak)and 'storage'. Since this didnt work, I tried various combinations, copying the whole directory, copying only the numbered file and so on. So far teh result has been the same though.
Do all of this while Zotero/Firefox are closed.
I did this. It shows the same library again (I copied it from C drive where my original Zotero folder is saved). It is the same 30 MB file on my all my backups as well.
I am going to have the HDD opened and try to check Standalone on that older PC. From what it looks like, I am beginning to suspect that somehow my local folder has been synced with my online library which is old. Though that should not be the case as I keep auto-sync turned off all the time, and till I had changed the HDD, the local files were alright. I opened the storage folder in the original Zotero library in the old HDD, and there seems to be recently saved files there, but these are somehow not appearing in the library of standalone.
What would be my options in these circumstances?
Thanks again.
http://www.zotero.org/support/zotero_data#restoring_from_the_last_automatic_backup
(and be sure to make a copy of those.)
Syncing wouldn't have caused this unless you forced a restore from server, which seems rather unlikely. (Syncing an empty online library with a newer, full local one populates the online one, not the other way around.)
So now, from what I can gather
I have a few .BAK files:
.1bak (31 MB approx, larger than the .sqlite file by 1-2 MB)and this seems to be larger than zotero.sqlite.76bak (the latter being only 14 MB.
From the instructions, just to be clear, I gather that
1.I take the LARGEST size zotero.sqlite.bak file and name it zotero.sqlite.new (while Standalone is running)
2. rename zotero.sqlite (non numbered, .sqlite file) to zotero.sqlite.old, rename zotero.sqlite.new to zotero.sqlite, and restart Firefox/Standalone.
I will do try this now, once I have replaced the HDD with the new one and let you know.
Thanks!
But, you say , so instead of restoring from a backed up database (.bak file), why not copy over the "zotero.sqlite" (no .bak or numbers or anything) over from the original HDD? Then you'll have exactly what you saw when you opened Zotero from the old HDD.
5. 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.
(or did you just edit that--but I thought I saw that yesterday).
https://www.zotero.org/support/zotero_data#restoring_from_the_last_automatic_backup
I thought that's what they were looking at (that's what they _should_ be looking at), but you're right that may not be the case.
I tried this as well several times:
"so instead of restoring from a backed up database (.bak file), why not copy over the "zotero.sqlite" (no .bak or numbers or anything) over from the original HDD"
But on doing this, the same 2013library appears.
Meanwhile while trying https://www.zotero.org/support/zotero_data#restoring_from_the_last_automatic_backup
I encountered a conflict: I have two 'zotero.sqlite' files in the folder. One is a .sqlite file (30,476 kb), and the other a .bak file (the latter is marginally bigger in kb, being 30,564 kb). The prompt wanted to rename the conflicted files to zotero.sqlite(2).
Then there are also two other .bak files, zotero.sqlite.1 (30, 560 kb) and zotero.sqlite.76 (14,120 kb).
Now I am quite confused as to what to do or which files to proceed with (and what to do with the other .bak files?)
The zotero.sqlite file from the old HDD is the same size more or less. The contents of the 'storage' folder even in the newly installed Zotero shows data added much later, but somehow this does not show in the library, under the various headings I had made.
I am a bit confused as to what I should finally follow now under these circumstances. Please help.
Thanks
"The Library you see on your old hdd is exactly what you want on your new one" is exactly what I want to do
https://www.zotero.org/support/zotero_data#restoring_your_zotero_library_from_a_backup1
This gives you what we believe are detailed, step-by-step instructions. If anything is unclear, feel free to ask, but be as specific as possible with any questions.
2) just this one: "one named zotero, listed as SQLITE file";
though ideally also the folder named "storage" from your back-up.