Scheduling a Backup
Since Confluence 8.3, we have changed the way we perform 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.
See Production Backup Strategy for recommended methods.
Confluence では、毎日一定の時間にサイトのフル エクスポートを実行し、データのバックアップを自動で作成できます。
If you have a Confluence Data Center license, the scheduled backup is disabled by default. It is known to cause outages in large sites.
Confluence Server ライセンスを持っている場合、スケジュールされた XML バックアップは既定で毎日午前 2:00 に実行されます。
The zipped XML backup file will be named 'backup-yyyy_MM_dd
', and stored in the backups
directory of your Confluence Home directory. For example, <shared-home>/backups
On this page:
This page describes how you can:
enable or disable the scheduled backups (in Confluence Data Center it is disabled by default)
命名規則の変更
添付ファイルの追加または除外
バックアップを別の時刻にスケジュール
store the backup files in a different location
You'll need System Administrator permissions to do this.
Configure automated backups
To configure these daily scheduled XML site backups:
- Go to > Backup administration > General Configuration
- Select Edit to:
- change the backup file name prefix
- use a different date format (uses the syntax described in simple date format)
- choose whether to include or exclude attachments from backups (attachments are included by default)
- choose to store backup files in a custom location (this is disabled by default - see Enabling backup path configuration below)
- Save your changes
Enable Backup Path Configuration
セキュリティ上の理由により、[バックアップ管理] 画面からバックアップ ファイルの場所を変更する機能は既定で無効に設定されています。
カスタム バックアップ パスを有効にするには:
- Confluence を停止します。
- Edit the
<confluence-home>/confluence.cfg.xml
file 次のプロパティの値を true に変更します。
<property name="admin.ui.allow.daily.backup.custom.location">true</property>
- Restart Confluence to pick up the change
- Go to > Backup administration to enter the new path > General Configuration
ディレクトリは、ローカルドライブまたはマウントされたネットワークドライブ上のいずれかにする必要があります。マウントされたドライブが、仮想マシンイメージではなく、物理サーバー上にあることを確認してください。
Confluence を新しいサーバーへ移行したり、アーキテクチャを変更した場合は、このパスを更新する必要があります。カスタム パスを有効化した場合、ホーム ディレクトリの場所を変更しても、バックアップ ファイル パスは自動更新されません。
Enable/disable scheduled backups
If you have an appropriate Production Backup Strategy, you should disable automatic backups to save on disk space.
To turn on/off scheduled backups:
- Go to > Scheduled jobs > General Configuration
- Choose Disable next to the Back up Confluence job
バックアップ スケジュールの変更
バックアップの頻度を変更、またはバックアップの 1 日での実行回数を変更するには:
- Go to > Scheduled jobs > General Configuration
- Confluence のバックアップ ジョブの隣にある 編集 を選択します。
- Enter the new schedule using a cron expression
The time zone used for the scheduled job is taken from the server on which Confluence is running. Go to > System Information to look up the System Time > General Configuration
Perform manual backups
If you need a one-off XML backup, you can manually perform a site export. See Manually Backing Up the Site for more information.
These backup files are not saved to the same location as the scheduled backups, they are saved in the restore directory of your Confluence Home directory, for example <shared-home>/restore/site.