pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: Phillip Smith <phillip.smith@weatherbeeta.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: trouble with pg_dumpall
Date: Wed, 27 Feb 2008 18:34:18 -0800
Message-ID: <20080227183418.143bbb03@commandprompt.com> (raw)
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C0378F0D5@egcrc-ex01.egcrc.org>
References: <02b401c879a7$f0f07950$9b0014ac@wbaus090>
	<FE44E0D7EAD2ED4BB2165071DB8E328C0378F0D3@egcrc-ex01.egcrc.org>
	<FE44E0D7EAD2ED4BB2165071DB8E328C0378F0D5@egcrc-ex01.egcrc.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 27 Feb 2008 18:26:54 -0800
"Tena Sakai" <tsakai@gallo.ucsf.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-----


view thread (22+ messages)  latest in thread

Message-ID: <20080227183418.143bbb03@commandprompt.com>
Permalink:  ../20080227183418.143bbb03@commandprompt.com/
Also on:    postgresql.org/message-id/20080227183418.143bbb03@commandprompt.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jd@commandprompt.com, tsakai@gallo.ucsf.edu, phillip.smith@weatherbeeta.com.au
  Subject: Re: trouble with pg_dumpall
  In-Reply-To: <20080227183418.143bbb03@commandprompt.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