summaryrefslogtreecommitdiff
path: root/doc/src
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:58 +0200
commit347e77beff08ac2e655696503a9dfbe98eb8742b (patch)
tree9734a39ec490b627d89c80fd1fa824ca8f224888 /doc/src
parenta4a5d40190ff2dfe2299d7b361a88db0dd5a4c82 (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')
-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 72a846deb0b..cbaff17bb3e 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1380,7 +1380,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.