Hi i am following this tutorial every time that i need to set up a binary replication ,in fact i am using the second method called: "Starting Replication with only a Quick Master Restart" found here: https://wiki.postgresql.org/wiki/Binary_Replication_Tutorial
That works fine.
In a test environment, i tried to use tar instead of this rsync:
rsync -av --exclude pg_xlog --exclude postgresql.conf --exclude postgresql.pid \
data/* 192.168.0.2:/var/lib/postgresql/data/
Like this:
tar -cz data >data.tar.gz
Generating the .tar file with the data and uncompressing that on the slave, how bad can this be for the database?
In the logs, slave shows that it connects sucessfully to the master.