postgres.git / summary / log / commit / refs
commit 60817575f16331cc46f680584fed9ffc3bcb1dc4
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Fri Nov 04 20:01:35 2011 +0000
First released in: 9.2.0, 8.3.17, 8.4.10, 9.0.6, 9.1.2
Fix archive_command example
The given archive_command example didn't use %p or %f, which wouldn't
really work in practice.
doc/src/sgml/backup.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.
[parent: 0dddbbcd3178]