2016-06-05 12:53 GMT+12:00 Patrick Baker <patrickbakerbr@xxxxxxxxx>:
restore_command = 'exec nice -n 19 ionice -c 2 -n 7 ../../bin/restore.bash "../wal_archive/%f" "%p"'Hi guys,So... My servers are:1 master2 slaves (streaming replication)1 backup server (replication using WAL FILES)The backup server is not updated... it seems the WAL ARCHIVES have failed and the server is not updated.The error that I see on the pg_log:WAL segment `../wal_archive/00000002000011E800000012` not foundQuestion:Can I make the server be replicated by using streaming replication, so the server would be updated.. and then I go back to the WAL ARCHIVE?
Current recovery.conf:
#primary_conninfo = 'host= port=5432 user=replicator application_name='
restore_command = 'exec nice -n 19 ionice -c 2 -n 7 ../../bin/restore.bash "../wal_archive/%f" "%p" 345600'
New recovery.conf (To set streaming replication on):
primary_conninfo = 'host=mymasterserver port=5432 user=replicator application_name='
By doing that, I'd active streaming replication on my backup server.
After the database be updated, I can go backup to the replication by wal files ?