Re: automating backup ?

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: automating backup ?
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C771C@algol.sollentuna.se
обсуждение исходный текст
Ответ на automating backup ?  ("Zlatko Matic" <zlatko.matic1@sb.t-com.hr>)
Список pgsql-general
> Hello.
> I created a Windows XP schedule for backup, following your
> instruction. Now I have a .bat file with this script:
>
> cd D:\Program Files\PostgreSQL\8.0\bin
> pg_dumpall >D:\MYDATABASE_DUMPALL -U postgres pg_dumpall
> >D:\MYDATABASE_SHEMA -U postgres -s pg_dumpall
> >D:\MYDATABASE_GLOBALS -U postgres -g
>
> Well, it works OK, but prompts for password every time. Is
> there any way that I pass the superuser password (off course,
> in safe way) so that it works automatically without prompting
> for password ?

Use a pgpass.conf file:
http://www.postgresql.org/docs/8.0/static/libpq-pgpass.html (remember
the file has to be in the profile of the account that executes the step.
And be sure to protect it with file system ACLs so other users can't
read it)

//Magnus

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Postmaster Out of Memory
Следующее
От: Gregory Youngblood
Дата:
Сообщение: Performance Tuning Best Practices for 8