@@ -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,
@@ -3605,8 +3606,11 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3605
3606
[--help] [-D <replaceable >data_dir</replaceable >] [-i <replaceable >backup_id</replaceable >]
3606
3607
[-j <replaceable >num_threads</replaceable >] [--progress]
3607
3608
[-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 >]
3610
3614
[<replaceable >recovery_target_options</replaceable >] [<replaceable >logging_options</replaceable >] [<replaceable >remote_options</replaceable >]
3611
3615
[<replaceable >partial_restore_options</replaceable >] [<replaceable >remote_wal_archive_options</replaceable >]
3612
3616
</programlisting >
@@ -3644,6 +3648,21 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3644
3648
</listitem >
3645
3649
</varlistentry >
3646
3650
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
+
3647
3666
<varlistentry >
3648
3667
<term ><option >-T <replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
3649
3668
<term ><option >--tablespace-mapping=<replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
0 commit comments