Postgresql rsyncd.conf

From NailingJello.com
Jump to: navigation, search

This sets up the rsyncd server on the standby system. For how it is used please look at the hot backup script and the postgresql.conf archive_command.

max connections = 3
log file = /var/log/rsync.log
timeout = 300


[WAL]
 comment = WAL Archive directory
 read only = no
 path = /postgres/WAL
 uid = postgres
 gid = postgres
 pid file = /var/run/rsyncd.pid
 hosts allow = 172.16.6.231

[hotbackup]
 comment = hot backup Archive directory
 read only = no
 path = /backups
 uid = postgres
 gid = postgres
 pid file = /var/run/rsyncd.pid
 hosts allow = 172.16.6.231