From: Sander Steffann <steffann@nederland.net>
To: Jérôme Kestener <jkestener@yahoo.fr>
To: pgsql-admin@postgresql.org
Subject: Re: Replicate PostgreSQL with rsync
Date: Wed, 19 Nov 2003 10:29:21 +0100
Message-ID: <003801c3ae7f$9d8dc760$64c8a8c0@10ww.steffann.nl> (raw)
References: <20031118151516.32249.qmail@web40809.mail.yahoo.com>
Hi,
I am trying to replicate a PostgreSQL database with rsync.
Does anyone have a experience with that?
We wanted to transfer a database to another machine with the minimum amount of downtime. We used rsync to make a copy of the database while PostgreSQL was running. this ofcourse is NOT a consistent copy. Then we shut down the database and we used rsync to copy all the differences from the first machine to the second, to make sure that the second machine had a consistent database.
You'll have to shutdown the database to make the final transfer, but you can use rsync to do a lot of work while the database is still running.
Good luck,
Sander.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: steffann@nederland.net, jkestener@yahoo.fr
Subject: Re: Replicate PostgreSQL with rsync
In-Reply-To: <003801c3ae7f$9d8dc760$64c8a8c0@10ww.steffann.nl>
References: <20031118151516.32249.qmail@web40809.mail.yahoo.com> <003801c3ae7f$9d8dc760$64c8a8c0@10ww.steffann.nl>
* 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