Re: Replicate PostgreSQL with rsync

From: "Sander Steffann" <steffann(at)nederland(dot)net>
To: Jérôme Kestener <jkestener(at)yahoo(dot)fr>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Replicate PostgreSQL with rsync
Date: 2003-11-19 09:29:21
Message-ID: 003801c3ae7f$9d8dc760$64c8a8c0@10ww.steffann.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Raquel Vieira 2003-11-19 09:34:52 Re: using vacuumdb in crontab
Previous Message Stef 2003-11-19 07:35:14 Re: Point-in-time data recovery - v.7.4