Fix archive_command example
The given archive_command example didn't use %p or %f, which wouldn't really work in practice.
This commit is contained in:
parent
a4a5d40190
commit
347e77beff
@ -1380,7 +1380,7 @@ restore_command = 'gunzip < /mnt/server/archivedir/%f | pg_decompresslog - %p
|
|||||||
<varname>archive_command</varname>, so that their
|
<varname>archive_command</varname>, so that their
|
||||||
<filename>postgresql.conf</> entry looks very simple:
|
<filename>postgresql.conf</> entry looks very simple:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
archive_command = 'local_backup_script.sh'
|
archive_command = 'local_backup_script.sh "%p" "%f"'
|
||||||
</programlisting>
|
</programlisting>
|
||||||
Using a separate script file is advisable any time you want to use
|
Using a separate script file is advisable any time you want to use
|
||||||
more than a single command in the archiving process.
|
more than a single command in the archiving process.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user