Update docs that GNU tar versions >=1.16 exit with 1 on files changed, 2
authorBruce Momjian <bruce@momjian.us>
Mon, 16 Jul 2007 22:20:51 +0000 (22:20 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 16 Jul 2007 22:20:51 +0000 (22:20 +0000)
on other errors.

doc/src/sgml/backup.sgml

index a609b0c941eef0ef55639cf7c087a12909790c4e..fe2b33c6e6ac601699f4a49ebbd86640442339b8 100644 (file)
@@ -734,13 +734,11 @@ SELECT pg_stop_backup();
     complaints of this sort from real errors.  For example, some versions
     of <application>rsync</> return a separate exit code for <quote>vanished
     source files</>, and you can write a driver script to accept this exit
-    code as a non-error case.  Also,
-    some versions of GNU <application>tar</> consider it an error if a file
-    is changed while <application>tar</> is copying it.  There does not seem
-    to be any very convenient way to distinguish this error from other types
-    of errors, other than manual inspection of <application>tar</>'s messages.
-    GNU <application>tar</> is therefore not the best tool for making base
-    backups.
+    code as a non-error case.  Also, some versions of GNU
+    <application>tar</> consider it an error if a file is changed while
+    <application>tar</> is copying it.  Fortunately, GNU
+    <application>tar</> versions 1.16 and later exit with <literal>1</>
+    if files changed during the backup, and <literal>2</> for other errors.
    </para>
 
    <para>