X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 82CFDD1E14B for ; Thu, 26 Feb 2004 08:15:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 23300-04 for ; Thu, 26 Feb 2004 04:15:37 -0400 (AST) Received: from anchor-post-37.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by svr1.postgresql.org (Postfix) with ESMTP id 48F1CD1BB2A for ; Thu, 26 Feb 2004 04:15:34 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1AwGgA-0002Hd-0b; Thu, 26 Feb 2004 08:15:35 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id EA1BA16A1D; Thu, 26 Feb 2004 08:15:33 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id A017A16A1F; Thu, 26 Feb 2004 08:15:17 +0000 (GMT) From: Richard Huxton To: Kenneth Gonsalves , pgsql-sql@postgresql.org Subject: Re: updating remote database Date: Thu, 26 Feb 2004 08:15:16 +0000 User-Agent: KMail/1.5 References: <04022608245506.01440@thenilgiris.com> In-Reply-To: <04022608245506.01440@thenilgiris.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402260815.16538.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/359 X-Sequence-Number: 17049 On Thursday 26 February 2004 02:54, Kenneth Gonsalves wrote: > i have a database on a local machine, and another on a remote machine. I > have a dialup connection between the two - so band width is a problem. What > is the most efficient way of updating the remote from the local? Does SQL > or postgres have simple commands for this? Sounds like you want some form of (batched) asynchronous replication (as it's called). If you've not already set that up though, that won't help here. Assuming you don't have a complete list of all changes logged somewhere, you might want to try: 1. pg_dump the tables you want to synchronise on the local machine (one per file) 2. Do the same on the remote machine 3. Use rsync to update the remote dump based on the local one 4. Restore the updated dump on the remote machine. Failing that, you might want to look into the replication options available - you may be able to adapt contrib/dbmirror, or perhaps erserver/rservimp on gborg.postgresql.org -- Richard Huxton Archonet Ltd