Re: PostgreSQL Backup Script - Mailing list pgsql-php

From Christopher Kings-Lynne
Subject Re: PostgreSQL Backup Script
Date
Msg-id 424CD58F.3040108@familyhealth.com.au
Whole thread Raw
In response to PostgreSQL Backup Script  ("Vishal Kashyap @ [SaiHertz]" <vishalonlist@gmail.com>)
Responses Re: PostgreSQL Backup Script
List 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

pgsql-php by date:

Previous
From: "Vishal Kashyap @ [SaiHertz]"
Date:
Subject: PostgreSQL Backup Script
Next
From: "Vishal Kashyap @ [SaiHertz]"
Date:
Subject: Re: PostgreSQL Backup Script