@@ -782,12 +782,14 @@ ALTER ROLE backup WITH REPLICATION;
782
782
parameter, as follows:
783
783
</para >
784
784
<programlisting >
785
- archive_command = 'pg_probackup archive-push -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f [<replaceable >remote_options</replaceable >]'
785
+ archive_command = '< replaceable >install_dir</ replaceable >/ pg_probackup archive-push -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f [<replaceable >remote_options</replaceable >]'
786
786
</programlisting >
787
787
</listitem >
788
788
</itemizedlist >
789
789
<para >
790
- where <replaceable >backup_dir</replaceable > and
790
+ where <replaceable >install_dir</replaceable > is the
791
+ installation directory of the <application >pg_probackup</application >
792
+ version you are going to use, <replaceable >backup_dir</replaceable > and
791
793
<replaceable >instance_name</replaceable > refer to the already
792
794
initialized backup catalog instance for this database cluster,
793
795
and <link linkend =" pbk-remote-server-opts" >remote_options</link >
@@ -1869,15 +1871,14 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1869
1871
in <filename >recovery.conf</filename >:
1870
1872
</para >
1871
1873
<programlisting >
1872
- # recovery.conf generated by pg_probackup 2.1.5
1873
- restore_command = 'pg_probackup archive-get -B backup_dir --instance instance_name --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
1874
+ restore_command = '<replaceable >install_dir</replaceable >/pg_probackup archive-get -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
1874
1875
</programlisting >
1875
1876
<para >
1876
1877
Alternatively, you can use the <option >--restore-command</option >
1877
1878
option to provide the entire <parameter >restore_command</parameter >:
1878
1879
</para >
1879
1880
<programlisting >
1880
- pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --remote-user=postgres --remote-host=192.168.0.2 --remote-port=2302 --restore-command='pg_probackup archive-get -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
1881
+ pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --remote-user=postgres --remote-host=192.168.0.2 --remote-port=2302 --restore-command='< replaceable >install_dir</ replaceable >/ pg_probackup archive-get -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
1881
1882
</programlisting >
1882
1883
<note >
1883
1884
<para >
0 commit comments