Created
June 13, 2016 08:37
-
-
Save avoinea/fef18413ed4ae93fc97d70fb2e0be256 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - Archiving - | |
archive_mode = on # allows archiving to be done | |
# (change requires restart) | |
#archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress || (test ! -f /var/lib/pgsql/archive/%f && cp %p /var/lib/pgsql/archive/%f)' # command to use to archive a logfile segment | |
archive_command = 'rsync -a %p [email protected]:/var/lib/pgsql/archive/%f' | |
# 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 = 600 # Let's keep us max 10minutes away from the master | |
# number of seconds; 0 disables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment