| От | Ganesan Kanavathy |
|---|---|
| Тема | pg_dump still requires password |
| Дата | |
| Msg-id | 002901c3a91a$a696a440$1300a8c0@headquarters.mq.com обсуждение |
| Ответы |
Re: pg_dump still requires password
|
| Список | pgsql-admin |
I want to do auto backup for pg with cronjob. The problem is it equesting for password.
I have tried with pgpass but still it does not work. I created the pgpass as per below:
echo your_host:5432:your_user:your_db:your_pass > ~/.pgpass bash$ chmod 600 ~/.pgpass
My cronjob entry is as below:
/usr/local/pgsql/bin/pg_dump --no-owner -d helpdesk -U ganesh > /www/htdocs/sg/backup/helpdesk.dump
When I issue the command it is asking for passwd which I cannot used for cronjob to run at midnight.
Please help. How I do solve this problem.
I have posted this earlier the suggestion was to use pgpass but that does not help. What other way can I achive this.
Regards,
Ganesan
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера