Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

What happen if i start a Postgresql replication using tar

$
0
0

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.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>