Re: Using RSYNC for replication?

From: Arjen van der Meijden <acm(at)tweakers(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Using RSYNC for replication?
Date: 2003-01-28 18:58:42
Message-ID: 000f01c2c6ff$49e8d130$3ac15e91@acm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can do without the temporal filestorage, using unix/linux' pipe
functionality:

pg_dump whatever_commands -you -want | psql -h remotehost -etc
Or, when dumping with the binary format, pipe it to pg_restore (afaik
that is possible)

Arjen

> -----Oorspronkelijk bericht-----
> Van: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] Namens Vivek Khera
> Verzonden: dinsdag 28 januari 2003 18:39
> Aan: pgsql-general(at)postgresql(dot)org
> Onderwerp: Re: [GENERAL] Using RSYNC for replication?
>
>
> >>>>> "JH" == Jason Hihn <jhihn1(at)umbc(dot)edu> writes:
>
> JH> Well this email is for everyone:
> JH> 1) I don't want to PG dump because of 1) the time and 2)
> the space.
> JH> If I
> JH> did it that way, I might as well keep the old copy around
> and run diff
>
> I don't know what you're doing, but my DB expanded out is
> about 18Gb. The compressed dump is about 1.4Gb. To rsync the
> data takes about 4 hours over a private 100baseT switch not
> doing anything else. To pg_dump takes about 40 minutes over
> the same wire.
>
> The advantage is that the pg_dump is guaranteed consistent,
> no matter how long it takes.
>
> Here's how I pg_dump:
>
> pg_dump -h dbhost -Fc DBNAME > DBNAME.`date +%d-%b-%Y`.dump
>
>
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Vivek Khera, Ph.D. Khera Communications, Inc.
> Internet: khera(at)kciLink(dot)com Rockville, MD +1-240-453-8497
> AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
http://www.postgresql.org/users-lounge/docs/faq.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2003-01-28 19:00:58 Re: tsearch comments
Previous Message Jim Buttafuoco 2003-01-28 18:42:26 Re: Status of tablespaces