Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
zh:zotero_data [2017/11/27 00:34] – created theyu | zh:zotero_data [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Zotero数据目录 ====== | ||
- | ===== 定位您的Zotero数据目录 ===== | ||
- | |||
- | 您可以在Zotero[[preferences|首选项]]窗口中的[[preferences/ | ||
- | |||
- | ==== 数据目录默认位置 ==== | ||
- | |||
- | === Zotero 5.0 === | ||
- | |||
- | 您可以在[[preferences/ | ||
- | |||
- | |**macOS**|< | ||
- | |**Windows 7 及更高**|< | ||
- | |**Windows XP/ | ||
- | |**Linux**|< | ||
- | |||
- | === Zotero 4.0 for Firefox === | ||
- | |||
- | ^OS X|< | ||
- | ^Windows 7 及更高|< | ||
- | ^Windows XP/ | ||
- | ^Linux (大多数发行版)|< | ||
- | |||
- | === Zotero 4.0 Standalone === | ||
- | |||
- | ^OS X|< | ||
- | ^Windows 7 及更高|< | ||
- | ^Windows XP/ | ||
- | ^Linux (大多数发行版)|< | ||
- | |||
- | The "Show Data Directory" | ||
- | ===== Library Contents ===== | ||
- | |||
- | The most important file in the ' | ||
- | |||
- | Your ' | ||
- | |||
- | **Warning**: | ||
- | |||
- | |||
- | ===== 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 server only stores the most recent version of your library, 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). | ||
- | |||
- | If you want to back up your Zotero library specifically, | ||
- | |||
- | **Warning**: | ||
- | |||
- | For step-by-step, | ||
- | |||
- | ===== Restoring Your Zotero Library from a Backup ===== | ||
- | |||
- | Between manual backups, automatic backups, and synced data, it's often possible to restore a lost Zotero library or restore data that was accidentally deleted. | ||
- | |||
- | Before following these steps, be sure that [[# | ||
- | |||
- | |||
- | ==== Restoring your Zotero library using Zotero syncing==== | ||
- | |||
- | If you were using Zotero syncing and have an empty local library, you can likely restore your library simply by syncing with the Zotero server. After verifying that your library exists on zotero.org, simply reenter your username and password into the Sync pane of Zotero preferences and click the Sync button in the toolbar. (Zotero only syncs explicit deletions, so just syncing an empty library won't overwrite the server data **unless you deleted items manually**.) | ||
- | |||
- | If you have a local Zotero library that you want to overwrite, close Zotero and delete the old [[# | ||
- | |||
- | ==== Restoring your Zotero library from a backup ==== | ||
- | |||
- | If you were not using Zotero syncing (or were but don't want to perform a full sync) and have a backup of your Zotero data directory, you can restore your library by replacing the contents of your active data directory with that of your backed-up data directory. | ||
- | |||
- | Open the Advanced pane of the Zotero preferences and click "Show Data Directory" | ||
- | |||
- | Once you've successfully restored your data, you can delete the temporary folder on your desktop. | ||
- | |||
- | Note that, if you were using Zotero syncing, any changes you made to your library since the backup and subsequently synced to the Zotero server will be applied to your restored database as soon as you sync. | ||
- | |||
- | ==== Restoring your Zotero library from a backup and overwriting synced changes ==== | ||
- | |||
- | If you or someone else made unwanted changes to your Zotero library and synced those changes to the server, you may be able to restore data by using a local backup of your Zotero data directory. | ||
- | |||
- | First, disable auto-sync in the Sync pane of the Zotero preferences. Open the Advanced pane of the preferences and click "Show Data Directory" | ||
- | |||
- | Were you to sync again now, the more recent server data would replace the data you just restored. Instead, you can duplicate the affected items by right-clicking on them and choosing " | ||
- | |||
- | Alternatively, | ||
- | |||
- | Once you've successfully restored your data, you can re-enable auto-sync and delete the temporary folder on your desktop. | ||
- | |||
- | |||
- | ==== 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'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 " | ||
- | |||
- | If you don't want to do a full sync or if the changes have already synced to the Zotero server, follow these steps: | ||
- | - First, make sure to keep Zotero running, as the automatic backup might be overwritten when you quit the application. | ||
- | - If you're using syncing, temporarily disable auto-sync in the Sync pane of the Zotero preferences. | ||
- | - [[zotero_data# | ||
- | - Close Zotero. In your data directory, rename zotero.sqlite to zotero.sqlite.old, | ||
- | - Were you to sync again now, the more recent server data would 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 " | ||
- | - If many items were affected or collections were deleted, you can force the Zotero server to keep your local copies of the items/ | ||
- | - After making changes to the local database, you can sync, which should download any data modified since the backup and upload your local changes (and possibly ask you to resolve any conflicts, which you can do by choosing the local items). | ||
- | |||
- | If you're happy with the results, you can delete zotero.sqlite.old. | ||
- | |||
- | ==== Restoring from the last upgrade backup ==== | ||
- | |||
- | Zotero prompts you to upgrade your database when you install certain (usually major) new versions. If you would like to revert to a previous version of Zotero at a later point, you will have to manually replace your database with the automatic backup Zotero made during the upgrade. In most cases this will be the highest-numbered " | ||
- | |||
- | It's a good idea to make a backup of your entire Zotero data directory before making any changes. | ||
- | |||
- | If you have synced your data with the Zotero server, reverting to a previous version is as simple as reinstalling the previous version, closing Zotero, replacing " | ||
- | |||
- | If you were not using syncing, you may wish to export to Zotero RDF any items added since the database upgrade and then reimport those into the earlier version. [[Sorting]] your library by Date Added may help you find such items. | ||
- | |||
- | Bear in mind that word processor documents used with later Zotero versions often cannot be used again 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? ==== | ||
- | |||
- | In rare cases after upgrades or system restores, users open Zotero to find their libraries almost completely blank. If this happens to you, do not panic. In almost every case, Zotero is simply looking in the wrong location for the data. 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. | ||
- | |||
- | === Make sure your data files are in the directory where Zotero is looking. === | ||
- | |||
- | Use the "Show Data Directory" | ||
- | |||
- | If you have recently updated to Zotero 5 and are missing data, see [[kb/ | ||
- | |||
- | Unless you have a good reason to use a custom data directory location, we recommend using the default location in your home directory. | ||
- | |||
- | When specifying a custom data directory location, keep in mind that Zotero doesn' | ||
- | |||
- | Finally, remember to close Zotero before making any changes to Zotero files. |