Automating JIRA Backups

JIRA can be configured to automatically create an XML backup of JIRA data on a routine basis.

(info) 注意:

For production use or large JIRA installations, it is strongly recommended that you use native database-specific tools instead of the XML backup service. XML backups are not guaranteed to be consistent, as the database may be updated during the backup process. Inconsistent backups are created successfully without any warnings or error messages, but fail during the restore process. Database-native tools offer a much more consistent and reliable means of storing data.

To configure automated JIRA backups:

  1. JIRA システム管理者」 グローバル権限を持つユーザーとしてログインします
  2. Select Administration > System > Advanced > Services (tab) to open the Services page, which lists the current services running on this system. By default, there should be at least one 'Mail Queue Service' running, which cannot be deleted.
    (tick) Keyboard shortcut: g + g + start typing services
  3. ページの下部にあるサービスの追加 フォームで、次のフィールドの入力を完了します。
    • 名前Backup Service などの、バックアップ サービスの記述名。
    • クラス — 次のいずれかのメソッドを使用したバックアップ サービス適切な完全修飾クラス名:
      • Select the Backup service from the list of JIRA's Built-in Services. To do this:
        1. Click the Built-in Services link below the Class field to expand the list of JIRA's built-in service classes.
        2. [バックアップ サービス] リンクをクリックします。[クラス] フィールドは、クラス テキスト文字列 "com.atlassian.jira.service.services.export.ExportService" を使用して自動的に生成されます。
      • [クラス] フィールドに完全修飾クラス名 "com.atlassian.jira.service.services.export.ExportService" を入力します。
    • Delay — enter the number of minutes between backups. A good default for this would be 720 minutes (12 hours) or 1440 minutes (24 hours).
      (info) Please Note: The interval specified in the Backup Service Delay (mins) is the time when the next backup job will run since the last server restart. Backup services cannot be scheduled to run at a specific time of day - please see JRA-1865 for more on this.
  4. Click the Add Service button. The Edit Service page is displayed.
  5. このページの次のアイテムを入力します。
    • For the Date format field, specify the format which JIRA will use to name the individual backup files. This format can be anything that SimpleDateFormat can parse. A good default is 'yyyy-MMM-dd-HHmm', which would generate files named like this: '2007-Mar-05-1322'.
    • 遅延フィールドについては、必要に応じて、バックアップ間隔を示す分数を変更します。
    • If the Use Default Directory check box is displayed, see the note below.
  6. 更新ボタンをクリックします。バックアップサービスが構成されました。XML バックアップは遅延フィールドで指定したスケジュールに沿って実行されます。
    • バックアップが成功するたびに、XML バックアップの Zip ファイルがバックアップ ディレクトリに保存されます。
    • If a scheduled backup fails for any reason, the zipped XML backup file will be saved into the 'corrupted' directory, which is directly under your nominated backup directory. A file explaining the reason for the failure will be written to the 'corrupted' directory. This file will have the same name as the backup file, but with the extension '.failure.txt'.
      (info) JIRA will create the 'corrupted' directory if required - you do not need to create it.

カスタムのバックアップ ディレクトリについて

The Use Default Directory check box (not shown in screenshot above) is for legacy JIRA installations (prior to JIRA 4.2), which have backup services that use custom directories.

If you are using JIRA 5.1.0 or earlier, the Use Default Directory will always be displayed, as the option of using custom directories has been deprecated. If you are using JIRA 5.1.1 or later, the Use Default Directory check box will only be displayed if you upgraded from a version of JIRA prior to 4.2 and you are editing an existing backup service which used a custom directory.

  • If you are not using a legacy backup service with a custom directory, select the the Use Default Directory check box. If you do not, your backup service may not work correctly
  • カスタム ディレクトリウを使用するレガシー バックアップ サービスを使用している場合、既定ディレクトリを使用するかカスタム ディレクトリを使用するかを選択できます (編集することはできません)。既定ディレクトリオプションを選択すると、カスタム ディレクトリ オプションを選択できなくなります。

The default directory location is the export subdirectory of the JIRA Home Directory.


最終更新日 2012 年 7 月 24 日

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

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