Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8CCAC475E24 for ; Mon, 25 Nov 2002 17:59:17 -0500 (EST) Received: from ashdown.infofind.com (infofind.com [216.129.137.2]) by postgresql.org (Postfix) with ESMTP id 893D3475D17 for ; Mon, 25 Nov 2002 17:59:11 -0500 (EST) Received: from Colin2000 (ashdown-gw.lightband.com [216.129.135.129]) (authenticated bits=0) by ashdown.infofind.com (8.12.4/8.12.4) with ESMTP id gAPMx0hL001177; Mon, 25 Nov 2002 17:59:01 -0500 Message-ID: <02fa01c294d6$3dfeb4d0$3301a8c0@Colin2000> From: "Colin Stearman" To: "Dan Langille" Cc: References: <3DDE4337.19961.C434DCC6@localhost> Subject: Database backup and restore Date: Mon, 25 Nov 2002 17:58:57 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/249 X-Sequence-Number: 6437 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" To: "Colin Stearman" Cc: 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/