Re: trouble with pg_dumpall

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: trouble with pg_dumpall
Дата
Msg-id 20080227183418.143bbb03@commandprompt.com
обсуждение исходный текст
Ответ на Re: trouble with pg_dumpall  ("Tena Sakai" <tsakai@gallo.ucsf.edu>)
Список pgsql-admin
-----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-----

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Phillip Smith"
Дата:
Сообщение: Re: trouble with pg_dumpall
Следующее
От: "Tena Sakai"
Дата:
Сообщение: Re: trouble with pg_dumpall