From 7ac5ef096ddd762063daf8d192d9f9060a617e59 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Wed, 8 Apr 2020 23:12:40 +0300 Subject: [PATCH] [Issue #185] documentation update --- doc/pgprobackup.xml | 51 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/doc/pgprobackup.xml b/doc/pgprobackup.xml index 431a60fe..868a04bc 100644 --- a/doc/pgprobackup.xml +++ b/doc/pgprobackup.xml @@ -3957,7 +3957,7 @@ pg_probackup delete -B backup_dir --instance archive-push pg_probackup archive-push -B backup_dir --instance instance_name ---wal-file-name=wal_file_name +--wal-file-name=wal_file_name [--wal-file-path=wal_file_path] [--help] [--no-sync] [--compress] [--no-ready-rename] [--overwrite] [-j num_threads] [--batch-size=batch_size] [--archive-timeout=timeout] @@ -3973,12 +3973,10 @@ pg_probackup archive-push -B backup_dir --instance Refuse to push WAL segment segment_name into archive. Instance parameters - mismatch. For each WAL file moved to the backup catalog, you - will see the following message in the PostgreSQL log file: - pg_probackup archive-push completed successfully. + mismatch. - If the files to be copied already exist in the backup catalog, + If the files to be copied already exists in the backup catalog, pg_probackup computes and compares their checksums. If the checksums match, archive-push skips the corresponding file and returns a successful execution code. Otherwise, archive-push @@ -4025,6 +4023,8 @@ pg_probackup archive-push -B backup_dir --instance archive-get pg_probackup archive-get -B backup_dir --instance instance_name --wal-file-path=wal_file_path --wal-file-name=wal_file_name +[-j num_threads] [--batch-size=batch_size] +[--prefetch-dir=prefetch_dir_path] [--no-validate-wal] [--help] [remote_options] [logging_options] @@ -4035,6 +4035,17 @@ pg_probackup archive-get -B backup_dir --instance + + + To speed up recovery, you can specify the option + to run archive-get on multiple threads. + If you provide the option, WAL segments + will be copied in batches of the specified size. + + + + For details, see section Archiving Options. + @@ -4777,7 +4788,8 @@ pg_probackup archive-get -B backup_dir --instance Sets the maximum number of files that can be copied into the archive - by a single archive-push process. + by a single archive-push process, or from + the archive by a single archive-get process. @@ -4789,6 +4801,7 @@ pg_probackup archive-get -B backup_dir --instance .part files to be stale. By default, pg_probackup waits 300 seconds. + This option can be used only with command. @@ -4800,6 +4813,7 @@ pg_probackup archive-get -B backup_dir --instance archive_status directory. This option should be used only if archive_command contains multiple commands. + This option can be used only with command. @@ -4811,6 +4825,31 @@ pg_probackup archive-get -B backup_dir --instance command. + + + + + + + + + Directory used to store prefetched WAL segments if option is used. + Directory must be located on the same filesystem and on the same mountpoint the + PGDATA/pg_wal is located. + By default files are stored in PGDATA/pg_wal/pbk_prefetch directory. + This option can be used only with command. + + + + + + + + + Do not validate prefetched WAL file before using it. + Use this option if you want to increase the speed of recovery. + This option can be used only with command.