@@ -1634,13 +1634,14 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1634
1634
<para >
1635
1635
If you restore <link linkend =" pbk-archive-mode" >ARCHIVE</link > backups,
1636
1636
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
1638
1638
<literal >restore</literal > command to set up a standby server,
1639
1639
<application >pg_probackup</application > creates a recovery configuration
1640
1640
file once all data files are copied into the target directory. This file
1641
1641
includes the minimal settings required for recovery, except for the password in the
1642
1642
<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.
1644
1645
For <productname >PostgreSQL</productname > 11 or lower,
1645
1646
recovery settings are written into the <filename >recovery.conf</filename >
1646
1647
file. Starting from <productname >PostgreSQL</productname > 12,
@@ -3584,6 +3585,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3584
3585
[-T <replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable >] [--external-mapping=<replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable >] [--skip-external-dirs]
3585
3586
[-R | --restore-as-replica] [--no-validate] [--skip-block-validation] [--force]
3586
3587
[--restore-command=<replaceable >cmdline</replaceable >]
3588
+ [--primary-conninfo=<replaceable >primary_conninfo</replaceable >]
3587
3589
[<replaceable >recovery_target_options</replaceable >] [<replaceable >logging_options</replaceable >] [<replaceable >remote_options</replaceable >]
3588
3590
[<replaceable >partial_restore_options</replaceable >] [<replaceable >remote_wal_archive_options</replaceable >]
3589
3591
</programlisting >
@@ -3621,6 +3623,21 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3621
3623
</listitem >
3622
3624
</varlistentry >
3623
3625
3626
+ <varlistentry >
3627
+ <term ><option >--primary-conninfo=<replaceable >primary_conninfo</replaceable ></option ></term >
3628
+ <listitem >
3629
+ <para >
3630
+ Sets the
3631
+ <ulink url =" https://postgrespro.com/docs/postgresql/current/runtime-config-replication.html#GUC-PRIMARY-CONNINFO" >primary_conninfo</ulink >
3632
+ parameter to the specified value.
3633
+ This option will be ignored if used without the <option >-R</option > flag.
3634
+ </para >
3635
+ <para >
3636
+ Example: <literal >--primary-conninfo='host=192.168.1.50 port=5432 user=foo password=foopass'</literal >
3637
+ </para >
3638
+ </listitem >
3639
+ </varlistentry >
3640
+
3624
3641
<varlistentry >
3625
3642
<term ><option >-T <replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
3626
3643
<term ><option >--tablespace-mapping=<replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
0 commit comments