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

Re: trouble with pg_dumpall

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
Cc: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>, "Phillip Smith" <phillip(dot)smith(at)weatherbeeta(dot)com(dot)au>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: trouble with pg_dumpall
Date: 2008-02-28 02:34:18
Message-ID: 20080227183418.143bbb03@commandprompt.com (view raw or flat)
Thread:
Lists: pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 27 Feb 2008 18:26:54 -0800
"Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu> wrote:


> But in the meantime, maybe I will take a
> bit different approach.  Namely:
> 
> Is there anyway I can pass the password to
> pg_dumpall via crontab?

You can use a pgpass file as the user calling the cron.

http://www.postgresql.org/docs/current/interactive/libpq-pgpass.html

Or you can use PGPASSWORD="foo"

But that can be dangerous.

Joshua D. Drake
- -- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL SPI Liaison | SPI Director |  PostgreSQL political pundit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHxh2tATb/zqfZUUQRAoTWAKCD7dgA5pSlDcu3xTWvei4K/KFqxACfQbVq
dJvLDR1LKM6yt2RyewQfNQI=
=y55x
-----END PGP SIGNATURE-----

In response to

pgsql-admin by date

Next:From: Tena SakaiDate: 2008-02-28 02:49:38
Subject: Re: trouble with pg_dumpall
Previous:From: Phillip SmithDate: 2008-02-28 02:32:58
Subject: Re: trouble with pg_dumpall

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