From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Kenneth Gonsalves <lawgon(at)thenilgiris(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: updating remote database |
Date: | 2004-02-26 08:15:16 |
Message-ID: | 200402260815.16538.dev@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Olivier Hubaut | 2004-02-26 09:51:30 | Re: updating remote database |
Previous Message | Richard Huxton | 2004-02-26 08:03:11 | Re: Scalar in a range (but textual not numeric) |