From: Peter Eisentraut Date: Fri, 4 Nov 2011 20:01:35 +0000 (+0200) Subject: Fix archive_command example X-Git-Tag: REL9_2_BETA1~870 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27ef415a716d75de3213cb6bcd6cf20e24eb0f4f;p=postgresql Fix archive_command example The given archive_command example didn't use %p or %f, which wouldn't really work in practice. --- diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index 96418e2ca0..843dc3de9f 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1272,7 +1272,7 @@ restore_command = 'gunzip < /mnt/server/archivedir/%f | pg_decompresslog - %p archive_command, so that their postgresql.conf entry looks very simple: -archive_command = 'local_backup_script.sh' +archive_command = 'local_backup_script.sh "%p" "%f"' Using a separate script file is advisable any time you want to use more than a single command in the archiving process.