RE: Backing up postgresql databases - Mailing list pgsql-admin

From John W Cunningham
Subject RE: Backing up postgresql databases
Date
Msg-id BEEOLIJOIOBCOCILGHKIOEHDDBAA.john@pickaprof.com
Whole thread Raw
In response to Backing up postgresql databases  ("Peter Schuller" <peter.schuller@infidyne.com>)
Responses Postgresql backup bash script.  (Grant <grant@conprojan.com.au>)
Re: Backing up postgresql databases  ("Peter Schuller" <peter.schuller@infidyne.com>)
List 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 by date:

Previous
From: "Peter Schuller"
Date:
Subject: Backing up postgresql databases
Next
From: jreniz
Date:
Subject: trigger problem!