pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-sql@postgresql.org
Subject: Re: backup and restore
Date: 9 May 2009 11:05:59 GMT
Message-ID: <gu3o2n$n0$2@reversiblemaps.ath.cx> (raw)
References: <4A03C276.9050007@postnewspapers.com.au>
	<004201c9cfbf$b6becab0$243c6010$@com>

On 2009-05-08, Jyoti Seth <jyotiseth2001@gmail.com> wrote:
> Hello,
>
> I have two databases db1 and db2 with the same database structure on
> different systems with no network connection. In the first system with the
> db1 database user updates the master data. At the end of every day, the user
> needs to take the backup of updated data of master tables on db1 and update
> the data on another system with db2 database.
>
> We can't use WAL as in this as we want to take incremental backup of few
> tables only and can't use slony as there is no network connection between
> the systems.
>
> Please suggest some solution.

some sort of diff?

dump the tables you are interested in in a known order

(perhaps use "copy from select .... order by .... " )

compare it with yesterdays 

ship the differences.

dump the table at the remote end
apply the patch
truncate the table and load the patched version.




view thread (5+ messages)

Message-ID: <gu3o2n$n0$2@reversiblemaps.ath.cx>
Permalink:  ../gu3o2n$n0$2@reversiblemaps.ath.cx/
Also on:    postgresql.org/message-id/gu3o2n$n0$2@reversiblemaps.ath.cx

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasen@xnet.co.nz
  Subject: Re: backup and restore
  In-Reply-To: <gu3o2n$n0$2@reversiblemaps.ath.cx>

* 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