Re: PostgreSQL Backup Script

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: "Vishal Kashyap (at) [SaiHertz]" <vishalonlist(at)gmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: PostgreSQL Backup Script
Date: 2005-04-01 05:01:03
Message-ID: 424CD58F.3040108@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

> One obvious solution was to use .pgpass but it does not appeal me
> because it is again a security threat.
> any pointers or help may lead to unlocked secret.

.pgpass is the only way to do it that is NOT a security threat.

You can set PGUSER and PGPASSWORD environmental variables, but they are
easily readable from other processes.

I suggest allowing the 'postgres' user to connect with 'ident sameuser'
in pg_hba.conf from the localhost only, then always just run pg_dump as
'postgres'.

Chris

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Christopher Browne 2005-04-01 05:04:48 Re: PostgreSQL Backup Script
Previous Message Vishal Kashyap @ [SaiHertz] 2005-04-01 04:54:00 PostgreSQL Backup Script