From d8bff79f1e88f0fb9c66c45c359cc1c085dba429 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut
Date: Fri, 4 Nov 2011 22:01:35 +0200
Subject: Fix archive_command example
The given archive_command example didn't use %p or %f, which wouldn't
really work in practice.
---
doc/src/sgml/backup.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index c63e48bb1b1..e08d8ead383 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1252,7 +1252,7 @@ restore_command = 'gunzip < /mnt/server/archivedir/%f | pg_decompresslog - %p
archive_command, so that their
postgresql.conf> entry looks very simple:
-archive_command = 'local_backup_script.sh'
+archive_command = 'local_backup_script.sh "%p" "%f"'
Using a separate script file is advisable any time you want to use
more than a single command in the archiving process.
--
cgit v1.2.3