Re: Incremental Refresh - PostgreSQL 9.2

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Keith <keith(at)keithf4(dot)com>
Cc: "drum(dot)lucas(at)gmail(dot)com" <drum(dot)lucas(at)gmail(dot)com>, Scott Whitney <scott(at)journyx(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Incremental Refresh - PostgreSQL 9.2
Date: 2016-02-24 18:10:04
Message-ID: 20160224181004.GH3127@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Keith,

* Keith (keith(at)keithf4(dot)com) wrote:
> However, once you restore that backup and bring it up as a standalone
> database instance, you can no longer use the WAL stream from the original
> instance to "replay" those changes. This is also the case with any sort of
> rsync'ing of the data files from one instance to another.

Right, but if you don't mind throwing away the changes which were made
to the restored server (the test server) then you can use rsync (if the
source database is shut down) to re-sync the restored server without
having to re-copy everything (I'd strongly recommend using the CRC
option to rsync). The same is possible with pgBackRest, which allows
you to keep the source database online (pgBackRest will check that the
hashes match between the backup and the restored system when doing
incremental restores, there's no need to explicitly ask for that as
there is with rsync).

> You may be better off looking into a logical replication solution to copy
> your data to a testing system if it needs to be a standalone system. That
> is not currently built into Postgres, but it's on track for possible
> inclusion with 9.6. In the mean time look into tools such as Mimeo or
> Bucardo.
>
> https://github.com/omniti-labs/mimeo
> https://bucardo.org/wiki/Bucardo

Right, and there's also Slony. These are useful if the requirement is
that changes to the test/restored server be persisted.

Thanks!

Stephen

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Fred Parkinson 2016-02-24 18:14:32 db commands elicit no response
Previous Message Stephen Frost 2016-02-24 16:31:19 Re: Incremental Refresh - PostgreSQL 9.2