Skip to content

Commit 27ef415

Browse files
committed
Fix archive_command example
The given archive_command example didn't use %p or %f, which wouldn't really work in practice.
1 parent 39b2d9f commit 27ef415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/backup.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ restore_command = 'gunzip < /mnt/server/archivedir/%f | pg_decompresslog - %p
12721272
<varname>archive_command</varname>, so that their
12731273
<filename>postgresql.conf</> entry looks very simple:
12741274
<programlisting>
1275-
archive_command = 'local_backup_script.sh'
1275+
archive_command = 'local_backup_script.sh "%p" "%f"'
12761276
</programlisting>
12771277
Using a separate script file is advisable any time you want to use
12781278
more than a single command in the archiving process.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy