Unchecking "sync automatically" not saved

I don't know if I'm the first this has happened to. I finished writing a paper several months ago, and wanted to free up space on my zotero account by removing the references for that paper. But I wanted to still have them on hand for future reference. So I backed up my entire Zotero profile folder to an external hard drive before deleting the items from my library.

Recently, when I decided I wanted to look at them again, I opened the Preferences, unchecked "Sync Automatically" and then on the Advanced tab, changed my data directory to the folder on my external drive. A window popped up saying, "Zotero for Firefox must be restarted for the change to take effect." So I clicked the button "Restart Now" which was the only option.

When Firefox restarted, I saw all of my old references. Great! A moment later, they disappeared, and I saw that a sync was taking place. Even though I had unchecked ""sync automatically," this setting had not been saved.

I guess that the setting was not saved because I never properly closed the Preferences window? Can the developers can please fix this bug?

Right now, I'm dismayed at having permanently lost about 100 references.I don't suppose there is any way to recover these? The zotero.sqlite file in my backup folder now has a smaller file size and a brand new "modified date", and about 100 of the folders in the storage directory are gone (I looked, they're not in the Trash).
  • I'm not sure I'd call this a bug. Settings on Windows are saved when you close the window. Zotero doesn't handle them directly. We might be able to force a save before the restart, but I'd definitely call your situation an edge case.

    If you don't have another backup, I'm afraid you're out of luck, at least with the attached files. There could be an automatic backup of the database in the data directory, but that would get you only the metadata.

    It's not really a backup if you access it directly...
  • Thanks for the quick reply Dan. One man's bug in another man's feature I guess.The fact that it caused me to inadvertently lose data makes it a bug in my book.

    After taking a deep breath, I realized that there were files called sqlite.bak. So yes, I was able to view the data for items in my library, but the attached PDFs and html snapshots seem to be permanently gone. That's a bummer, because I paid for some of them.

    Your final comment implies that I am going about the backup wrong. I guess I should have had two backups? I'm fairly tech literate, and followed all the instructions. How else should I have gone back and accessed my backup? Zotero does not allow you to access "read only" data on a CD or DVD. I tried that once and got the error message, "The Zotero database cannot be opened. Make sure you have read and write permissions for all files in the Zotero data directory."

    Thanks again for the quick reply. I love Zotero and am somewhat of an evangelist at my office. I've seen a few messages on the boards asking for a more straightforward way to backup library data, and I'd like to second that.
  • Your final comment implies that I am going about the backup wrong.
    I wasn't suggesting that you did the backup incorrectly. It just ceases to be a backup if you use it directly when it's the only copy of the data you have.
  • edited May 18, 2011
    Also, Zotero (clearly) isn't designed for switching back and forth between different versions of the same database in the way you're doing. An older database will always have any updates since its last synced time applied on sync. "Sync automatically" or not, it would've just taken an accidental click on the sync button to do the same thing.

    A proper solution would be the ability to not sync certain collections or libraries, but that's not possible currently.
  • Dan, I certainly appreciate your comments and suggestions. Thank you.

    I was able to recover a lot of my deleted information. First, I renamed one of the .bak files and restarted Zotero.(First I changed my login information in the preferences so an inadvertent sync would be impossible.) That got me all of my bibliographic metadata back in zotero, but without any files.

    Then I used a little free program called Restoration and searched for deleted files with "PDF" in them. I think I got all of them. They're not linked to the articles anymore, because it doesn't restore them to the same folder location. Luckily, I frequently used the "Rename file from parent metadata" option, so my files have really useful names that are easily identifiable. There are a few that remain inscrutable, but it's easy enough to open the file and look at it.

    Cheers,
    Matt
Sign In or Register to comment.