From: Scott Marlowe <smarlowe@g2switchworks.com>
To: John R. Allgood <john@turbocorp.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres Backup Questions
Date: Thu, 01 Jun 2006 11:30:44 -0500
Message-ID: <1149179444.25526.139.camel@state.g2switchworks.com> (raw)
In-Reply-To: <447F049E.2000408@turbocorp.com>
References: <447F049E.2000408@turbocorp.com>
On Thu, 2006-06-01 at 10:15, John R. Allgood wrote:
> Hello
>
> I have a question regarding backups on Postgresql 7.4.7-2. We are
> currently using a Progress database and will be moving over to Postgres
> this month. In Progress there is a way to verify your backups does
> Postgres have anything similiar or is there other ways to accompplish
> this. I am currently writing backup and other utility scripts and would
> like to incorporate this into my program.
I wrapped my backup in a bash script, and that seems to catch errors.
something like:
if !(
/data01/pg/bin/pg_dump dbname > dbname.sql
);
then
cat "backup failed"|mail -s "backup failed" yourname@yourdomain.com;
fi
To test this, I corrupted a table in a test database to force a hard
failure, and it sent an email. Don't know if it's a comprehensive test,
but it seems to work for us.
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: smarlowe@g2switchworks.com, john@turbocorp.com
Subject: Re: Postgres Backup Questions
In-Reply-To: <1149179444.25526.139.camel@state.g2switchworks.com>
References: <447F049E.2000408@turbocorp.com> <1149179444.25526.139.camel@state.g2switchworks.com>
* 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