X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3BB28D1D722 for ; Wed, 19 Nov 2003 09:30:08 +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 40400-02 for ; Wed, 19 Nov 2003 05:29:39 -0400 (AST) Received: from echo.computel.nl (echo.computel.nl [195.86.134.74]) by svr1.postgresql.org (Postfix) with ESMTP id 86F91D1D630 for ; Wed, 19 Nov 2003 05:29:36 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by echo.computel.nl (Postfix) with SMTP id 6C2089DAF; Wed, 19 Nov 2003 10:29:22 +0100 (CET) X-AV-Checked: Wed Nov 19 10:29:22 2003 www.nederland.net Received: from balefirehome (balefire.demon.nl [212.238.240.59]) by echo.computel.nl (Postfix) with ESMTP id CC5319DA0; Wed, 19 Nov 2003 10:29:21 +0100 (CET) Message-ID: <003801c3ae7f$9d8dc760$64c8a8c0@10ww.steffann.nl> From: "Sander Steffann" To: =?iso-8859-1?Q?J=E9r=F4me_Kestener?= , References: <20031118151516.32249.qmail@web40809.mail.yahoo.com> Subject: Re: Replicate PostgreSQL with rsync Date: Wed, 19 Nov 2003 10:29:21 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0035_01C3AE87.FEEE1660" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=HTML_50_60, REFERENCES X-Spam-Level: X-Archive-Number: 200311/346 X-Sequence-Number: 11333 This is a multi-part message in MIME format. ------=_NextPart_000_0035_01C3AE87.FEEE1660 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 mach= ine to the second, to make sure that the second machine had a consistent da= tabase. You'll have to shutdown the database to make the final transfer, but you ca= n use rsync to do a lot of work while the database is still running. Good luck, Sander. ------=_NextPart_000_0035_01C3AE87.FEEE1660 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I= am=20 trying to replicate a PostgreSQL database with rsync.

D= oes=20 anyone have a experience with that?

We = wanted=20 to transfer a database to another machine with the minimum amount of downti= me.=20 We used rsync to make a copy of the database while PostgreSQL was running. = this=20 ofcourse is NOT a consistent copy. Then we shut down the database and we us= ed=20 rsync to copy all the differences from the first machine to the second, to = make=20 sure that the second machine had a consistent database.

 

You= 'll=20 have to shutdown the database to make the final transfer, but you can use r= sync=20 to do a lot of work while the database is still running.

 

Goo= d=20 luck,

San= der.

 

------=_NextPart_000_0035_01C3AE87.FEEE1660--