RE: Backing up postgresql databases

Поиск
Список
Период
Сортировка
От John W Cunningham
Тема RE: Backing up postgresql databases
Дата
Msg-id BEEOLIJOIOBCOCILGHKIOEHDDBAA.john@pickaprof.com
обсуждение исходный текст
Ответ на Backing up postgresql databases  ("Peter Schuller" <peter.schuller@infidyne.com>)
Ответы Postgresql backup bash script.  (Grant <grant@conprojan.com.au>)
Re: Backing up postgresql databases  ("Peter Schuller" <peter.schuller@infidyne.com>)
Список pgsql-admin
Peter,

From what I understand (and I'm still fairly new to Postgres) you won't get
a perfect copy while Postmaster is running, but there is a way to backup the
entire database while it's running: pg_dumpall.

pg_dumpall by default is in the /usr/bin directory, and they usage is
simple: /usr/bin/pg_dumpall > filename - this will create a backup that
restores using SQL statements.

regards,
-John

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Peter Schuller
Sent: Saturday, March 17, 2001 9:39 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Backing up postgresql databases


Hello,

How do people normally backup up postgresql databases? The obviously safe
solution is to shut down the database during backup, but is Postgresql
storage such that it's safe to backup a running DB? I.e., is the database
guaranteed to be in a consistent state after restoration?

I'm talking a standard backup procedure now; say a tar -czvf. So that
assuming certain procedures during storage, it should be possible to
guarantee this (although it wouldn't be easy). The questions is,
does Postgresql do that? I'm sceptical :)

Thanks!

--
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0x5584BD98 or 'Peter Schuller <peter.schuller@infidyne.com>'
Key retrival: Send an E-Mail to getpgpkey@scode.infidyne.com
E-Mail: peter.schuller@infidyne.com Web: http://scode.infidyne.com


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


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

Предыдущее
От: "Peter Schuller"
Дата:
Сообщение: Backing up postgresql databases
Следующее
От: jreniz
Дата:
Сообщение: trigger problem!