Re: Clone a database to other machine - Mailing list pgsql-general

From Ron Johnson
Subject Re: Clone a database to other machine
Date
Msg-id 1059428508.1965.77.camel@haggis
Whole thread Raw
In response to Clone a database to other machine  ("Terence Chang" <TChang@nqueue.com>)
List pgsql-general
On Mon, 2003-07-28 at 15:38, Terence Chang wrote:
> Hi there:
>
> I am just wondering if this is a doable method to clone a database to
> other machine. I have three identical linux serves with postgresql
> server installed at the same location. I have a new customized
> database and initial data load into server 1. Can I just copy all of
> the database files physically from server 1  to server 2 and server 3?
> I assume this is one of the method to restore a database.
>
> What I am trying to do is to sell a solution package to clients. The
> solution will include Linux + Apache + PHP + PostgreSQL. So every
> customers will have the same database configuration initially.
>
> Any other suggestion?

Why not send them gzipped output from pg_dumpall along with an
initdb script?  It's smaller, and "position independent".

--
+-----------------------------------------------------------------+
| Ron Johnson, Jr.        Home: ron.l.johnson@cox.net             |
| Jefferson, LA  USA                                              |
|                                                                 |
| "I'm not a vegetarian because I love animals, I'm a vegetarian  |
|  because I hate vegetables!"                                    |
|    unknown                                                      |
+-----------------------------------------------------------------+



pgsql-general by date:

Previous
From: Dmitry Tkach
Date:
Subject: Re: CREATE TABLE with REFERENCE
Next
From: "Terence Chang"
Date:
Subject: Re: Clone a database to other machine