Skip to content

Commit 4000349

Browse files
author
Liudmila Mantrova
committed
DOC: add pbk path to archive_command/restore_command - PGPRO-3240
1 parent b5564e8 commit 4000349

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/pgprobackup.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -782,12 +782,14 @@ ALTER ROLE backup WITH REPLICATION;
782782
parameter, as follows:
783783
</para>
784784
<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>]'
786786
</programlisting>
787787
</listitem>
788788
</itemizedlist>
789789
<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
791793
<replaceable>instance_name</replaceable> refer to the already
792794
initialized backup catalog instance for this database cluster,
793795
and <link linkend="pbk-remote-server-opts">remote_options</link>
@@ -1869,15 +1871,14 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
18691871
in <filename>recovery.conf</filename>:
18701872
</para>
18711873
<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'
18741875
</programlisting>
18751876
<para>
18761877
Alternatively, you can use the <option>--restore-command</option>
18771878
option to provide the entire <parameter>restore_command</parameter>:
18781879
</para>
18791880
<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'
18811882
</programlisting>
18821883
<note>
18831884
<para>

0 commit comments

Comments
 (0)