xml バックアップからデータをリストアする
はじめる前に
JIRA システム管理者 グローバル権限が設定された、バックアップ ファイル ログイン用パスワードを持っていることを確認してください。復元手順が開始されると、 すべてのユーザー アカウントを含め、JIRA アプリケーション データベース内の既存のデータがすべて削除されます。 |
JIRA クラウド アプリケーション サイトから JIRA サーバー アプリケーションにデータを復元する場合は、JIRA クラウドから JIRA サーバー アプリケーションへの移行 を必ずお読みください。 |
次のすべての手順を行うには、JIRA 管理者 グローバル権限 を持つユーザーとして、ログインする必要があります。 |
1. メール送受信の無効化
試験目的で、本番データをテスト JIRA インスタンスに復元する場合、作業を開始する前に、すべてのJIRA アプリケーションのメール機能を無効にする必要があります。
- Disable email notifications — if JIRA is configured to send emails about changes to issues, and you want to make test modifications to the copy, you should start JIRA with the
-Datlassian.mail.senddisabled=true
flag. - Disable POP/IMAP email polling — if JIRA is configured to poll a mailbox (to create issues from mails), you will have to disable polling on your test installation by setting the
-Datlassian.mail.fetchdisabled=true
flag.
Exactly how to set these flags is dependent on your particular application server, but for JIRA, this is done by setting the DISABLE_NOTIFICATIONS
environment variable before starting JIRA (note, use startup.sh
instead of startup.bat
if you are not using Windows):
set DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"
cd bin
startup.bat
/bin/setenv.bat
ファイル (Windows を使用していない場合は /bin/setenv.sh
) の DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"
行のコメントを解除してから、スタートアップの実行を試すこともできます。
2. XML データの復元
データのバックアップにネイティブのデータベース ツールを使用した場合は、復元処理はツール固有の手順で行われ、本手順のうち 2 と 3 段階は適用されません。
- > [システム] の順に選択します。
- Select Import & Export > Restore System to open the Restore JIRA applications data from Backup page.
- In the 'File name' field, type the file name of the zipped XML backup file generated by JIRA.
Ensure that this backup file has been moved or copied to the location specified below this field.
- The Index Path field indicates where JIRA will restore the search index data from the zipped XML backup file. This location (which cannot be modified) matches the index path specified in the zipped XML backup file. If, however, this backup file does not specify an index path, JIRA will restore the search index to the
caches/indexes
subdirectory of the JIRA application home directory.Please Note:
- インデックス ディレクトリの内容は、復元処理によって削除されることがあります。
- インデックス ディレクトリには、JIRA のインデックス データのみが含まれている必要があります。
- Click the 'Restore' button and wait while your JIRA data is restored.
Once the data has been restored, JIRA will inform you that you have been logged out. This happens because all JIRA users which existed in JIRA prior to JIRA's data being restored will have been deleted and replaced by users stored in the JIRA export file.
特に JIRA インスタンスの規模が大きい場合、プロキシ サーバー経由で XML を復元することを避けるようにお勧めします。プロキシ サーバーを使うと、タイムアウト エラーが起こる場合があります。
3. 添付ファイルの復元
If you created a backup of the attachments directory, you will need to restore the backup into a directory where JIRA can access it. If you use a custom directory for storing your attachments, ensure that JIRA has read and write permissions to this directory and its subdirectories.
添付ファイルのバックアップを復元するプロセスは、それが作成された方法によって異なります。通常、バックアップを作成するのに使用されたのと同じツールを使用して、バックアップを復元できます(添付ファイルのバックアップ 参照 )。
添付ファイルを以前置かれていた場所と異なる場所(すなわち、異なるディレクトリ パス)に復元する場合(たとえば、サーバーの移動時が、この事例に当たります)、添付ファイルの設定 の手順に従い、JIRA が復元された添付ファイルを見つけることができるように、添付ファイル ディレクトリの場所を変更してください。