このドキュメントでは、Confluence のデータを既存のデータベースから別のデータベースに移行する方法について説明します。以下の手順は、主に評価データベースから本番データベースに移行することを目的としています。大規模なデータセットの移行には、サードパーティのデータベース移行ツールが必要になります。

本ページでは、次のシナリオを取り上げます。

  • You should use this page when moving from the embedded database to an external database.

  • Provided your dataset is not large, you may use this method to move from one type of external database to another. For example, from Oracle to PostgreSQL.

  • Similarly, if the dataset is not large, you can use this method to upgrade your database to a new version of the same database. Note: You do not need to migrate your data if you are upgrading the database in place.

Note: If you are simply moving your database from one server to another you can just change the JDBC URL in <confluence.home>/confluence.cfg.xml (if you are using a direct JDBC connection) or in the definition of your datasource (if you are connecting via a datasource).

データベース移行の制限事項

データベースの移行

移行を実行する方法には 2 種類あり、どちらも本ページで説明しています。

  1. 方法 1 は標準的な手順です。

  2. インストールの添付ファイルの合計サイズが 500 メガバイトを超える場合、方法 2 を使用します。

On this page:

関連ページ

方法 1 - 標準的な手順

ステップ 1 :アドオンをメモする

ステップ 2: データをバックアップする

  1. Create an XML backup of your existing data, via the Confluence administration console. See Manually Backing Up the Site. Make a note of the location where you put the XML file. You will need it later to import your Confluence data into your new database.
  2. Confluence をシャットダウンします。
  3. Make a copy of the Confluence Home Directory. This is a precautionary measure, to ensure you can recover your data if it is mistakenly overwritten.
  4. 外部データベースを使用している場合、そのデータベースとともにインストールされたユーティリティを使用して、バックアップを別に作成します。これも予防措置です。

ステップ 3:新しいデータベースを設定する

ステップ 4.新しい場所に Confluence(同じバージョン番号)をインストールする

ステップ 5.必要に応じて、データベース ドライバをダウンロードし、インストールする

ステップ 6.Confluence のセットアップ ウィザードを実行し、新しいデータベースにデータをコピーする

ステップ 7.アドオンを再インストールする

ステップ 8.新しいマシンの設定を確認する

方法2 - 大容量の添付ファイルをインストールする場合

始める前に

Before proceeding with these instructions please check the following.

The instructions below will only work if both of the above are true.

ステップ 1 :アドオンをメモする

ステップ 2: データをバックアップする

  1. Create an XML backup of your existing data, via the Confluence administration console. See Manually Backing Up the Site. Make a note of the location where you put the XML file. You will need it later to import your Confluence data into your new database.
  2. Confluence をシャットダウンします。
  3. Confluence ホーム ディレクトリ内の attachments ディレクトリ (<CONFLUENCE-HOME-DIRECTORY>\attachments) のコピーを作成します。このデータは、以降で新しい Confluence インストールに Confluence の添付ファイル データをコピーする際に必要になります。
  4. 外部データベースを使用している場合、そのデータベースとともにインストールされたユーティリティを使用して、バックアップを別に作成します。これも予防措置です。

ステップ 3:新しいデータベースを設定する

ステップ 4.新しい場所に Confluence(同じバージョン番号)をインストールする

ステップ 5.必要に応じて、データベース ドライバをダウンロードし、インストールする

ステップ 6. Confluence のセットアップ ウィザードを実行し、新しいデータベースにデータをコピーする

ステップ 7 :添付ファイルをコピーする

attachments ディレクトリ (<CONFLUENCE-HOME-DIRECTORY>\attachments) のコンテンツを、古い Confluence ホーム ディレクトリから新しい Confluence ホーム ディレクトリにコピーします。

ステップ 8.アドオンを再インストールする

ステップ 9.新しいマシンの設定を確認する

データベース内の大文字と小文字の区別に関する注意

トラブルシューティング

If you are unable to restore your XML backup, consult our troubleshooting guide.