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/19 17:18] – [Backing Up Your Zotero Database] dstillmanzotero_data [2019/09/01 04:01] – [Backing Up Your Zotero Library] dstillman
Line 46: Line 46:
 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). 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 ''zotero.sqlite'' and ''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 a 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 a 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.
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.
zotero_data.txt · Last modified: 2023/07/13 17:52 by dstillman