mirror of
https://github.com/postgres/postgres.git
synced 2026-04-07 02:06:01 -04: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:
parent
0dddbbcd31
commit
60817575f1
1 changed files with 1 additions and 1 deletions
|
|
@ -1335,7 +1335,7 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
|
|||
<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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue