Commit 27ef415a authored by Peter Eisentraut's avatar Peter Eisentraut

Fix archive_command example

The given archive_command example didn't use %p or %f, which wouldn't
really work in practice.
parent 39b2d9ff
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment