1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

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:
Peter Eisentraut
2011-11-04 22:01:35 +02:00
parent 3fbfd40b37
commit d8bff79f1e

View File

@ -1252,7 +1252,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.