pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_update to a new machine?
Date: Sat, 24 Feb 2018 18:48:11 -0600
Message-ID: <ca1b40f7-b209-8aae-3c10-73be3a811863@cox.net> (raw)
In-Reply-To: <EogF1x00d1DF5NZ01ogHub>
References: <09489f15-b756-9e6d-c081-a8cdf0f9b483@cox.net>
	<EeK31x0021DF5NZ01eK5Sf>
	<74ef8c30-0db7-84ad-b04e-1975fe2977e4@cox.net>
	<ElAH1x01o1DF5NZ01lAKbz>
	<8b083b6c-2774-ffd4-cac1-61affc3996af@cox.net>
	<EogF1x00d1DF5NZ01ogHub>

On 02/24/2018 06:40 PM, Stephen Frost wrote:
> Ron,
>
> * Ron Johnson (ron.l.johnson@cox.net) wrote:
>> On 02/24/2018 03:10 PM, Stephen Frost wrote:
>> [snip]
>>>> To set up log shipping on 8.4, I do this, which works well:
>>>>
>>>> select pg_start_backup('some_meaningful_tag');
>>>> nohup rsync -avz /var/lib/pgsql/data/* postgres@${DESTIP}:/var/lib/pgsql/data/ &
>>>> select pg_stop_backup();
>>> That's not log shipping, for log shipping you need to specify an
>>> archive_command and actually capture all of the WAL generated, or, at a
>>> minimum, the WAL generated between the start and stop backup calls.
>> That's steps #8, 9 and 10 (in our checklist) of setting up log shipping.
>> Step #4 is configuring the archive_* statements in postgresql.conf.
> I would still recommend you use a tool developed specifically for taking
> proper PG backups which validates that all WAL generated during a backup
> is properly archived, such as pgBackRest, which also makes sure to sync
> all the data out to persistent storage and can also operate in parallel
> and perform incremental restores.

OK.  I'll try to get it installed.  (Lots of paperwork, etc.)


-- 
Angular momentum makes the world go 'round.




view thread (8+ messages)

Message-ID: <ca1b40f7-b209-8aae-3c10-73be3a811863@cox.net>
Permalink:  ../ca1b40f7-b209-8aae-3c10-73be3a811863@cox.net/
Also on:    postgresql.org/message-id/ca1b40f7-b209-8aae-3c10-73be3a811863@cox.net

 · 

reply

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: ron.l.johnson@cox.net
  Subject: Re: pg_update to a new machine?
  In-Reply-To: <ca1b40f7-b209-8aae-3c10-73be3a811863@cox.net>
  References: <09489f15-b756-9e6d-c081-a8cdf0f9b483@cox.net> <EeK31x0021DF5NZ01eK5Sf> <74ef8c30-0db7-84ad-b04e-1975fe2977e4@cox.net> <ElAH1x01o1DF5NZ01lAKbz> <8b083b6c-2774-ffd4-cac1-61affc3996af@cox.net> <EogF1x00d1DF5NZ01ogHub> <ca1b40f7-b209-8aae-3c10-73be3a811863@cox.net>

* 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