How to Create a Test or Development Instance
Development licenses are available for any Commercial or Academic license. Create one or contact us for help. |
Adminstrators may need to move a Confluence instance from one server to another for upgrades or downtime. This page tells you how to copy a Confluence instance from one server to another. For example, you may want to transfer your current production snapshot to a test server as permitted in the licence agreement.
|
If you are planning to switch databases, application servers or Confluence versions, perform the transfer and test that it is successful separately to any other changes. |
同一のオペレーティングシステムを有するサーバーへの Confluence の移行
両方のサーバーのオペレーティングシステムが同一である場合、ホームフォルダーおよびインストールフォルダーを直接コピーすることにより、元と同じ外部データベースを利用し、同一のユーザー管理情報を設定することができます。
- On the original server, create zips of the Confleunce install and home directories. Copy the zips to the new server.
- On the new server, unzip the install and home directories. Windows users should avoid unzipping with the Windows built-in extractor, instead use Winzip or the free 7Zip.
ホームディレクトリの場所を変更する場合は、Confluence install\confluence\WEB-INF\classes ディレクトリを開き、confluence-init.properties を編集して、'confluence.home=' で始まる行を修正します。 |
- このステップはどのデータベースを使用しているかによって異なります:
- For users of the internal database, the content is stored inside the home directory. You should switch to an external database after the transfer is successful.
- For databases stored on another server: change the user account or datasource permissions so that the new server has the same network access permissions as the original. Then confirm from the new server that the hostname can be resolved and is listening for database connections on the expected port.
- For external databases stored locally: on the original server, create a manual database backup using a native db dump backup tool. Copy the database backup to the new server.
- 移行先サーバーにおいて、元のサーバーと同一バージョンになるようにデータベースのインストールまたはアップグレードを行います。
- データベースバックアップをインポートします。
- 元サーバーと同一のユーザー名とパスワードを有するデータベースユーザーアカウントを作成します。
- 作成したデータベースユーザーに、インポートされたデータベースに対するフルアクセス権限を付与します。
- データベース管理ツールを使用して、そのユーザーがローカルホストからログインできることを確認します。
- データベース接続情報を変更するときは Confluence のホームディレクトリに移動して confluence.cfg.xml を編集します。接続 URL は、hibernate.connection.url で指定します。この URL が本番環境用データベースサーバーを示していないことを確認してください。
- ユーザー管理対象が内部ユーザーのみの場合はこのステップは不要です。JIRA または LDAP を組み込んでいる場合、それらのホストへのネットワークアクセスまたはローカルアクセス権限を元のサーバーと同様に移行先サーバーに付与します。
- If appropriate, make sure no emails are sent out from the test system.
- Confluence を起動します。
- Go to Administration > License Details and add your development license key. You can generate one at http://my.atlassian.com. There are more details in Getting a License for a Staging Environment.
- If you configured Confluence as a Windows service, repeat those instructions.
- Add your development license key.
異なるオペレーティングシステムを有するサーバーへの Confluence の移行
For XML backups
If you're not yet using the Alternate backup strategy, you can do this with your regular XML backup. Create a backup and import into the new server.
- Create a backup from Confluence:

- Select 'Backup & Restore'.
- Check the 'Backup Attachments' option and select 'Backup'.
- Identify the current version of Confluence your are using, displayed at the bottom of each Confluence page.
- Download the same version as you are currently using to the new server, which may be the current Confluence release, or an older version.
- Go to Administration > License Details and add your development license key. You can generate one at http://my.atlassian.com. There are more details in Getting a License for a Staging Environment.
- Using the same version, follow the Upgrading Confluence guide.
- Add your development license key.
- Restore your XML Backup From <<Administration > Backup and Restore>>.
- If appropriate, make sure no emails are sent out from the test system.
For SQL dumps
If you are using the Alternate backup strategy, follow these steps:
- Download the proper distribution from the Download Archive.
- Confluence のホームディレクトリを元のサーバーからコピーします (OS が異なりますがここで行う操作はコピーです。インストールしてはなりません)。
- ホームディレクトリの場所を変更する場合は、Confluence install\confluence\WEB-INF\classes ディレクトリを開き、confluence-init.properties を編集して、'confluence.home=' で始まる行を修正します。
- 元のサーバーにローカルに格納されている外部データベースの場合は、データベースのダンプ・バックアップ用ネイティブツールを使用してデータベースのバックアップを手動で作成します。
- そのデータベースバックアップを移行先サーバーにコピーします。
- 移行先サーバーにおいて、元のサーバーと同一バージョンになるようにデータベースのインストールまたはアップグレードを行います。
- データベースバックアップをインポートします。
- 元サーバーと同一のユーザー名とパスワードを有するデータベースユーザーアカウントを作成します。
- 作成したデータベースユーザーに、インポートされたデータベースに対するフルアクセス権限を付与します。
- データベース管理ツールを使用して、そのユーザーがローカルホストからログインできることを確認します。
- データベース接続情報を変更するときは Confluence のホームディレクトリに移動して confluence.cfg.xml を編集します。接続 URL は、hibernate.connection.url で指定します。この URL が本番環境用データベースサーバーを示していないことを確認してください。
- ユーザー管理対象が内部ユーザーのみの場合はこのステップは不要です。JIRA または LDAP を組み込んでいる場合、それらのホストへのネットワークアクセスまたはローカルアクセス権限を元のサーバーと同様に移行先サーバーに付与します。
- Copy server.xml, atlassian-user.xml, osuser.xml, any patches, and any other customized files velocity or properties files.
- If appropriate, make sure no emails are sent out from the test system.
- Confluence を起動します。
- Go to Administration > License Details and add your development license key. You can generate one at http://my.atlassian.com. There are more details in Getting a License for a Staging Environment.
- If you configured Confluence as a Windows service, repeat those instructions.
- Add your development license key.
h2. Ensuring no contact with production systems
外部システムとの通信を遮断するため、インバウンドおよびアウトバウンド両方向のメールサービスを無効化します。
- 次のデータベースクエリを実行してグローバルなアウトバウンドメールを無効化します:
SELECT * FROM BANDANA WHERE BANDANAKEY = 'atlassian.confluence.smtp.mail.accounts';
|
- 次のデータベースクエリを実行してスペースレベルでのメールアーカイブ機能を無効化します:
SELECT * FROM BANDANA WHERE BANDANAKEY = 'atlassian.confluence.space.mailaccounts';
|
指定したアカウントを削除してもよければ、上記クエリの 「ELECT *」を「DELETE」に書き換えます。
以上の設定が完了すると、テストインスタンスを起動しても、メールの送受信は行われなくなります。なお、この他にプラグイン(SQL マクロなど)が本番環境システムにアクセスする可能性があることに留意してください。テスト インスタンスの起動後、これらのプラグインを速やかに無効にする必要があります。