11<!--
2- doc/src/sgml/ref/pg_validatebackup .sgml
2+ doc/src/sgml/ref/pg_verifybackup .sgml
33PostgreSQL documentation
44-->
55
6- <refentry id="app-pgvalidatebackup ">
7- <indexterm zone="app-pgvalidatebackup ">
8- <primary>pg_validatebackup </primary>
6+ <refentry id="app-pgverifybackup ">
7+ <indexterm zone="app-pgverifybackup ">
8+ <primary>pg_verifybackup </primary>
99 </indexterm>
1010
1111 <refmeta>
12- <refentrytitle>pg_validatebackup </refentrytitle>
12+ <refentrytitle>pg_verifybackup </refentrytitle>
1313 <manvolnum>1</manvolnum>
1414 <refmiscinfo>Application</refmiscinfo>
1515 </refmeta>
1616
1717 <refnamediv>
18- <refname>pg_validatebackup </refname>
18+ <refname>pg_verifybackup </refname>
1919 <refpurpose>verify the integrity of a base backup of a
2020 <productname>PostgreSQL</productname> cluster</refpurpose>
2121 </refnamediv>
2222
2323 <refsynopsisdiv>
2424 <cmdsynopsis>
25- <command>pg_validatebackup </command>
25+ <command>pg_verifybackup </command>
2626 <arg rep="repeat"><replaceable>option</replaceable></arg>
2727 </cmdsynopsis>
2828 </refsynopsisdiv>
@@ -32,7 +32,7 @@ PostgreSQL documentation
3232 Description
3333 </title>
3434 <para>
35- <application>pg_validatebackup </application> is used to check the
35+ <application>pg_verifybackup </application> is used to check the
3636 integrity of a database cluster backup taken using
3737 <command>pg_basebackup</command> against a
3838 <literal>backup_manifest</literal> generated by the server at the time
@@ -41,27 +41,27 @@ PostgreSQL documentation
4141 </para>
4242
4343 <para>
44- It is important to note that the validation which is performed by
45- <application>pg_validatebackup </application> does not and can not include
44+ It is important to note that that the validation which is performed by
45+ <application>pg_verifybackup </application> does not and can not include
4646 every check which will be performed by a running server when attempting
4747 to make use of the backup. Even if you use this tool, you should still
4848 perform test restores and verify that the resulting databases work as
4949 expected and that they appear to contain the correct data. However,
50- <application>pg_validatebackup </application> can detect many problems
50+ <application>pg_verifybackup </application> can detect many problems
5151 that commonly occur due to storage problems or user error.
5252 </para>
5353
5454 <para>
5555 Backup verification proceeds in four stages. First,
56- <literal>pg_validatebackup </literal> reads the
56+ <literal>pg_verifybackup </literal> reads the
5757 <literal>backup_manifest</literal> file. If that file
5858 does not exist, cannot be read, is malformed, or fails verification
59- against its own internal checksum, <literal>pg_validatebackup </literal>
59+ against its own internal checksum, <literal>pg_verifybackup </literal>
6060 will terminate with a fatal error.
6161 </para>
6262
6363 <para>
64- Second, <literal>pg_validatebackup </literal> will attempt to verify that
64+ Second, <literal>pg_verifybackup </literal> will attempt to verify that
6565 the data files currently stored on disk are exactly the same as the data
6666 files which the server intended to send, with some exceptions that are
6767 described below. Extra and missing files will be detected, with a few
@@ -79,7 +79,7 @@ PostgreSQL documentation
7979 </para>
8080
8181 <para>
82- Next, <literal>pg_validatebackup </literal> will checksum all the files,
82+ Next, <literal>pg_verifybackup </literal> will checksum all the files,
8383 compare the checksums against the values in the manifest, and emit errors
8484 for any files for which the computed checksum does not match the
8585 checksum stored in the manifest. This step is not performed for any files
@@ -89,12 +89,12 @@ PostgreSQL documentation
8989 </para>
9090
9191 <para>
92- Finally, <literal>pg_validatebackup </literal> will use the manifest to
92+ Finally, <literal>pg_verifybackup </literal> will use the manifest to
9393 verify that the write-ahead log records which will be needed to recover
9494 the backup are present and that they can be read and parsed. The
9595 <literal>backup_manifest</literal> contains information about which
9696 write-ahead log records will be needed, and
97- <literal>pg_validatebackup </literal> will use that information to
97+ <literal>pg_verifybackup </literal> will use that information to
9898 invoke <literal>pg_waldump</literal> to parse those write-ahed log
9999 records. The <literal>--quiet</literal> flag will be used, so that
100100 <literal>pg_waldump</literal> will only report errors, without producing
@@ -112,7 +112,7 @@ PostgreSQL documentation
112112 are present, they will not be checked by this tool, although
113113 a separate invocation of <literal>pg_waldump</literal> could be used for
114114 that purpose. Also note that WAL verification is version-specific: you
115- must use the version of <literal>pg_validatebackup </literal>, and thus of
115+ must use the version of <literal>pg_verifybackup </literal>, and thus of
116116 <literal>pg_waldump</literal>, which pertains to the backup being checked.
117117 In contrast, the data file integrity checks should work with any version
118118 of the server that generates a <literal>backup_manifest</literal> file.
@@ -184,7 +184,7 @@ PostgreSQL documentation
184184 <term><option>--quiet</option></term>
185185 <listitem>
186186 <para>
187- Don't print anything when a backup is successfully validated .
187+ Don't print anything when a backup is successfully verified .
188188 </para>
189189 </listitem>
190190 </varlistentry>
@@ -194,7 +194,7 @@ PostgreSQL documentation
194194 <term><option>--skip-checksums</option></term>
195195 <listitem>
196196 <para>
197- Do not validate data file checksums. The presence or absence of
197+ Do not verify data file checksums. The presence or absence of
198198 files and the sizes of those files will still be checked. This is
199199 much faster, because the files themselves do not need to be read.
200200 </para>
@@ -224,7 +224,7 @@ PostgreSQL documentation
224224 <term><option>--version</option></term>
225225 <listitem>
226226 <para>
227- Print the <application>pg_validatebackup </application> version and exit.
227+ Print the <application>pg_verifybackup </application> version and exit.
228228 </para>
229229 </listitem>
230230 </varlistentry>
@@ -234,7 +234,7 @@ PostgreSQL documentation
234234 <term><option>--help</option></term>
235235 <listitem>
236236 <para>
237- Show help about <application>pg_validatebackup </application> command
237+ Show help about <application>pg_verifybackup </application> command
238238 line arguments, and exit.
239239 </para>
240240 </listitem>
@@ -250,31 +250,31 @@ PostgreSQL documentation
250250
251251 <para>
252252 To create a base backup of the server at <literal>mydbserver</literal> and
253- validate the integrity of the backup:
253+ verify the integrity of the backup:
254254<screen>
255255<prompt>$</prompt> <userinput>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</userinput>
256- <prompt>$</prompt> <userinput>pg_validatebackup /usr/local/pgsql/data</userinput>
256+ <prompt>$</prompt> <userinput>pg_verifybackup /usr/local/pgsql/data</userinput>
257257</screen>
258258 </para>
259259
260260 <para>
261261 To create a base backup of the server at <literal>mydbserver</literal>, move
262- the manifest somewhere outside the backup directory, and validate the
262+ the manifest somewhere outside the backup directory, and verify the
263263 backup:
264264<screen>
265265<prompt>$</prompt> <userinput>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</userinput>
266266<prompt>$</prompt> <userinput>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</userinput>
267- <prompt>$</prompt> <userinput>pg_validatebackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</userinput>
267+ <prompt>$</prompt> <userinput>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</userinput>
268268</screen>
269269 </para>
270270
271271 <para>
272- To validate a backup while ignoring a file that was added manually to the
272+ To verify a backup while ignoring a file that was added manually to the
273273 backup directory, and also skipping checksum verification:
274274<screen>
275275<prompt>$</prompt> <userinput>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</userinput>
276276<prompt>$</prompt> <userinput>edit /usr/local/pgsql/data/note.to.self</userinput>
277- <prompt>$</prompt> <userinput>pg_validatebackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</userinput>
277+ <prompt>$</prompt> <userinput>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</userinput>
278278</screen>
279279 </para>
280280
0 commit comments