pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Sengstock <csengstock@gmail.com>
To: Uwe C. Schroeder <uwe@oss4u.com>
Cc: pgsql-admin@postgresql.org, Krzysztof Szadkowski <kszadkow@eldip.lodz.pl>
Cc: pgsql-admin-owner@postgresql.org
Subject: Re: Copy database
Date: Mon, 30 Jan 2006 09:04:49 +0100
Message-ID: <febbf1590601300004h30e62be1k@mail.gmail.com> (raw)
In-Reply-To: <200601291931.29829.uwe@oss4u.com>
References: <000001c61ff9$f6eb2080$1401a8c0@eldipsrv>
	<200601291931.29829.uwe@oss4u.com>

2006/1/30, Uwe C. Schroeder <uwe@oss4u.com>:

>
>
>
> On Monday 23 January 2006 00:49, Krzysztof Szadkowski wrote:
> > Hi all,
> >
> > I am looking for a way to copy whole database to another existing
> > database.
> > Any suggestions ?


Sometimes you want to copy the whole DBMS to another machine where the same
postgres version is running. You can just copy the ./data directory, check
the permissions (chown -R postgres ./data) and run postmaster with this data
directory (postmaster ... -d ./data).

Note: Like that, you can't copy a certain database. You have to use the same
postgres version for that...

Chris

view thread (4+ messages)  latest in thread

Message-ID: <febbf1590601300004h30e62be1k@mail.gmail.com>
Permalink:  ../febbf1590601300004h30e62be1k@mail.gmail.com/
Also on:    postgresql.org/message-id/febbf1590601300004h30e62be1k@mail.gmail.com

 · 

reply

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: csengstock@gmail.com, uwe@oss4u.com, kszadkow@eldip.lodz.pl, pgsql-admin-owner@postgresql.org
  Subject: Re: Copy database
  In-Reply-To: <febbf1590601300004h30e62be1k@mail.gmail.com>
  References: <000001c61ff9$f6eb2080$1401a8c0@eldipsrv> <200601291931.29829.uwe@oss4u.com> <febbf1590601300004h30e62be1k@mail.gmail.com>

* 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