From: | Nick Sayer <nsayer(at)quack(dot)kfu(dot)com> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: URGENT: undoing a mistake |
Date: | 2002-10-31 18:18:39 |
Message-ID: | 3DC173FF.8050107@kfu.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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).
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 2002-10-31 18:27:46 | Re: array character types |
Previous Message | Murthy Kambhampaty | 2002-10-31 17:10:33 | Re: Signal 11 |