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
Last revisionBoth sides next revision
ja:zotero_data [2012/01/14 10:31] – [既定の保存場所] odonja:zotero_data [2012/04/06 04:24] – [私のアイテムはどこへ行ったのでしょう?] odon
Line 3: Line 3:
 =====Zoteroライブラリの構成要素  - データとファイル==== =====Zoteroライブラリの構成要素  - データとファイル====
  
 +Zoteroがどのようにデータを保存するかをきちんと理解しておくことは、正しくZoteroライブラリのバックアップを取るために、そしてまた悲劇が起こったときには、そこから復元するために、とても大切です。初期設定では、あなたの全Zoteroライブラリは、あなたの[[http://support.mozilla.com/kb/Profiles|Firefox プロファイル]]の中のZoteroフォルダに保存されます。このフォルダの中で一番重要なファイルは、zotero.sqliteファイルで、これはあなたのデータの大半(アイテムのメタデータ、メモ、タグ、など)を含んでいます。このフォルダの中には、'storage'サブフォルダがあり、これはすべての添付ファイル、PDFやウェブのスナップショット、音声ファイル、その他あなたが取り込んだあらゆるファイル([[attaching_files|リンク]]されたファイルはこのサブフォルダにはコピーされていないことに注意してください)を含んでいます。
  
-It is important to fully understand how Zotero stores its data, so you can correctly back up your Zotero library and, when disaster strikes, recover it. By default, your entire Zotero library is stored in the 'zotero' directory of your [[http://support.mozilla.com/kb/Profiles|Firefox profile]]. The most important file in this directory is the zotero.sqlite file, which contains the majority of your data: item metadata, notes, tags, etc. The directory also contains a 'storage' subdirectory, containing all of your file attachments, such as PDFs, web snapshots, audio files, or any other files you have imported (note that files that are [[attaching_files|linked]] are not copied into this subdirectory). +あなたの'Zotero'フォルダはおそらくほかにもいくつかのファイルを含んでいるでしょう。これらの中には zotero.sqlite.bakファイル (自動的に生成される zotero.sqlite のバックアップで、Firefoxを終了するたび、あるいはすでにあるzotero.sqlite.bak が最後に更新されてから12時間経過した場合に更新されます)zotero.sqlite.[number].bak ファイル(自動的に生成されるzotero.sqliteのバックアップで、Zoteroの更新の際に作られます)が含まれます。
- +
-Your 'zotero' directory will likely contain several other files. These can include zotero.sqlite.bak (an automatic backup of zotero.sqlite, which is updated when you quit Firefox and the existing zotero.sqlite.bak file hasn't been updated in the last 12 hoursand zotero.sqlite.[number].bak files (automatic backups of zotero.sqlite that are created during certain updates to the Zotero extension). +
- +
-**Warning**: Before you copy, delete or move any of these files, be sure that Firefox is closed. Failure to close Firefox before moving these files can damage your data.+
  
 +**警告**: これらのファイルのいずれもを複製、削除または移動する前に、Firefoxが閉じていることを必ずご確認ください。Firefoxを閉じずにこれらのファイルを移動するとデータを破損する恐れがあります。
 ===== あなたの Zotero ライブラリの保存場所 ===== ===== あなたの Zotero ライブラリの保存場所 =====
  
Line 16: Line 14:
 Zoteroライブラリの保存フォルダを見つけるための最も手軽で信頼できる方法は、Zotero[[ja:preferences|設定ウインドウ]]の[[ja:preferences:advanced|詳細タブ]]で"Show Data Directory" ボタンを使うものです。 Zoteroライブラリの保存フォルダを見つけるための最も手軽で信頼できる方法は、Zotero[[ja:preferences|設定ウインドウ]]の[[ja:preferences:advanced|詳細タブ]]で"Show Data Directory" ボタンを使うものです。
  
-==== 既定の保存場所 ====+==== デフォルトの保存場所 ====
  
 初期設定ではZoteroのデータは、OS によって異なりますが、以下の場所に保存されます。これらの場所はOSによっては隠されているかもしれません。 初期設定ではZoteroのデータは、OS によって異なりますが、以下の場所に保存されます。これらの場所はOSによっては隠されているかもしれません。
Line 26: Line 24:
 Zotero for Firefox stores data within the Firefox profile directory by default. Zotero for Firefox stores data within the Firefox profile directory by default.
  
-On Mac OS X:\\+Mac OS X:\\
   /Users/<username>/Library/Application Support/Firefox/Profiles/<randomstring>/zotero   /Users/<username>/Library/Application Support/Firefox/Profiles/<randomstring>/zotero
  
-On Windows Vista and 7:\\+Windows Vista および Windows 7:\\
   C:\Users\<User Name>\AppData\Roaming\Mozilla\Firefox\Profiles\<randomstring>\zotero   C:\Users\<User Name>\AppData\Roaming\Mozilla\Firefox\Profiles\<randomstring>\zotero
  
-On Windows 2000 and XP:\\+Windows 2000 および Windows XP:\\
   C:\Documents and Settings\<username>\Application Data\Mozilla\Firefox\Profiles\<randomstring>\zotero   C:\Documents and Settings\<username>\Application Data\Mozilla\Firefox\Profiles\<randomstring>\zotero
  
-On most Linux distributions:\\ +多くの Linuxディストリビューション:\\ 
   ~/.mozilla/firefox/Profiles/<randomstring>/zotero   ~/.mozilla/firefox/Profiles/<randomstring>/zotero
  
 === Zotero スタンドアローン === === Zotero スタンドアローン ===
  
-On Mac OS X:\\+Mac OS X:\\
   /Users/<username>/Library/Application Support/Zotero/Profiles/<randomstring>/zotero   /Users/<username>/Library/Application Support/Zotero/Profiles/<randomstring>/zotero
  
-On Windows Vista and 7:\\+Windows Vista および Windows 7:\\
   C:\Users\<User Name>\AppData\Roaming\Zotero\Profiles\<randomstring>\zotero   C:\Users\<User Name>\AppData\Roaming\Zotero\Profiles\<randomstring>\zotero
  
-On Windows 2000 and XP:\\+Windows 2000 および Windows XP:\\
   C:\Documents and Settings\<username>\Application Data\Zotero\Profiles\<randomstring>\zotero   C:\Documents and Settings\<username>\Application Data\Zotero\Profiles\<randomstring>\zotero
  
-On most Linux distributions:\\ +多くの Linuxディストリビューション:\\ 
   ~/.zotero/Profiles/<randomstring>/zotero   ~/.zotero/Profiles/<randomstring>/zotero
  
 =====あなたの Zotero ライブラリのバックアップ===== =====あなたの Zotero ライブラリのバックアップ=====
  
-To back up your [[zotero_data#elements_of_a_zotero_library_-_data_and_files|Zotero library]][[zotero_data#locating_your_zotero_library|locate your Zotero library]], close Firefox, and copy your 'zotero' data directory 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.+あなたの[[zotero_data#elements_of_a_zotero_library_-_data_and_files|Zotero ライブラリ]]をバックアップするには、[[zotero_data#locating_your_zotero_library| Zotero ライブラリの保存場所を確かめ]]Firefoxを閉じて、「Zotero」フォルダをバックアップ先(理想的には別の保存機器)にコピーしてください。すべての重要なデータに当てはまることですが、Zoteroデータを頻繁にバックアップすることが推奨されます。
  
-**Warning — Syncing**: [[sync|Syncing]] is not a substitute for backing up. For example, if you accidentally delete items in your library and sync your Zotero library, you won't be able to recover these items from the Zotero server.+**警告 — 同期**: [[sync|同期機能]]はバックアップの代わりにはなりません。たとえば、もしあなたが誤ってライブラリの中の項目を削除してしまい、さらにZoteroライブラリを同期してしまった場合、こうして失った項目をZoteroサーバから復元することはできないでしょう。
  
-**Warning — Import/Export**: Zotero allows you to 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. +**警告 — インポート/エクスポート**: Zoteroは、ZoteroライブラリをZotero RDFファイルとして書き出すことができます。しかし、RDF形式による書き出しと読み込みは、あなたのライブラリの完全なコピーにはなりませんし、バックアップの方法としては推奨できません。
- +
-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]].+
  
 +詳細なバックアップの図解については[[http://libguides.northwestern.edu/content.php?pid=68444&sid=676064|this guide provided by the Northwestern University library]]を御覧ください。
 =====バックアップからZoteroライブラリを復元する===== =====バックアップからZoteroライブラリを復元する=====
  
-When you lose your original Zotero library (e.g. when the hard drive fails or your computer is stolen), you can restore your library by replacing the contents of your active 'zotero' data directory with that of your backed-up 'zotero' data directory. +オリジナルのZoteroライブラリを失ってしまった場合(たとえばハードドライブが壊れた、あるいはコンピューターが盗まれた)、あなたのライブラリは、バックアップ済みのZoteroデータ・フォルダを、現在使用中のZoteroフォルダとすり替えることで、復元することができます。
- +
-First, reinstall Zotero from [[/|zotero.org]] if necessary. After restarting Firefox, open the Advanced pane of the Zotero preferences and click "Show Data Directory". This should reveal a directory containing zotero.sqlite and possibly a 'storage' subdirectory. Close Firefox and move zotero.sqlite and 'storage' from this folder into a temporary folder on your desktop. Next, copy zotero.sqlite and 'storage' from your backup into the active data directory. When you now reopen Firefox, your Zotero library should be restored.+
  
-Once you've successfully restored your data, you can delete the temporary folder.+まず、もし必要ならばZoteroを[[/|zotero.org]] から再インストールしてください。Firefoxを再起動した後で、[[ja:preferences|Zotero設定ウインドウ]]の[[ja:preferences:advanced|詳細タブ]]を開き、"Show Data Directory"ボタンをクリックしてください。これによりzotero.sqliteと、場合によっては'storage' サブフォルダを含むフォルダが表示されます。Firefoxを閉じて、zotero.sqlite と'storage' をこのフォルダから、デスクトップの一時的な保存用フォルダに移動してください。次に、zotero.sqlite と 'storage'をバックアップの中から、現在使用中のZoteroデータフォルダへとコピーしてください。Firefox を次に起動すると、ライブラリが復元されている筈です。
  
 +データの復元に成功したら、一時保存フォルダは削除して構いません。
 ==== 最新の自動バックアップからの復元 ==== ==== 最新の自動バックアップからの復元 ====
  
-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 [[zotero_data#elements_of_a_zotero_library_-_data_and_files|automatic backup]].+Zoteroを使いながら致命的な失敗を犯してしまった場合、たとえば、誤って大量のアイテムを一度に消去してしまった場合、最新[[zotero_data#elements_of_a_zotero_library_-_data_and_files|自動生成されたバックアップ]]の状態へと復元することができます。
  
-  - First, make sure to keep Firefox running, as the automatic backup might be overwritten when you quit Firefox. Then, [[http://www.zotero.org/support/zotero_data#locating_your_zotero_library|locate your Zotero library]] and make a copy of the zotero.sqlite.bak file and name it zotero.sqlite.new. 
-  - Optionally, in Zotero, select any items you have added since you last started Firefox (a [[finding_and_sorting#saving_searches|saved search]] may be helpful), right-click the selection, choose "Export Selected Items...", and export to Zotero RDF. 
-  - Close Firefox. In your data directory, rename zotero.sqlite to zotero.sqlite.old, rename zotero.sqlite.new to zotero.sqlite, and restart Firefox. You should now see the backed-up version of your library. 
-  - If you exported any items, import the RDF file you created to restore the data added during your last Firefox session. 
  
-If you're happy with the results, you can delete zotero.sqlite.old.+  - まず、Firefoxが動作中であることを確認してください、というのは、Firefoxを終了するときに、自動生成のバックアップは上書きされてしまう恐れがあるためです。次に、[[http://www.zotero.org/support/zotero_data#locating_your_zotero_library| Zotero ライブラリの場所を調べ]]、 zotero.sqlite.bakファイルの複製を作り、zotero.sqlite.newと名前を付けてください。 
 +  - これは任意ですが、Zoteroで、最後にFirefoxを立ち上げてから追加したアイテムをどれでも選択して([[finding_and_sorting#saving_searches|saved search]]が役に立つでしょう)、その選択されたアイテムを右クリックし、"Export Selected Items..."を選び、Zotero RDFとして書き出し(エクスポートし)ます。 
 +  - Firefoxを閉じてください。あなたのデータ・フォルダの中で、zotero.sqlite を zotero.sqlite.oldへ、zotero.sqlite.new を zotero.sqlite へと名前を変更し、Firefoxを立ち上げてください。バックアップから復元されたデータが見えるはずです。 
 +  - アイテムを書き出し(エクスポート)していたら、そのRDFファイルを読み込み(インポート)、最後のFirefoxセッションの間に追加された分のデータを復旧してください。
  
 +復元の結果に満足であれば、zotero.sqlite.oldファイルを削除して構いません。
 ==== 最新のアップグレードバックアップからの復元 ==== ==== 最新のアップグレードバックアップからの復元 ====
  
-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 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 "zotero.sqlite.[num].bak" file in your Zotero data directory.+Zoteroは、新しいバージョンをインストールするときに(たいていは大きな更新の場合)データベースの更新を促すことがあります。後で、古いバージョンに戻りたいときには、この更新の際にZoteroが自動生成したバックアップを使って、手動でデータベースを置き換える必要が生じます。多くの場合このバックアップは、Zoteroデータ保存フォルダ内の、最も大きい番号のついた"zotero.sqlite.[番号].bak"ファイルです。
  
-It's a good idea to make a backup of your entire Zotero data directory before making any changes.+変更を加える前にZoteroデータ保存フォルダ全体のバックアップを取っておくことがよいでしょう。
  
-If you have synced your data with the Zotero server, reverting to a previous version is as simple as reinstalling the previous version, closing Firefox, replacing "zotero.sqlite" in your Zotero data directory with "zotero.sqlite.[highest-number].bak", and restarting Firefox. (Note that if you try to open an upgraded database in an earlier version, Zotero will display an error. Just close Firefox and replace the SQLite file.) Zotero will then sync from the Zotero server any changes made since you last used the older database.+もしZoteroサーバとデータを同期してしまっていたら、以前のバージョンに戻すのは、古いバージョンをインストールし、Firefoxを終了し、Zoteroデータ保存フォルダ内の"zotero.sqlite""zotero.sqlite.[最大の番号].bak"で置き換え、Firefoxを起動するだけです。(もし更新されたデータベースを古いバージョンで開こうとするとZoteroはエラーを表示します。Firefoxを閉じて、SQLite ファイルの置き換えを行ってください。) 
 +するとZoteroは、Zoteroサーバと同期して最後に古いデータベースを使用してから行ったあらゆる変更を反映します。
  
-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. [[finding_and_sorting#sorting|Sorting]] your library by Date Added may help you find such items.+もし同期機能をお使いでない場合、データベースの更新の後に追加されたすべてのアイテムをZotero RDFにエクスポートしておき、古いバージョンに戻してからこれらをインポートするとよいでしょう。あなたのライブラリを作成日順に[[finding_and_sorting#並び替え|並べ替え]]すると、これらのアイテムを見つけやすいでしょう。
  
-Bear in mind that word processor documents used with later Zotero versions often cannot be used again with earlier versions.+一度より新しいバージョンのZoteroを使用したワードプロセッサ文書は、古いバージョンのZoteroと組み合わせて利用することができない場合が多いので注意してください。
  
 ======Zoteroデータに関する問題解決====== ======Zoteroデータに関する問題解決======
Line 97: Line 94:
 =====私のアイテムはどこへ行ったのでしょう?===== =====私のアイテムはどこへ行ったのでしょう?=====
  
-Occasionally after upgrades or system restores, users open Zotero to find their libraries almost completely blank. While you may find this a bit disconcerting if it happens to you, do not panic. In almost every case Zotero is looking in the wrong location for your 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. (A library can also appear empty due to an extension conflict, so be sure to check [[known_issues#incompatible_extensions_and_applications|known incompatible extensions]] and disable your other Firefox extensions if you're sure that Zotero is looking in the right place.)+しばしば、更新の後で、あるいはシステムの復旧の後で、Zoteroを立ち上げるとあなたのライブラリがほぼ空っぽになっていることがあります。これを体験すると焦るかもしれませんが、慌てないでください。ほとんどすべての場合、Zoteroがあなたのデータを探すために間違った場所を参照していることが原因です。あなたのZoteroファイルの正しい保存場所をZoteroが参照しているか、そして正しいファイルがその場所に存在しているか、確認してください。(アドオンによる衝突によって、ライブラリが空に見える場合もあります。[[:known_issues#incompatible_extensions_and_applications|known incompatible extensions]]で既知の不適合なアドオンを確認し、もしZoteroが正しい場所を参照していることが確かなら、他のFirefoxアドオンを無効化してみてください。) 
 + 
 +===1正しいFirefoxプロファイルを使用しているか確認する===
  
-===1Make sure you are in the correct Firefox Profile.===+更新の際にしばしばFirefoxは新しいプロファイルを作ることがあります。(もしブックマークや閲覧履歴が変わってしまったり、消えてしまったことに気づいたら、これが起こった可能性が高いでしょう。) [[http://support.mozilla.com/kb/Profiles|Firefox Profile manager]]を使って、正しいプロファイルを使用していることを確かめることができます。
  
-Occasionally when upgrading, Firefox creates a new profile. (If you notice that your bookmarks and browser history have changed or disappeared, it's likely that this has occurred.) You can use the [[http://support.mozilla.com/kb/Profiles|Firefox Profile manager]] to make sure that you are in fact in the correct profile. 
  
-===2. Make sure your data files are in the directory where Zotero is looking.===+===2. あなたのデータファイルがZoteroが参照しているフォルダに存在していることを確認する===
  
-Use the "Show Data Directory" button in the [[preferences/advanced|Advanced]] pane of your Zotero preferences to reveal the current data directory. If this isn't the directory you were expecting, you can either specify a different data directory in the Advanced pane of the Zotero prefs or, with Firefox closed, move any existing Zotero files (zotero.sqlite and 'storage'out of the way and copy your desired Zotero files into the displayed directory. If you're not sure where your data is located, it's a good idea to look for larger versions of zotero.sqlite or zotero.sqlite.bak stored elsewhere on your hard drive and to look in the 'storage' directory for recently saved PDFs and other files.+Zotero環境設定の[[preferences/詳細|詳細]]タブの「データ保存フォルダを表示」ボタンを使って、現在のデータ保存フォルダを表示してください。もしこれが予想していたフォルダとは違う場合、別のデータ保存フォルダを環境設定の詳細タブで指定するか、あるいは、Firefoxを終了してから既存のZoteroファイル(zotero.sqlite と 'storage')を表示されたフォルダへすべてコピーしてください。もしご自分のデータがどこにあるのか分からない場合は、ハードディスクのどこかにある、より大きい zotero.sqlite または zotero.sqlite.bakを検索し、'storage'フォルダの中を見て最近保存したPDF等があるか確かめるとよいでしょう。
  
-Unless you have a good reason to use a custom data directory location, we recommend using the default location within your Firefox profile.+特にデータ保存フォルダの場所をカスタム指定したい理由がない限り、初期設定のFirefoxプロファイルの中を使用することを推奨します。
  
-When specifying a custom data directory location, keep in mind that Zotero doesn't move or copy any data. You still need to copy your data into the specified location. Also, when pointing the data directory location to an existing directory, be sure to specify the parent directory containing zotero.sqlite and 'storage', not the 'storage' directory itself.+データ保存フォルダをカスタム指定するとき、Zoteroはデータを一切移動もコピーもしないということに留意してください。指定されたフォルダにデータをコピーする必要があります。また、データ保存フォルダの場所を既存のフォルダに指定するときは、'storage'フォルダ自体ではなく、zotero.sqlite と 'storage'を含む親フォルダを指定するように注意してください。
  
-Finally, remember to close Firefox before making any changes to Zotero files.+最後に、Zoteroファイルにいかなる変更を加えるときも、まずFirefoxを終了してから行うように念押ししておきます。