Windowsベースのサーバーのセットアップ方法

WALアーカイブとバックアップの両方にストリーミング接続を使用して、 Windowsで実行されているPostgreSQLサーバーをバックアップできます。

重要

This feature is still experimental because it is not yet part of our continuous integration system.

ストリーミング接続のセットアップについて前述のすべての手順に従います。

警告

: At this moment, pg_basebackup interoperability from Windows to Linux is still experimental. If you are having issues taking a backup from a Windows server and your PostgreSQL locale is not in English, a possible workaround for the issue is instructing your PostgreSQL to emit messages in English. You can do this by putting the following parameter in your postgresql.conf file:

ini lc_messages = English これは問題を解決すると報告されています。

通常どおりサーバーをバックアップできます。

リモート回復はWindowsサーバーではサポートされていないため、 Barmanサーバーでクラスターをローカルに回復してから、 Windowsサーバー上のすべてのファイルをコピーするか、PostgreSQLサーバーとBarmanサーバー間で共有されるフォルダーを使用する必要があります。

さらに、PostgreSQLの実行を選択したシステムユーザーが、復元されたデータにアクセスするために必要な権限を持っていることを確認してください。基本的に、PostgreSQLデータディレクトリを完全に制御する必要があります。