Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6112847678A for ; Thu, 31 Oct 2002 13:22:18 -0500 (EST) Received: from quack.kfu.com (adsl-67-113-12-90.dsl.snfc21.pacbell.net [67.113.12.90]) by postgresql.org (Postfix) with ESMTP id 9BD20476763 for ; Thu, 31 Oct 2002 13:22:17 -0500 (EST) Received: from kfu.com (gate.cenzic.com [66.237.77.34]) (authenticated bits=0) by quack.kfu.com (8.12.6/8.12.6) with ESMTP id g9VIME7w002266 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 31 Oct 2002 10:22:16 -0800 (PST) (envelope-from nsayer@kfu.com) Message-ID: <3DC173FF.8050107@kfu.com> Date: Thu, 31 Oct 2002 10:18:39 -0800 From: Nick Sayer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: URGENT: undoing a mistake References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-5.0 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT, USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.41 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/322 X-Sequence-Number: 6180 Andrew Perrin wrote: >- Do a formal backup more often > > > For what it's worth, the FreeBSD "port" (http://cvsweb.freebsd.org/ports/databases/postgresql7/) for PostgreSQL contains a most excellent daily maintenance script (as written it's a FreeBSD "periodic" script, but it's more or less suitable to be a cron job). It does a pg_dump of all the databases (with blobs, as a -Fc) and vacuums all the tables. The one thing it doesn't do is a pg_dumpall -g (to save the users and groups), but I told the author this and he promises to include it in the next version. On a less topical note, there was much rejoicing concerning the ability (in 7.2) to use ident authentication on unix domain socket connections. I have a machine with untrusted (unix) users on it. This made backing up painful, because a password was needed. But now, pg_hba.conf simply has local all ident admin as the last line, and pg_ident.conf has admin pgsql pgsql Thus, unix user pgsql can connect to any database as db user pgsql without a password. Before I upgraded, I had to use local all password pg_suser with a pg_suser file with pgsql and an encrypted password, then set PGPASSWORD in my backup scripts (not the most secure thing to do).