Re: Incremental Refresh - PostgreSQL 9.2 - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Incremental Refresh - PostgreSQL 9.2
Date
Msg-id CAKFQuwYFoEwQOXwvOuiqx40mJb+T2P3LKKXcTJNKGsX0M+LZ=w@mail.gmail.com
Whole thread Raw
In response to Incremental Refresh - PostgreSQL 9.2  ("drum.lucas@gmail.com" <drum.lucas@gmail.com>)
Responses Re: Incremental Refresh - PostgreSQL 9.2
Re: Incremental Refresh - PostgreSQL 9.2
Re: Incremental Refresh - PostgreSQL 9.2
List pgsql-admin
On Tue, Feb 23, 2016 at 2:59 PM, drum.lucas@gmail.com <drum.lucas@gmail.com> wrote:
Hi all,

I've got a Master server and a Test Server.

Master server has a 1.7 TB
Test server has a full copy from master - 1.7 TB.

The copy was made using pg_dump

I.E: /usr/pgsql-9.2/bin/pg_dump --exclude-table-data='junk.*' --format=custom geoop_live > bigdump.sql

Question:
Now that the test server has a full copy from master, how could I just do a incremental refreshing once a month?

Instead copying all the DB (1.7GB), just copy what has been changed?
Is that possible?


​You cannot accomplish incremental updates if your choice of tool is pg_dump.  The only way to do a true incremental would be to rely upon something like rsync on the data directory while the master server is offline.

So, assuming that is not an option, you should probably look at the various true replication solutions that are available and see which of those might serve as an alternative.

​David J.

pgsql-admin by date:

Previous
From: "drum.lucas@gmail.com"
Date:
Subject: Incremental Refresh - PostgreSQL 9.2
Next
From: "drum.lucas@gmail.com"
Date:
Subject: Re: Incremental Refresh - PostgreSQL 9.2