From d42e72016c9fcd0db00dafa7951a33bb2dc340f1 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Sun, 23 Feb 2020 22:51:58 +0300 Subject: [PATCH] [Issue #171] documentation --- doc/pgprobackup.xml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/pgprobackup.xml b/doc/pgprobackup.xml index fe5109e6..26ce99c9 100644 --- a/doc/pgprobackup.xml +++ b/doc/pgprobackup.xml @@ -1634,13 +1634,14 @@ pg_probackup restore -B backup_dir --instance If you restore ARCHIVE backups, perform PITR, - or specify the --restore-as-replica option with the + or specify the --restore-as-replica flag with the restore command to set up a standby server, pg_probackup creates a recovery configuration file once all data files are copied into the target directory. This file includes the minimal settings required for recovery, except for the password in the primary_conninfo - parameter; you have to add the password manually, if required. + parameter; you have to add the password manually or use + the --primary-conninfo option, if required. For PostgreSQL 11 or lower, recovery settings are written into the recovery.conf file. Starting from PostgreSQL 12, @@ -3584,6 +3585,7 @@ pg_probackup restore -B backup_dir --instance OLDDIR=NEWDIR] [--external-mapping=OLDDIR=NEWDIR] [--skip-external-dirs] [-R | --restore-as-replica] [--no-validate] [--skip-block-validation] [--force] [--restore-command=cmdline] +[--primary-conninfo=primary_conninfo] [recovery_target_options] [logging_options] [remote_options] [partial_restore_options] [remote_wal_archive_options] @@ -3621,6 +3623,21 @@ pg_probackup restore -B backup_dir --instance + + + + + Sets the + primary_conninfo + parameter to the specified value. + This option will be ignored if used without the flag. + + + Example: --primary-conninfo='host=192.168.1.50 port=5432 user=foo password=foopass' + + + +