@@ -3957,7 +3957,7 @@ pg_probackup delete -B <replaceable>backup_dir</replaceable> --instance <replace
3957
3957
<title >archive-push</title >
3958
3958
<programlisting >
3959
3959
pg_probackup archive-push -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable >
3960
- --wal-file-name=<replaceable >wal_file_name</replaceable >
3960
+ --wal-file-name=<replaceable >wal_file_name</replaceable > [--wal-file-path=< replaceable >wal_file_path</ replaceable >]
3961
3961
[--help] [--no-sync] [--compress] [--no-ready-rename] [--overwrite]
3962
3962
[-j <replaceable >num_threads</replaceable >] [--batch-size=<replaceable >batch_size</replaceable >]
3963
3963
[--archive-timeout=<replaceable >timeout</replaceable >]
@@ -3973,12 +3973,10 @@ pg_probackup archive-push -B <replaceable>backup_dir</replaceable> --instance <r
3973
3973
backup instance and the cluster do not match, this command
3974
3974
fails with the following error message: <literal >Refuse to push WAL
3975
3975
segment segment_name into archive. Instance parameters
3976
- mismatch.</literal > For each WAL file moved to the backup catalog, you
3977
- will see the following message in the <productname >PostgreSQL</productname > log file:
3978
- <literal >pg_probackup archive-push completed successfully</literal >.
3976
+ mismatch.</literal >
3979
3977
</para >
3980
3978
<para >
3981
- If the files to be copied already exist in the backup catalog,
3979
+ If the files to be copied already exists in the backup catalog,
3982
3980
<application >pg_probackup</application > computes and compares their checksums. If the
3983
3981
checksums match, <command >archive-push</command > skips the corresponding file and
3984
3982
returns a successful execution code. Otherwise, <command >archive-push</command >
@@ -4025,6 +4023,8 @@ pg_probackup archive-push -B <replaceable>backup_dir</replaceable> --instance <r
4025
4023
<title >archive-get</title >
4026
4024
<programlisting >
4027
4025
pg_probackup archive-get -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=<replaceable >wal_file_path</replaceable > --wal-file-name=<replaceable >wal_file_name</replaceable >
4026
+ [-j <replaceable >num_threads</replaceable >] [--batch-size=<replaceable >batch_size</replaceable >]
4027
+ [--prefetch-dir=<replaceable >prefetch_dir_path</replaceable >] [--no-validate-wal]
4028
4028
[--help] [<replaceable >remote_options</replaceable >] [<replaceable >logging_options</replaceable >]
4029
4029
</programlisting >
4030
4030
<para >
@@ -4035,6 +4035,17 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
4035
4035
restoring backups using a WAL archive. You do not need to set
4036
4036
it manually.
4037
4037
</para >
4038
+
4039
+ <para >
4040
+ To speed up recovery, you can specify the <option >-j</option > option
4041
+ to run <command >archive-get</command > on multiple threads.
4042
+ If you provide the <option >--batch-size</option > option, WAL segments
4043
+ will be copied in batches of the specified size.
4044
+ </para >
4045
+
4046
+ <para >
4047
+ For details, see section <link linkend =" pbk-archiving-options" >Archiving Options</link >.
4048
+ </para >
4038
4049
</refsect3 >
4039
4050
</refsect2 >
4040
4051
<refsect2 id =" pbk-options" >
@@ -4777,7 +4788,8 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
4777
4788
<listitem >
4778
4789
<para >
4779
4790
Sets the maximum number of files that can be copied into the archive
4780
- by a single <command >archive-push</command > process.
4791
+ by a single <command >archive-push</command > process, or from
4792
+ the archive by a single <command >archive-get</command > process.
4781
4793
</para >
4782
4794
</listitem >
4783
4795
</varlistentry >
@@ -4789,6 +4801,7 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
4789
4801
Sets the timeout for considering existing <literal >.part</literal >
4790
4802
files to be stale. By default, <application >pg_probackup</application >
4791
4803
waits 300 seconds.
4804
+ This option can be used only with <xref linkend =" pbk-archive-push" /> command.
4792
4805
</para >
4793
4806
</listitem >
4794
4807
</varlistentry >
@@ -4800,6 +4813,7 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
4800
4813
Do not rename status files in the <literal >archive_status</literal > directory.
4801
4814
This option should be used only if <parameter >archive_command</parameter >
4802
4815
contains multiple commands.
4816
+ This option can be used only with <xref linkend =" pbk-archive-push" /> command.
4803
4817
</para >
4804
4818
</listitem >
4805
4819
</varlistentry >
@@ -4811,6 +4825,31 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
4811
4825
Do not sync copied WAL files to disk. You can use this flag to speed
4812
4826
up archiving process. Using this flag can result in WAL archive
4813
4827
corruption in case of operating system or hardware crash.
4828
+ This option can be used only with <xref linkend =" pbk-archive-push" /> command.
4829
+ </para >
4830
+ </listitem >
4831
+ </varlistentry >
4832
+
4833
+ <varlistentry >
4834
+ <term ><option >--prefetch-dir=<replaceable >path</replaceable ></option ></term >
4835
+ <listitem >
4836
+ <para >
4837
+ Directory used to store prefetched WAL segments if <option >--batch-size</option > option is used.
4838
+ Directory must be located on the same filesystem and on the same mountpoint the
4839
+ <literal >PGDATA/pg_wal</literal > is located.
4840
+ By default files are stored in <literal >PGDATA/pg_wal/pbk_prefetch</literal > directory.
4841
+ This option can be used only with <xref linkend =" pbk-archive-get" /> command.
4842
+ </para >
4843
+ </listitem >
4844
+ </varlistentry >
4845
+
4846
+ <varlistentry >
4847
+ <term ><option >--no-validate-wal</option ></term >
4848
+ <listitem >
4849
+ <para >
4850
+ Do not validate prefetched WAL file before using it.
4851
+ Use this option if you want to increase the speed of recovery.
4852
+ This option can be used only with <xref linkend =" pbk-archive-get" /> command.
4814
4853
</para >
4815
4854
</listitem >
4816
4855
</varlistentry >
0 commit comments