Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
zotero_data [2019/08/16 08:47] – [Troubleshooting Zotero Data issues] dstillmanzotero_data [2019/08/26 18:56] dstillman
Line 42: Line 42:
 ===== Backing Up Your Zotero Library ===== ===== Backing Up Your Zotero Library =====
  
-We strongly recommend that you regularly back up your Zotero library. Syncing is not a good substitute for backing up: the Zotero servers only store the most recent version of your library, and it takes just a single (possibly automatic) sync to change the server copy.+We strongly recommend that you regularly back up your Zotero database. Syncing is not a good substitute for backing up: the Zotero servers only store the most recent version of your libraries, and it takes just a single (possibly automatic) sync to change the server copy.
  
-Rather than backing up just your Zotero library, we recommend using a backup utility that automatically backs up your entire hard drive to an external device on a regular basis. Most modern operating systems offer such functionality (e.g., Time Machine on Macs).+Rather than backing up just your Zotero database, we recommend using a backup utility that automatically backs up your entire hard drive to an external device on a regular basis. Most modern operating systems offer such functionality (e.g., Time Machine on Macs).
  
 If you want to back up your Zotero data specifically, [[zotero_data#locating_your_zotero_data|locate your Zotero data]], close Zotero, and copy your data directory (the //entire directory//, including ''storage'' and the other subdirectories) to a backup location, preferably on another storage device. As with all important data, it is a good idea to back up your Zotero data frequently. If you want to back up your Zotero data specifically, [[zotero_data#locating_your_zotero_data|locate your Zotero data]], close Zotero, and copy your data directory (the //entire directory//, including ''storage'' and the other subdirectories) to a backup location, preferably on another storage device. As with all important data, it is a good idea to back up your Zotero data frequently.
  
-**Warning**: Zotero lets you export your Zotero library as a Zotero RDF file. However, exporting and importing your library via RDF won't result in an exact copy of your library, and it isn't recommended as a backup strategy.+**Warning**: Zotero lets you export Zotero library as a Zotero RDF file. However, exporting and importing your library via RDF won't result in an exact copy of your library, and it isn't recommended as a backup strategy.
  
 For step-by-step, illustrated backup instructions, see [[http://libguides.northwestern.edu/content.php?pid=68444&sid=676064|this guide provided by the Northwestern University library]]. For step-by-step, illustrated backup instructions, see [[http://libguides.northwestern.edu/content.php?pid=68444&sid=676064|this guide provided by the Northwestern University library]].
Line 92: Line 92:
 ==== Restoring from the last automatic backup ==== ==== Restoring from the last automatic backup ====
  
-If you make a critical mistake while using Zotero — for example, if you accidentally delete a large set of items — you may be able to revert to the last automatic backup. +If you make a critical mistake while using Zotero — for example, if you accidentally delete a large set of items — you may be able to revert to the last automatic backup. Note that automatic backups contain only data, not files.
- +
-If you're using [[sync|syncing]] but don't have auto-sync enabled, first check your online library on zotero.org to see if the data is correct there. If so, close Zotero, go to your Zotero data directory, and rename it (e.g., to "Zotero-old"). Then, re-open Zotero and sync from the Zotero servers to the new empty local library. +
- +
-If you don't want to do a full sync or if the changes have already synced to the online library, follow these steps to restore from an automatic backup. Note that automatic backups contain only data, not files.+
  
   - First, make sure to keep Zotero running, as the automatic backup might be overwritten when you quit the application.   - First, make sure to keep Zotero running, as the automatic backup might be overwritten when you quit the application.
Line 102: Line 98:
   - [[zotero_data#locating_your_zotero_data|Locate your Zotero data]] and make a copy of any zotero.sqlite.bak files. The timestamps of the files may help you determine which file would contain the data you're trying to restore.   - [[zotero_data#locating_your_zotero_data|Locate your Zotero data]] and make a copy of any zotero.sqlite.bak files. The timestamps of the files may help you determine which file would contain the data you're trying to restore.
   - Close Zotero. In your data directory, rename zotero.sqlite to zotero.sqlite.old, rename one of the .bak copies you made to zotero.sqlite, and restart Zotero. You should now see the backed-up version of your library.   - Close Zotero. In your data directory, rename zotero.sqlite to zotero.sqlite.old, rename one of the .bak copies you made to zotero.sqlite, and restart Zotero. You should now see the backed-up version of your library.
-  - Were you to sync again now, the more recent data in the online library would replace the data you just restored.+  - If you were using syncing and the undesired changes were already syncedsyncing now would cause the more recent data in the online library to replace the data you just restored.
     - If you're trying to restore a small number of deleted items or notes, you can simply duplicate the items — by right-clicking and choosing "Duplicate Item(s)" — so that the new copies remain even after syncing.     - If you're trying to restore a small number of deleted items or notes, you can simply duplicate the items — by right-clicking and choosing "Duplicate Item(s)" — so that the new copies remain even after syncing.
     - If you're trying to restore deleted collections, you can create duplicate collections and drag items from the old collections to the new ones. When you sync, the old collections will be deleted but the new ones will remain.     - If you're trying to restore deleted collections, you can create duplicate collections and drag items from the old collections to the new ones. When you sync, the old collections will be deleted but the new ones will remain.
Line 120: Line 116:
  
 Bear in mind that word processor documents used with later Zotero versions may not be usable with earlier versions, and Zotero developers and community members will provide only limited support for earlier versions (mostly to recommend upgrading to the current version). Bear in mind that word processor documents used with later Zotero versions may not be usable with earlier versions, and Zotero developers and community members will provide only limited support for earlier versions (mostly to recommend upgrading to the current version).
-===== Troubleshooting Zotero Data issues ===== 
  
-==== Where did my items go? ====+===== Locating Missing Zotero Data =====
  
 If you open Zotero to find your library blank or missing lots of data, don't panic. Data is never removed unless you delete it, so Zotero is most likely looking at a different database from the one you were using previously. You need to make sure that Zotero is looking in the right location for your Zotero files and that the right files are in that spot. If you open Zotero to find your library blank or missing lots of data, don't panic. Data is never removed unless you delete it, so Zotero is most likely looking at a different database from the one you were using previously. You need to make sure that Zotero is looking in the right location for your Zotero files and that the right files are in that spot.
zotero_data.txt · Last modified: 2023/07/13 17:52 by dstillman