I have used these steps to setup database replication on Postgresql 9.4.
But, when using pg_basebackup, my entire database dir is copied, including the postgresql.conf file. However, that file is different for master and slave, so changes will be overwritten after starting the replication.
How can I run PostgreSQL with a custom data dir, but with the postgresql.conf outside of that dir?
I am using CentOS7.