@@ -1732,15 +1732,15 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1732
1732
header and checksum in every page and replace only invalid
1733
1733
pages and those with checksum and LSN not matching with
1734
1734
corresponding page in backup. This is the simplest,
1735
- the most fool-proof incremental mode.
1735
+ the most fool-proof incremental mode. Recommended to use by default.
1736
1736
</para >
1737
1737
</listitem >
1738
1738
<listitem >
1739
1739
<para >
1740
1740
LSN — read the <replaceable >pg_control</replaceable > in the
1741
1741
data directory to obtain redo LSN and redo TLI, which allows
1742
1742
to determine a point in history(shiftpoint), where data directory
1743
- state shifted from backup chain history. If shiftpoint is not within
1743
+ state shifted from target backup chain history. If shiftpoint is not within
1744
1744
reach of backup chain history, then restore is aborted.
1745
1745
If shiftpoint is within reach of backup chain history, then read
1746
1746
all data files in the data directory, validate header and checksum in
@@ -1755,7 +1755,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1755
1755
Second, the <replaceable >pg_control</replaceable > file must be
1756
1756
synched with state of data directory. This condition cannot checked
1757
1757
at the start of restore, so it is a user responsibility to ensure
1758
- that pg_control contain valid information. Because of that is not
1758
+ that pg_control contain valid information. Therefore it is not
1759
1759
recommended to use LSN mode in any situation, where pg_control has
1760
1760
been tampered with:
1761
1761
after <replaceable >pg_resetxlog</replaceable > execution,
@@ -1769,7 +1769,13 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1769
1769
</listitem >
1770
1770
</itemizedlist >
1771
1771
1772
- <para >
1772
+ <para >
1773
+ Regardless of chosen incremental mode, pg_probackup will check, that postmaster
1774
+ in given destination directory is not running and <varname >system-identifier</varname > is
1775
+ the same as in the backup.
1776
+ </para >
1777
+
1778
+ <para >
1773
1779
Suppose you want to return an old master as replica after switchover
1774
1780
using incremental restore in LSN mode:
1775
1781
</para >
@@ -1794,12 +1800,12 @@ INFO: Redundant files are removed, time elapsed: 1s
1794
1800
INFO: Start restoring backup files. PGDATA size: 15GB
1795
1801
INFO: Backup files are restored. Transfered bytes: 1693MB, time elapsed: 43s
1796
1802
INFO: Restore incremental ratio (less is better): 11% (1693MB/15GB)
1797
- INFO: Restore of backup QBRHT8 completed.
1803
+ INFO: Restore of backup QBRNBP completed.
1798
1804
</programlisting >
1799
1805
<note >
1800
1806
<para >
1801
1807
Incremental restore is possible only for backups with
1802
- <literal >program_version</literal > equal or greater than 2.3 .0.
1808
+ <literal >program_version</literal > equal or greater than 2.4 .0.
1803
1809
</para >
1804
1810
</note >
1805
1811
</refsect3 >
0 commit comments