summaryrefslogtreecommitdiff
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:04:08 +0200
commit60817575f16331cc46f680584fed9ffc3bcb1dc4 (patch)
tree65d613702fb0437500d18946106f2586fe800753
parent0dddbbcd3178242f24d7476e12436ec7e1340f6d (diff)
Fix archive_command example
The given archive_command example didn't use %p or %f, which wouldn't really work in practice.
-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 4eb48b04761..df9cc29c520 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1335,7 +1335,7 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
<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.