Scheduling

BART、Barman、およびpgBackRestすべてのスケジュールので、スケジューリングを変更し、cronのを使用してバックアップが簡単にBART、Barman、およびpgBackRestに予定commands.Exampleコマンドを変更する必要があります

1.クラスタのフルバックアップを実行します ’例'

Tool

Command

BART

bart BACKUP –s example

Barman

barman backup example

pgBackRest

pgbackrest backup --type=full --stanza=example

2.すべての構成済みサーバーのフルバックアップを実行します

Tool

Command

BART

bart BACKUP –s all

Barman

barman backup all

pgBackRest

pgbackrest does not have an option to run for all stanzas with one command

3.増分バックアップを実行する

Tool

Command

BART

Retrieve the backup_id/backup_name for the parent (select a full for an incremental, select another inc/diff for a differential backup plan):bart SHOW-BACKUPS exampleNow supply the backup_id/backup_name as parent:bart BACKUP –s example --parent { backup_id \| | Barman|barman backup example –reuse-backup =link<br/>This can also be set in the configuratio n file at the global/server level withreuse_backup = link| | pgBackRest| Incremental:pgbackrest backup –type=incr –stanza=example<br/>Differentialpgbackrest backup –type=diff –stanza=example`

保持管理

  • BARTでは通常、cronジョブは、上のメンテナンスを実行するように設定されています BARTリポジトリ(bart MANAGE)。 -dオプションを指定すると、 廃止されたバックアップは自動的にクリーンアップされます WALアーカイブ)。

  • 同様に、Barmanは、上でメンテナンスを実行するためにcronコマンドを使用しています Barmanリポジトリ barman cron\。  barman cron\コマンド より多くのことを処理します(ストリームされたWALファイルを WALアーカイブディレクトリ)、およびすべてを実行するようにスケジュールする必要がありニーズ 分。 Barman rpmまたはdebianパッケージは自動的に barmanユーザとして毎分実行されるcronエントリー。

pgBackRestはエキスパイアコマンド(pgbackrestでメンテナンスを実行します エキスパイア)、ただしエキスパイアコマンドはそれぞれの後に自動的に実行されます 正常にバックアップ、個別にスケジュールする必要はありません。

新しいツールへの移行中に、適切な保存管理コマンドを実行makeようにcronが再構成されていることを確認してください。