From 62c8350c5c1ae99594a15455c2a531ba3ae2dde8 Mon Sep 17 00:00:00 2001
From: Tom Lane
Date: Mon, 20 Jun 2011 16:27:44 -0400
Subject: Fix missed use of "cp -i" in an example, per Fujii Masao.
Also be more careful about markup: use & not just &.
---
doc/src/sgml/backup.sgml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index cec8ff5fe2b..72a846deb0b 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -560,7 +560,7 @@ tar -cf backup.tar /usr/local/pgsql/data
character in the command. The simplest useful command is something
like:
-archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' # Unix
+archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' # Unix
archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
which will copy archivable WAL segments to the directory
@@ -1327,7 +1327,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
on>, and set up an archive_command> that performs
archiving only when a switch file> exists. For example:
-archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress || cp -i %p /var/lib/pgsql/archive/%f < /dev/null'
+archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress || (test ! -f /var/lib/pgsql/archive/%f && cp %p /var/lib/pgsql/archive/%f)'
This command will perform archiving when
/var/lib/pgsql/backup_in_progress> exists, and otherwise
--
cgit v1.2.3