Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 548976322B5 for ; Sat, 9 May 2009 08:06:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 72664-10 for ; Sat, 9 May 2009 08:06:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from titania.wxnz.net (titania.wxnz.net [58.28.4.13]) by mail.postgresql.org (Postfix) with ESMTP id D4D636320CC for ; Sat, 9 May 2009 08:06:55 -0300 (ADT) Received: from gonzo (ip-118-90-131-178.xdsl.xnet.co.nz [118.90.131.178]) by titania.wxnz.net (Postfix) with ESMTP id 860BC1DB8581 for ; Sat, 9 May 2009 23:06:52 +1200 (NZST) Received: from news by gonzo with local (Exim 4.69) (envelope-from ) id 1M2kNU-0000bp-1Y for pgsql-sql@postgresql.org; Sat, 09 May 2009 23:06:00 +1200 To: pgsql-sql@postgresql.org Path: not-for-mail From: Jasen Betts Newsgroups: gmane.comp.db.postgresql.sql Subject: Re: backup and restore Date: 9 May 2009 11:05:59 GMT Organization: Dis (not Dat) Organisation Lines: 29 Message-ID: References: <4A03C276.9050007@postnewspapers.com.au> <004201c9cfbf$b6becab0$243c6010$@com> NNTP-Posting-Host: localhost Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reversiblemaps.ath.cx 1241867159 736 127.0.0.1 (9 May 2009 11:05:59 GMT) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-2 (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200905/40 X-Sequence-Number: 32532 On 2009-05-08, Jyoti Seth 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.