| От | Raymond O'Donnell |
|---|---|
| Тема | Re: Automated Database Backups |
| Дата | |
| Msg-id | 4CB9D03C.8060805@iol.ie обсуждение исходный текст |
| Ответ на | Automated Database Backups (John Iliffe <john.iliffe@iliffe.ca>) |
| Ответы |
Re: Automated Database Backups
|
| Список | pgsql-general |
On 15/10/2010 22:12, John Iliffe wrote:
> Does anyone have a way to run pg_dump from cron in a way that doesn't
> require someone to enter the password on every run? I get the following
> error even when the backup user has read permissions on all application
> databases.
You need to use a .pgpasss file:
http://www.postgresql.org/docs/9.0/static/libpq-pgpass.html
You can instead specify the password in an environment variable, but
that potentially makes it visible to all users on the system, so the
.pgpass is better.
HTH,
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера