Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Add archive_command example
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 2 Sep 2011 22:29:09 +0000 (01:29 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 2 Sep 2011 22:29:09 +0000 (01:29 +0300)
src/backend/utils/misc/postgresql.conf.sample

index 65fd1266a163d4198bbd4f2667528fd081e83414..e713defea2c8326fcb43cbbe73c328736fafdbdd 100644 (file)
 #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