Recover accidentally deleted zotero folder from library on zotero browser
I accidentally deleted all my zotero articles from my local drive.
When I log into zotero on browswer, I can still see all my articles. How can I restore this content to my local zotero app.
I am worried about accidentally syncing my empty local drive to my online browser and wiping my last remaining copy of articles...
When I log into zotero on browswer, I can still see all my articles. How can I restore this content to my local zotero app.
I am worried about accidentally syncing my empty local drive to my online browser and wiping my last remaining copy of articles...
If you just deleted a collection but didn't move the items to the trash (such that they still appear in the library root), you should be able to restore it from the last automatic backup.
If you for some reason actually deleted all your items and emptied the trash, you could move your local Zotero data directory out of the way and sync to pull down your online library, but note that you're at your file sync quota, so some files wouldn't have been previously uploaded and wouldn't be available.
When you say "move your local Zotero data directory out of the way" what do you mean exactly? Do you mean take the Zotero folder out of the default directory location on my Mac? (Like put it on the desktop?) And then choose sync on the local app? Do I then delete that (I assume a new folder with all the files is uploaded from the online server)? Like the original poster, I am worried that my empty library will overwrite all my files that were preserved on the online Zotero and I'll have two empty libraries! Sorry if this is so basic but that's where I'm at! Thank you!
But note that you, too, are at your file sync quota online, so all your files aren't online and you won't be able to restore them all unless you have another backup of your Zotero data directory.
Before I do anything, I do have a backup of the Zotero.sqlite.bak file that is dated yesterday afternoon in my Zotero data folder. I first tried to use it this morning when I deleted just one folder to restore it (and I assumed the whole library)--turned off auto sync first and followed the directions to rename the current sqlite file as sqlite.old and take the "bak" off the other file. Restarted Zotero and expected to see what had been backed up yesterday but there was nothing in my local library. I quickly quit the local app and went to online and saw that there were files there. I'm not sure if I did something wrong--I thought upon restarting Zotero I'd see the library that had been backed up yesterday. Or did I need to do something besides just restarting Zotero with the bak-renamed as Zotero.squlite?
If all you did was delete a collection, then you likely didn't even delete the items and they would still be in your library root, and your attached files would also all exist. So in that case you can certainly just delete zotero.sqlite and sync if the collection still exists online.
So, all I need to do is delete the zotero.sqlite file in my local Zotero directory, restart the local Zotero app, and then sync?
Thank you and thank you for your patience.
An upcoming version of Zotero will allow you to restore accidentally deleted collections from the trash.
But I do not see the backed-up version when I restart Zotero. I get "Welcome to Zotero" as if it was brand new, no files in the library.