本番環境バックアップ ストラテジー

Although Confluence can provide a scheduled XML backup, this backup method is only suitable for small sites, test sites, or in addition to database and directory backups.

Since Confluence 8.3, we have changed the way we do backup and restore. Learn more about these changes in the Confluence 8.3 Release Notes.

Scheduled backups don't use this new approach; it still uses our legacy system. We recommend you stop using scheduled backups unless required because it contains many of the issues resolved in the new system.


本番システムのバックアップ ソリューションの確立

We recommend establishing a robust database backup strategy:

On this page:


関連ページ

  • Create a backup of your database using the tools provided by your database. If your database doesn't support online backups, you will need to stop Confluence while you do this. 

  • Create a copy of your home directory (both local home and shared home for Data Center).

Once this is in place, you can disable any scheduled backup job you have set.

Having a backup of your database and home directories is more reliable and easier to restore than a large XML backup

バックアップの必要があるのはどのファイルか

ホーム ディレクトリ全体をバックアップするのが最も安全なオプションですが、大半のファイルとディレクトリは起動時に読み込まれるものであるため、無視できます。最低でも、次のファイルとディレクトリをバックアップする必要があります。

  • <conf-home>/confluence.cfg.xml
  • <conf-home>/attachments  (スペースが課題の場合は 抽出テキスト ファイルを除外できます。)

ディレクトリの残りの部分は、起動時に自動的に読み込まれます。次のディレクトリもバックアップしておくとよいでしょう。

  • <conf-home>/config – ehcache.xml ファイルを変更している場合
  • <conf-home>/index - サイトが大規模である場合やインデックスの再作成に時間がかかる場合 - このファイルを使用すれば、復元時にインデックスを完全に再作成する必要を避けられます。

ホーム ディレクトリの場所はインストール時に設定され、confluence.init.properties ファイルで指定されます。自動インストーラーで作成されたインストールの場合、既定の場所は次のとおりです。

  • Windows   C:\Program Files\Atlassian\Application Data\Confluence
  • Linux    /var/atlassian/application-data/confluence

クラスタ化されたインスタンスの場合のみ: 共有のホーム ディレクトリ全体をバックアップするのが最も安全なオプションですが、いくつかのファイルとディレクトリは実行時に読み込まれるため、無視できます。

  • <conf-home>/thumbnails
  • <conf-home>/viewfile. 

バックアップ方法

データベースをバックアップするコマンドは、データベース ベンダーによって異なります。たとえば PostgreSQL のコマンドは、pg_dump dbname > outfile です。  

詳細については、使用する特定のデータベース用のドキュメントを参照してください。 

復元方法

サーバー間の Confluence の移行 に関するガイドに、この手法を使用してバックアップを復元する手順を記載しています。

その他のプロセス

XML 形式のサイト バックアップは、Confluence でのその他のプロセス (サーバー間の移動、別のデータベースへの切り替えなど) でも使用できます。上述のバックアップ戦略はこれらのプロセスでも機能します。

If you would like help selecting the right migration tools, or help with the migration itself, reach out to one of our Atlassian Solution Partners.


最終更新日 2023 年 5 月 22 日

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

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