@@ -1634,13 +1634,14 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
16341634 <para >
16351635 If you restore <link linkend =" pbk-archive-mode" >ARCHIVE</link > backups,
16361636 perform <link linkend =" pbk-performing-point-in-time-pitr-recovery" >PITR</link >,
1637- or specify the <literal >--restore-as-replica</literal > option with the
1637+ or specify the <literal >--restore-as-replica</literal > flag with the
16381638 <literal >restore</literal > command to set up a standby server,
16391639 <application >pg_probackup</application > creates a recovery configuration
16401640 file once all data files are copied into the target directory. This file
16411641 includes the minimal settings required for recovery, except for the password in the
16421642 <ulink url =" https://postgrespro.com/docs/postgresql/current/runtime-config-replication.html#GUC-PRIMARY-CONNINFO" >primary_conninfo</ulink >
1643- parameter; you have to add the password manually, if required.
1643+ parameter; you have to add the password manually or use
1644+ the <literal >--primary-conninfo</literal > option, if required.
16441645 For <productname >PostgreSQL</productname > 11 or lower,
16451646 recovery settings are written into the <filename >recovery.conf</filename >
16461647 file. Starting from <productname >PostgreSQL</productname > 12,
@@ -3605,8 +3606,11 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
36053606[--help] [-D <replaceable >data_dir</replaceable >] [-i <replaceable >backup_id</replaceable >]
36063607[-j <replaceable >num_threads</replaceable >] [--progress]
36073608[-T <replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable >] [--external-mapping=<replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable >] [--skip-external-dirs]
3608- [-R | --restore-as-replica] [--no-validate] [--skip-block-validation] [--force]
3609- [--restore-command=<replaceable >cmdline</replaceable >] [--no-sync]
3609+ [-R | --restore-as-replica] [--no-validate] [--skip-block-validation]
3610+ [--force] [--no-sync]
3611+ [--restore-command=<replaceable >cmdline</replaceable >]
3612+ [--restore-command=<replaceable >cmdline</replaceable >]
3613+ [--primary-conninfo=<replaceable >primary_conninfo</replaceable >]
36103614[<replaceable >recovery_target_options</replaceable >] [<replaceable >logging_options</replaceable >] [<replaceable >remote_options</replaceable >]
36113615[<replaceable >partial_restore_options</replaceable >] [<replaceable >remote_wal_archive_options</replaceable >]
36123616</programlisting >
@@ -3644,6 +3648,21 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
36443648 </listitem >
36453649 </varlistentry >
36463650
3651+ <varlistentry >
3652+ <term ><option >--primary-conninfo=<replaceable >primary_conninfo</replaceable ></option ></term >
3653+ <listitem >
3654+ <para >
3655+ Sets the
3656+ <ulink url =" https://postgrespro.com/docs/postgresql/current/runtime-config-replication.html#GUC-PRIMARY-CONNINFO" >primary_conninfo</ulink >
3657+ parameter to the specified value.
3658+ This option will be ignored unless the <option >-R</option > flag if specified.
3659+ </para >
3660+ <para >
3661+ Example: <literal >--primary-conninfo='host=192.168.1.50 port=5432 user=foo password=foopass'</literal >
3662+ </para >
3663+ </listitem >
3664+ </varlistentry >
3665+
36473666 <varlistentry >
36483667<term ><option >-T <replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
36493668<term ><option >--tablespace-mapping=<replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
0 commit comments