pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: C. Bensend <benny@bennyvision.com>
To: pgsql-admin@postgresql.org
Subject: pg_dump vs pg_dumpall - small database cluster, complete recovery method needed
Date: Fri, 19 Dec 2003 23:51:06 -0600 (CST)
Message-ID: <59830.63.227.74.41.1071899488.squirrel@webmail.stinkweasel.net> (raw)


Hey folks,

  I'm a systems/network guy and not a developer/DBA, FYI.  I'm in the
process of redoing a personal, low-traffic website to use PHP and
PostgreSQL as a learning exercise.  I've got all the code done and the
database is populated, so now I'm tying up the loose ends, namely backups.
I am using PostgreSQL 7.3 on OpenBSD 3.4-STABLE.

  I've been going over the docs for pg_dump and pg_dumpall, and I just
want to make sure I'm understanding things correctly.  If I'm reading
things right, pg_dump is probably better suited to dumping individual
databases, and pg_dumpall is suited to dumping a database _system_ (ie,
multiple databases on one host).

  What I need:  In case of complete system failure, I need to be able to
recreate a database cluster from step 0 through accepting connections.
I can easily reproduce the database machine with PostgreSQL in a matter
of an hour.  From that specific point, having a completely clean DB, I
need to restore all users, passwords, databases, sequences, etc.

  pg_dumpall seems to do this for me, without any command-line args
needed.  Am I correct in saying that 'pg_dumpall > filename' will produce
a PostgreSQL dump that includes _everything_ I need to go from a clean
PG install to accepting connections again with data intact?  Users,
passwords, etc?

  I just want to be _very_ sure of this, before I automate the entire
process.  :)  I did attempt to search the archives for pgsql-admin, but
the archives seem to not be happy at the moment.  Hopefully, this isn't
a FAQ, I did read through the FAQs on postgresql.org (it's always
possible I missed something).

Thanks folks!  PostgreSQL is a very impressive project.

Benny


-- 
"Hey, get in here, Boozy!  You're late for your drunkening!"
                                                    -- Moe, "The Simpsons"



view thread (4+ messages)  latest in thread

Message-ID: <59830.63.227.74.41.1071899488.squirrel@webmail.stinkweasel.net>
Permalink:  ../59830.63.227.74.41.1071899488.squirrel@webmail.stinkweasel.net/
Also on:    postgresql.org/message-id/59830.63.227.74.41.1071899488.squirrel@webmail.stinkweasel.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: benny@bennyvision.com
  Subject: Re: pg_dump vs pg_dumpall - small database cluster, complete recovery method needed
  In-Reply-To: <59830.63.227.74.41.1071899488.squirrel@webmail.stinkweasel.net>
  References: <59830.63.227.74.41.1071899488.squirrel@webmail.stinkweasel.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox