From: Peter Eisentraut Date: Fri, 4 Nov 2011 20:01:35 +0000 (+0200) Subject: Fix archive_command example X-Git-Tag: REL8_3_17~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60817575f16331cc46f680584fed9ffc3bcb1dc4;p=thirdparty%2Fpostgresql.git 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 4eb48b04761..df9cc29c520 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1335,7 +1335,7 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/ 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.