From 0410ff84084010ca0210298fdf156ede2d46eef7 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Mon, 22 Jun 2020 13:49:47 +0300 Subject: [PATCH] [Issue #228] documentation update --- doc/pgprobackup.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/doc/pgprobackup.xml b/doc/pgprobackup.xml index efbbf980..f62c68d9 100644 --- a/doc/pgprobackup.xml +++ b/doc/pgprobackup.xml @@ -1732,7 +1732,7 @@ pg_probackup restore -B backup_dir --instance @@ -1740,7 +1740,7 @@ pg_probackup restore -B backup_dir --instance pg_control in the data directory to obtain redo LSN and redo TLI, which allows to determine a point in history(shiftpoint), where data directory - state shifted from backup chain history. If shiftpoint is not within + state shifted from target backup chain history. If shiftpoint is not within reach of backup chain history, then restore is aborted. If shiftpoint is within reach of backup chain history, then read all data files in the data directory, validate header and checksum in @@ -1755,7 +1755,7 @@ pg_probackup restore -B backup_dir --instance pg_control file must be synched with state of data directory. This condition cannot checked at the start of restore, so it is a user responsibility to ensure - that pg_control contain valid information. Because of that is not + that pg_control contain valid information. Therefore it is not recommended to use LSN mode in any situation, where pg_control has been tampered with: after pg_resetxlog execution, @@ -1769,7 +1769,13 @@ pg_probackup restore -B backup_dir --instance - + + Regardless of chosen incremental mode, pg_probackup will check, that postmaster + in given destination directory is not running and system-identifier is + the same as in the backup. + + + Suppose you want to return an old master as replica after switchover using incremental restore in LSN mode: @@ -1794,12 +1800,12 @@ INFO: Redundant files are removed, time elapsed: 1s INFO: Start restoring backup files. PGDATA size: 15GB INFO: Backup files are restored. Transfered bytes: 1693MB, time elapsed: 43s INFO: Restore incremental ratio (less is better): 11% (1693MB/15GB) -INFO: Restore of backup QBRHT8 completed. +INFO: Restore of backup QBRNBP completed. Incremental restore is possible only for backups with - program_version equal or greater than 2.3.0. + program_version equal or greater than 2.4.0.