Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4a5d40
)
Fix archive_command example
author
Peter Eisentraut
<peter_e@gmx.net>
Fri, 4 Nov 2011 20:01:35 +0000
(22:01 +0200)
committer
Peter Eisentraut
<peter_e@gmx.net>
Fri, 4 Nov 2011 20:03:58 +0000
(22:03 +0200)
The given archive_command example didn't use %p or %f, which wouldn't
really work in practice.
doc/src/sgml/backup.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/backup.sgml
b/doc/src/sgml/backup.sgml
index 72a846deb0b43f4b3c1018c4b123a7a27c451383..cbaff17bb3e0f352154405d0a88d113ddb833810 100644
(file)
--- a/
doc/src/sgml/backup.sgml
+++ b/
doc/src/sgml/backup.sgml
@@
-1380,7
+1380,7
@@
restore_command = 'gunzip < /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.