Re: backup database by cloning itself

From: "filippo" <filippo2991(at)virgilio(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: backup database by cloning itself
Date: 2007-02-14 13:06:04
Message-ID: 1171458364.293832.133430@m58g2000cwm.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 14 Feb, 08:33, ron(dot)l(dot)john(dot)(dot)(dot)(at)cox(dot)net (Ron Johnson) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> There's almost definitely a better way to do what you want to do.
>
> What benefit are you trying to obtain by creating 720 almost
> identical databases per month?

I only need the last 24, overwriting each day. In my case 8 are enough
(8am to 24pm, one every 2 hours). The important thing is to be able to
open each very simply (read only) without restore anything. Just tell
my application (written be me), to point the basckup database instead
of latest one.

> Have you tried pg_dump?

probably this is ok. pg_dump create a backup file, not a true clone
db. I want a exact copy (data and users and everithing) with a
different name (05-mydatabase 06-mydatabase ...)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message RPK 2007-02-14 13:14:45 Re: PGSQL 8.2.3 Installation problem
Previous Message Rajarshi Guha 2007-02-14 13:02:44 Re: suggestions on improving a query