From: Martin Marques <martin.marques@2ndquadrant.com>
To: Edson Carlos Ericksson Richter <richter@simkorp.com.br>
To: pgsql-general@lists.postgresql.org
Subject: Re: Does PostgreSQL check database integrity at startup?
Date: Tue, 26 Dec 2017 19:42:58 -0300
Message-ID: <e3d09b89-17ba-8638-084a-25eab2abc7ba@2ndquadrant.com> (raw)
In-Reply-To: <7a6d1d6d-3627-c68c-1ce1-b681a7062930@simkorp.com.br>
References: <20171226171327.437beyi2dnndslwl@alvherre.pgsql>
<7a6d1d6d-3627-c68c-1ce1-b681a7062930@simkorp.com.br>
El 26/12/17 a las 14:46, Edson Carlos Ericksson Richter escribió:
>
> Usually, or by "pg_basebackup" or by "rsync" as described in PostgreSQL
> Wiki.
> Right now, I'm doing via pg_basebackup.
> Nothing extraordinary.
>
> When using rsync:
>
> rsync -e "ssh -2 -C -p slave_ssh_port" --progress --partial -az
> /pgsql/9.6/master_data_folder/*
> superuser_name@$slave_host:/home/pgsql/9.6/slave_data_folder/ --exclude
> postmaster.pid --exclude postgresql.conf --exclude pg_log
You don't say so anywhere, but I suspect you run the rsync between a
pg_start_backup() and pg_stop_backup(), right?
That is the way it's described in the wiki.
Regards,
--
Martín Marqués http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: martin.marques@2ndquadrant.com, richter@simkorp.com.br
Subject: Re: Does PostgreSQL check database integrity at startup?
In-Reply-To: <e3d09b89-17ba-8638-084a-25eab2abc7ba@2ndquadrant.com>
References: <20171226171327.437beyi2dnndslwl@alvherre.pgsql> <7a6d1d6d-3627-c68c-1ce1-b681a7062930@simkorp.com.br> <e3d09b89-17ba-8638-084a-25eab2abc7ba@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox