aboutsummaryrefslogtreecommitdiff
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:01:35 +0200
commit27ef415a716d75de3213cb6bcd6cf20e24eb0f4f (patch)
tree906888909fd7185fdffaf7a538c2ebe3dac546c3 /doc/src
parent39b2d9ffb01ab356f6f5e0d441472ade7608b12a (diff)
downloadpostgresql-27ef415a716d75de3213cb6bcd6cf20e24eb0f4f.tar.gz
postgresql-27ef415a716d75de3213cb6bcd6cf20e24eb0f4f.zip
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 96418e2ca03..843dc3de9fc 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1272,7 +1272,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.