git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 39b2d9f)
Fix archive_command example
Fri, 4 Nov 2011 20:01:35 +0000 (22:01 +0200)
Fri, 4 Nov 2011 20:01:35 +0000 (22:01 +0200)
The given archive_command example didn't use %p or %f, which wouldn't
really work in practice.


diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index 96418e2ca034f5b3b43e7260c952e0f12eb6f70b..843dc3de9fcfb2fccef50706cca676e666929c06 100644 (file)
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1272,7 +1272,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.
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /