From: Peter Eisentraut Date: Fri, 2 Sep 2011 22:29:09 +0000 (+0300) Subject: Add archive_command example X-Git-Tag: REL9_2_BETA1~1157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42ad992fdc25fa69db03ff242216f6712da2c56a;p=postgresql Add archive_command example --- diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index 65fd1266a1..e713defea2 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -186,6 +186,9 @@ #archive_mode = off # allows archiving to be done # (change requires restart) #archive_command = '' # command to use to archive a logfile segment + # placeholders: %p = path of file to archive + # %f = file name only + # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' #archive_timeout = 0 # force a logfile segment switch after this # number of seconds; 0 disables