Re: Need advice on keeping backup database up to date

From: Richard Huxton <dev(at)archonet(dot)com>
To: Matthew Wilson <matt(at)tplus1(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need advice on keeping backup database up to date
Date: 2007-10-12 18:57:19
Message-ID: 470FC38F.5010608@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthew Wilson wrote:
> I am trying to figure out how I can keep the postgresql database in the
> backup data center as up to date as possible.
>
> The ideal solution would keep the backup database updated in real time
> as the primary database changes.

What you are after is called "replication". There are a couple of paid
solutions out there and a few free options.

The "default" open-source replication system for PG is called Slony and
is trigger-based.
http://www.slony.info/

Skype do their own replication, uses Python and I don't know much more
about it than that:
http://pgfoundry.org/projects/skytools/

If you don't need to be quite so up-to-date and don't mind replicating
an entire cluster look at WAL archiving. See Ch 23 of the manuals (and
some other chapters). Note that this is only viable if both servers are
identical (so, both 32-bit Intel running Debian for example).

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-10-12 18:59:30 Re: replicating to a stopped server
Previous Message Bill Moran 2007-10-12 18:51:49 Re: Need advice on keeping backup database up to date