Обсуждение: automatic backup

Поиск
Список
Период
Сортировка

automatic backup

От
"Jefferson Bonamim - Glan Data Sistemas"
Дата:

Hello,

My name is Jefferson and I am an user of Postgres.

I use the Postgresql 8.0.15 for Windows in some clients and I have a question.

I needed to know how to configurate the automatic backup on PG Admin 1.10.

 

I see the FAQ, but I don’t understood anything.

How do I configure this?

Can you help me please?

 

Thanks,

Jefferson.

 

 

Re: automatic backup

От
"Massa, Harald Armin"
Дата:
Hello Jefferson,

to answer your question:

a) PostgreSQL 8.0 was End-Of-Lived in 2007. You should start your sales-pitch of updating to something more recent, as in PostgreSQL 8.4 or 9.0

b) to setup an automatic backup on Windows at a client side with no local DBA (or similiar qualified personel), your success will be better when using pg_dump and "planned tasks".


In a nutshell:

create .cmd files with 
pg_dump -U <username> --format=C <databasename> > dumpfilename.dmp

schedule those .cmd files to run BEFORE any file based backup of the dumpfilename.dmp files happens

(as an exercise: create a daily different dumpfilename via script, run the same .cmd every day)

best wishes,

Harald

On Fri, Nov 19, 2010 at 14:19, Jefferson Bonamim - Glan Data Sistemas <jefferson@glandata.com.br> wrote:

Hello,

My name is Jefferson and I am an user of Postgres.

I use the Postgresql 8.0.15 for Windows in some clients and I have a question.

I needed to know how to configurate the automatic backup on PG Admin 1.10.

 

I see the FAQ, but I don’t understood anything.

How do I configure this?

Can you help me please?

 

Thanks,

Jefferson.

 

 




--
GHUM GmbH
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607

Amtsgericht Stuttgart, HRB 734971
-
persuadere.
et programmare

Re: automatic backup

От
Jeferson Alberto Rodrigues
Дата:
Fala xará! Como vai?

Eu já fiz um esquema assim, para fazer backup de um determinado banco de dados, em Linux, utilizando o CRON, que não passa de um Agendador de Tarefas, assim como também tem no Windows.

Pelo que eu vi, no Painel de Controle deve ter um ícone para o Agendador de Tarefas, e nele você adiciona uma tarefa nova, colocando a seguinte linha de comando, por exemplo:

C:\PostgreSQL\pg_dump -F p -d nome_bd -f arq_saida.sql

Como este é só um exemplo, não coloquei muitos parâmetros, mas o pg_dump tem vários. Uma documentação mais completa vc encontra aqui:

http://pgdocptbr.sourceforge.net/pg80/app-pgdump.html

Uma dica bacana que vc pode utilizar também é gerar um dump através do PgAdmin3, e na tela de debug do dump, ele mostra a sintaxe que foi utilizada. Copia ela e cola na tarefa agendada. É bem mais fácil assim.

Qualquer coisa estou a disposição.

Att.

Jeferson Rodrigues

Em 19/11/2010 às 11:34 horas, "Jefferson Bonamim - Glan Data Sistemas" <jefferson@glandata.com.br> escreveu:

Hello,

My name is Jefferson and I am an user of Postgres.

I use the Postgresql 8.0.15 for Windows in some clients and I have a question.

I needed to know how to configurate the automatic backup on PG Admin 1.10.

 

I see the FAQ, but I don’t understood anything.

How do I configure this?

Can you help me please?

 

Thanks,

Jefferson.