1
1
<!--
2
- doc/src/sgml/ref/pg_validatebackup .sgml
2
+ doc/src/sgml/ref/pg_verifybackup .sgml
3
3
PostgreSQL documentation
4
4
-->
5
5
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>
9
9
</indexterm>
10
10
11
11
<refmeta>
12
- <refentrytitle>pg_validatebackup </refentrytitle>
12
+ <refentrytitle>pg_verifybackup </refentrytitle>
13
13
<manvolnum>1</manvolnum>
14
14
<refmiscinfo>Application</refmiscinfo>
15
15
</refmeta>
16
16
17
17
<refnamediv>
18
- <refname>pg_validatebackup </refname>
18
+ <refname>pg_verifybackup </refname>
19
19
<refpurpose>verify the integrity of a base backup of a
20
20
<productname>PostgreSQL</productname> cluster</refpurpose>
21
21
</refnamediv>
22
22
23
23
<refsynopsisdiv>
24
24
<cmdsynopsis>
25
- <command>pg_validatebackup </command>
25
+ <command>pg_verifybackup </command>
26
26
<arg rep="repeat"><replaceable>option</replaceable></arg>
27
27
</cmdsynopsis>
28
28
</refsynopsisdiv>
@@ -32,7 +32,7 @@ PostgreSQL documentation
32
32
Description
33
33
</title>
34
34
<para>
35
- <application>pg_validatebackup </application> is used to check the
35
+ <application>pg_verifybackup </application> is used to check the
36
36
integrity of a database cluster backup taken using
37
37
<command>pg_basebackup</command> against a
38
38
<literal>backup_manifest</literal> generated by the server at the time
@@ -41,27 +41,27 @@ PostgreSQL documentation
41
41
</para>
42
42
43
43
<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
46
46
every check which will be performed by a running server when attempting
47
47
to make use of the backup. Even if you use this tool, you should still
48
48
perform test restores and verify that the resulting databases work as
49
49
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
51
51
that commonly occur due to storage problems or user error.
52
52
</para>
53
53
54
54
<para>
55
55
Backup verification proceeds in four stages. First,
56
- <literal>pg_validatebackup </literal> reads the
56
+ <literal>pg_verifybackup </literal> reads the
57
57
<literal>backup_manifest</literal> file. If that file
58
58
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>
60
60
will terminate with a fatal error.
61
61
</para>
62
62
63
63
<para>
64
- Second, <literal>pg_validatebackup </literal> will attempt to verify that
64
+ Second, <literal>pg_verifybackup </literal> will attempt to verify that
65
65
the data files currently stored on disk are exactly the same as the data
66
66
files which the server intended to send, with some exceptions that are
67
67
described below. Extra and missing files will be detected, with a few
@@ -79,7 +79,7 @@ PostgreSQL documentation
79
79
</para>
80
80
81
81
<para>
82
- Next, <literal>pg_validatebackup </literal> will checksum all the files,
82
+ Next, <literal>pg_verifybackup </literal> will checksum all the files,
83
83
compare the checksums against the values in the manifest, and emit errors
84
84
for any files for which the computed checksum does not match the
85
85
checksum stored in the manifest. This step is not performed for any files
@@ -89,12 +89,12 @@ PostgreSQL documentation
89
89
</para>
90
90
91
91
<para>
92
- Finally, <literal>pg_validatebackup </literal> will use the manifest to
92
+ Finally, <literal>pg_verifybackup </literal> will use the manifest to
93
93
verify that the write-ahead log records which will be needed to recover
94
94
the backup are present and that they can be read and parsed. The
95
95
<literal>backup_manifest</literal> contains information about which
96
96
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
98
98
invoke <literal>pg_waldump</literal> to parse those write-ahed log
99
99
records. The <literal>--quiet</literal> flag will be used, so that
100
100
<literal>pg_waldump</literal> will only report errors, without producing
@@ -112,7 +112,7 @@ PostgreSQL documentation
112
112
are present, they will not be checked by this tool, although
113
113
a separate invocation of <literal>pg_waldump</literal> could be used for
114
114
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
116
116
<literal>pg_waldump</literal>, which pertains to the backup being checked.
117
117
In contrast, the data file integrity checks should work with any version
118
118
of the server that generates a <literal>backup_manifest</literal> file.
@@ -184,7 +184,7 @@ PostgreSQL documentation
184
184
<term><option>--quiet</option></term>
185
185
<listitem>
186
186
<para>
187
- Don't print anything when a backup is successfully validated .
187
+ Don't print anything when a backup is successfully verified .
188
188
</para>
189
189
</listitem>
190
190
</varlistentry>
@@ -194,7 +194,7 @@ PostgreSQL documentation
194
194
<term><option>--skip-checksums</option></term>
195
195
<listitem>
196
196
<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
198
198
files and the sizes of those files will still be checked. This is
199
199
much faster, because the files themselves do not need to be read.
200
200
</para>
@@ -224,7 +224,7 @@ PostgreSQL documentation
224
224
<term><option>--version</option></term>
225
225
<listitem>
226
226
<para>
227
- Print the <application>pg_validatebackup </application> version and exit.
227
+ Print the <application>pg_verifybackup </application> version and exit.
228
228
</para>
229
229
</listitem>
230
230
</varlistentry>
@@ -234,7 +234,7 @@ PostgreSQL documentation
234
234
<term><option>--help</option></term>
235
235
<listitem>
236
236
<para>
237
- Show help about <application>pg_validatebackup </application> command
237
+ Show help about <application>pg_verifybackup </application> command
238
238
line arguments, and exit.
239
239
</para>
240
240
</listitem>
@@ -250,31 +250,31 @@ PostgreSQL documentation
250
250
251
251
<para>
252
252
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:
254
254
<screen>
255
255
<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>
257
257
</screen>
258
258
</para>
259
259
260
260
<para>
261
261
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
263
263
backup:
264
264
<screen>
265
265
<prompt>$</prompt> <userinput>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</userinput>
266
266
<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>
268
268
</screen>
269
269
</para>
270
270
271
271
<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
273
273
backup directory, and also skipping checksum verification:
274
274
<screen>
275
275
<prompt>$</prompt> <userinput>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</userinput>
276
276
<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>
278
278
</screen>
279
279
</para>
280
280
0 commit comments