From: Colin Stearman <cstearman@infofind.com>
To: Dan Langille <dan@langille.org>
Cc: pgsql-admin@postgresql.org
Subject: Database backup and restore
Date: Mon, 25 Nov 2002 17:58:57 -0500
Message-ID: <02fa01c294d6$3dfeb4d0$3301a8c0@Colin2000> (raw)
References: <3DDE4337.19961.C434DCC6@localhost>
I have completed the development of a BASH script to dump and load DBs with
(or without) blobs.
It will dump the globals also, like user names, but I don't know about
triggers, etc. As it uses pg_dump
and pg_restore to deal with the DBs and pg_dumpall to deal with the globals,
it should be all there.
You can get the scripts from www.infofind.com/postgreSQL.
Although I tested them, NO GUARANTEES OF ANY KIND ARE GIVEN. So test them
on something you don't care about first (especially the fullrestore script)!
Colin
PS. Mail list admin is welcome to add these scripts to the contribution
directory, if desired.
----- Original Message -----
From: "Dan Langille" <dan@langille.org>
To: "Colin Stearman" <cstearman@infofind.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Friday, November 22, 2002 2:46 PM
Subject: Re: [ADMIN] Database backup and restore
On 22 Nov 2002 at 14:41, Colin Stearman wrote:
> Dan,
>
> On first glance at dima's script it does not seem to deal with blobs,
> although could easily me made to do so.
I think that would be a very good addition to the PostgreSQL toolkit.
FWIW, I do not use blobs and consequently do not think of them when
backups are required.
> I'll be working on it some more and will share what I come up with.
I'm sure it will be added to the contrib directory.
--
Dan Langille : http://www.langille.org/
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: cstearman@infofind.com, dan@langille.org
Subject: Re: Database backup and restore
In-Reply-To: <02fa01c294d6$3dfeb4d0$3301a8c0@Colin2000>
References: <3DDE4337.19961.C434DCC6@localhost> <02fa01c294d6$3dfeb4d0$3301a8c0@Colin2000>
* 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