summaryrefslogtreecommitdiff
path: root/doc/src/sgml/backup.sgml
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2011-11-04 22:01:35 +0200
committerPeter Eisentraut <peter_e@gmx.net>2011-11-04 22:03:45 +0200
commitd8bff79f1e88f0fb9c66c45c359cc1c085dba429 (patch)
tree5eb265d008faa3e146c51116000ddb8add474f39 /doc/src/sgml/backup.sgml
parent3fbfd40b37eaf2db8698df1b5e41bc0fd6c80b51 (diff)
Fix archive_command example
The given archive_command example didn't use %p or %f, which wouldn't really work in practice.
Diffstat (limited to 'doc/src/sgml/backup.sgml')
-rw-r--r--doc/src/sgml/backup.sgml2
1 files changed, 1 insertions, 1 deletions
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 &lt; /mnt/server/archivedir/%f | pg_decompresslog - %p
<varname>archive_command</varname>, so that their
<filename>postgresql.conf</> entry looks very simple:
<programlisting>
-archive_command = 'local_backup_script.sh'
+archive_command = 'local_backup_script.sh "%p" "%f"'
</programlisting>
Using a separate script file is advisable any time you want to use
more than a single command in the archiving process.