From: Vishal Kashyap @ [SaiHertz] <vishalonlist@gmail.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-php@postgresql.org
Subject: Re: PostgreSQL Backup Script
Date: Fri, 1 Apr 2005 11:18:13 +0530
Message-ID: <77b69d2105033121483ce20e0a@mail.gmail.com> (raw)
In-Reply-To: <424CD58F.3040108@familyhealth.com.au>
References: <77b69d2105033120543ca670a7@mail.gmail.com>
<424CD58F.3040108@familyhealth.com.au>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: vishalonlist@gmail.com, chriskl@familyhealth.com.au
Subject: Re: PostgreSQL Backup Script
In-Reply-To: <77b69d2105033121483ce20e0a@mail.gmail.com>
References: <77b69d2105033120543ca670a7@mail.gmail.com> <424CD58F.3040108@familyhealth.com.au> <77b69d2105033121483ce20e0a@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox