Skip site navigation (1) Skip section navigation (2)

Re: PostgreSQL Backup Script

From: "Vishal Kashyap (at) [SaiHertz]" <vishalonlist(at)gmail(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: PostgreSQL Backup Script
Date: 2005-04-01 05:48:13
Message-ID: 77b69d2105033121483ce20e0a@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-php
> 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'.

That means 

# TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
host    <mydb>  <myuser>         localhost     255.255.255.255    
ident sameuser

only <myuser> will NOT be asked for password when it does
pg_dump -U <myuser>
when logged in to its shell account with <myuser>
and If I run a crontab with user <myuser> the above lines again stands true.


What you say ?

-- 
With Best Regards,
Vishal Kashyap.
Lead Software Developer,
http://saihertz.com,
http://vishalkashyap.tk

In response to

Responses

pgsql-php by date

Next:From: enzo venegas palaciosDate: 2005-04-01 12:47:35
Subject: migrate data
Previous:From: Christopher BrowneDate: 2005-04-01 05:04:48
Subject: Re: PostgreSQL Backup Script

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group