Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0F56047675D for ; Fri, 22 Nov 2002 14:41:59 -0500 (EST) Received: from ashdown.infofind.com (infofind.com [216.129.137.2]) by postgresql.org (Postfix) with ESMTP id C068447672A for ; Fri, 22 Nov 2002 14:41:57 -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 gAMJfWet015788; Fri, 22 Nov 2002 14:41:36 -0500 Message-ID: <01f901c2925f$2b128e60$3301a8c0@Colin2000> From: "Colin Stearman" To: "Dan Langille" Cc: References: <3DDE39A9.13074.C40F87B6@localhost> Subject: Re: Database backup and restore Date: Fri, 22 Nov 2002 14:41:28 -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/206 X-Sequence-Number: 6394 Dan, On first glance at dima's script it does not seem to deal with blobs, although could easily me made to do so. Also it does not address automated reloading. In light of the fact that blobs must be output by -Ft or -Fc in pg_dump, which are tar and custom respectively, the result of an entire db set dump would be one file of this type per database. Maybe the name could be used in a similar reverse-direction script to send each to pg_restore to reload things. I'll be working on it some more and will share what I come up with. It seems a glaring omission that it is impossible to upgrade PostgreSQL across major versions if your database(s) contain blobs (at least, not without a lot of work). Colin ----- Original Message ----- From: "Dan Langille" To: "dima" <_pppp@mail.ru> Cc: Sent: Friday, November 22, 2002 2:05 PM Subject: Re: [ADMIN] Database backup and restore On 22 Nov 2002 at 19:07, dima wrote: > i wrote a script in perl which dumps all the DBs but template* > i can mail it to you if you wish Why not post it to the list? That way it's available for everyone. I'm guessing it'll be less than 2K or so... -- Dan Langille : http://www.langille.org/ ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org