aboutsummaryrefslogtreecommitdiff
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:25 +0200
commit97d5b21c86345905426a2f0ddfca2e23340bb429 (patch)
tree5445e703981687eb501b9791a394521d216dba97
parent92375ed2bdea82cd223244cf74dff532dc776405 (diff)
downloadpostgresql-97d5b21c86345905426a2f0ddfca2e23340bb429.tar.gz
postgresql-97d5b21c86345905426a2f0ddfca2e23340bb429.zip
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 737355a911d..a880a75fd8b 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1270,7 +1270,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.