xml バックアップからデータをリストアする

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

はじめる前に

JIRA システム管理者 グローバル権限が設定された、バックアップ ファイル ログイン用パスワードを持っていることを確認してください。復元手順が開始されると、 すべてのユーザー アカウントを含め、JIRA アプリケーション データベース内の既存のデータがすべて削除されます

JIRA クラウド アプリケーション サイトから JIRA サーバー アプリケーションにデータを復元する場合は、JIRA クラウドから JIRA サーバー アプリケーションへの移行 を必ずお読みください。

 For all of the following procedures, you must be logged in with JIRA System Administrators global permission.

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 段階は適用されません。

  1. > [システム] の順に選択します。 
  2. Select Import & Export > Restore System to open the Restore JIRA applications data from Backup page.
  3. ファイル名」フィールドに、JIRA によって生成された zip 形式の XML バックアップ ファイルの名前を入力します。
    (info)このバックアップ ファイルは、このフィールドの下に指定された場所に移動またはコピーされていることを確認してください。
  4. 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.
    (warning) Please Note:
    • インデックス ディレクトリの内容は、復元処理によって削除されることがあります。
    • インデックス ディレクトリには、JIRA のインデ​​ックス データのみが含まれている必要があります。
  5. 復元 」ボタンをクリックし、JIRA データが復元されるのを待ちます。
    (info) データが復元されると、JIRA はあなたをログアウトしたことを知らせます。これは、JIRA のデータが復元される前に JIRA に存在していたすべてのJIRA ユーザーが削除され、JIRA エクスポート ファイルに格納されているユーザーによって置き換えられるためです。

(info) 特に JIRA インスタンスの規模が大きい場合、プロキシ サーバー経由で XML を復元することを避けるようにお勧めします。プロキシ サーバーを使うと、タイムアウト エラーが起こる場合があります。

3. 添付ファイルの復元

添付ファイル ディレクトリのバックアップを作成した場合は、JIRA がアクセスできるディレクトリにバックアップを復元する必要があります。
(warning) 添付ファイル格納用のカスタム ディレクトリを使用する場合は、JIRA がこのディレクトリとそのサブ ディレクトリに対する読み書き権限を持っていることを確認してください。

添付ファイルのバックアップを復元するプロセスは、それが作成された方法によって異なります。通常、バックアップを作成するのに使用されたのと同じツールを使用して、バックアップを復元できます(添付ファイルのバックアップ 参照 )。

添付ファイルを以前置かれていた場所と異なる場所(すなわち、異なるディレクトリ パス)に復元する場合(たとえば、サーバーの移動時が、この事例に当たります)、添付ファイルの設定 の手順に従い、JIRA が復元された添付ファイルを見つけることができるように、添付ファイル ディレクトリの場所を変更してください。

最終更新日: 2019 年 10 月 8 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.