Re: Help automate pg_dump

Поиск
Список
Период
Сортировка
От William Meloney
Тема Re: Help automate pg_dump
Дата
Msg-id 20020618140021.ZMYJ24790.fl-mta06@ats3696
обсуждение исходный текст
Ответ на Help automate pg_dump  (nothanks@nowhere.com)
Список pgsql-general
Hello, Evan,

We use RedHat 7.2

Do an su to (or login as) postgres and create a cron job that runs your backup script.  When cron runs the job it
assumesthe postgres user ID and runs the job, hence no username or password needed.  Note, it maybe necessary to
re-establishposgtres' rights locally if they have been modified from the original install. 

Good luck.

======= At 2002-06-18, 02:01:00 you wrote: =======

>We just upgraded from 7.1.3 to 7.2.1 and are at a loss on how to
>script the pg_dump routine. We use this tool for backup, but can not
>get around the requirement for username/password to be interactive.
>
>We require login from the localhost, and can not revert to trusted
>connections.
>
>If the username/password must be interactive, how can I script backup
>of the server?
>
>Evan,



Best regards.
William Meloney
bmeloney@mindspring.com
2002-06-18




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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Stored Procedures for Shell Execution
Следующее
От: Tom Lane
Дата:
Сообщение: Re: regular expression question