Re: Backup / Restore

Поиск
Список
Период
Сортировка
От V i s h a l Kashyap @ [Sai Hertz And Control Systems]
Тема Re: Backup / Restore
Дата
Msg-id 40D9855D.60804@sancharnet.in
обсуждение исходный текст
Ответ на Backup / Restore  ("Eduardo S. Fontanetti" <dufuzzy@yahoo.com.br>)
Список pgsql-admin
Dear Eduardo ,

>What is the most recommended way to backup a
>PostgreSQL database?
>
>
>
pg_dump --disable-triggers -U <user_name> -a -d -b -D -Fc -Z 9 -f
<filername.tar.gz> <dbname>
+
A file system backup could be done but for this you will have to
shutdown PostgreSQL server
before filesystem backup is done

>And to restore it?
>
>
pg_restore --disable-triggers -U <user_name> -d <dbname>
<backupfilename.tar.gz>
IN case of Filesystem backup just stop PostgreSQL and replace the Dumped
or Tared file of the
filesystem

Links
http://www.commandprompt.com/ppbook/index.lxp?lxpwrap=x17860%2ehtm
And ofcource the PostgreSQL documentation itself

--
Best Regards,
Vishal Kashyap
Director / Lead Software Developer,
Sai Hertz And Control Systems Pvt Ltd,
http://saihertz.rediffblogs.com [Soon http://www.saihertz.com]
Yahoo  IM: coeb_college[ a t ]yahoo.com


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

Предыдущее
От: juanmime@ono.com
Дата:
Сообщение: Asunto: Re: Problems restoring a DB with oids
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problems with the connection to a Remote Database.