pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason DiCioccio <geniusj@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Online Backups with 8.0 -- Confused
Date: Thu, 31 Mar 2005 18:41:31 -0500
Message-ID: <89bc2a0405033115412175ce96@mail.gmail.com> (raw)

Greetings,
  I am having some trouble figuring out exactly what I'm supposed to
be doing to successfully recover from an online backup.  I am not in a
critical situation or anything, simply doing some testing to make sure
that my backup system would work.  Here's the problem:

  I do a 'SELECT pg_start_backup('backup1');', it gives me the usual
successful result.  I then backup (via rsync) the data directory, in
this case /usr/local/pgsql/data.  This goes fine.  I then do a
pg_stop_backup(); and backup my archived WAL directory.  Here's where
the problem seems to occur.

  Should all of the WAL files necessary for restoration not be in the
archive directory after a pg_stop_backup();?  It does not appear that
this is the case, because if I try to restore a database backed up via
the method above, I receive the following errors:

cp: /usr/local/pgsql/archive/00000001.history: No such file or directory
cp: /usr/local/pgsql/archive/000000010000000000000022: No such file or directory
PANIC:  WAL ends before end time of backup dump
Abort trap (core dumped)

  Now, realize that ..0022 was not in the archive directory, and
actually is still not.  However, it seems to be requiring it.  Do I
have to wait for this log to be archived?  Is there a way that I can
force the archival of this WAL log?

  Any help would be greatly appreciated.

Thanks!
-JD-



view thread (6+ messages)  latest in thread

Message-ID: <89bc2a0405033115412175ce96@mail.gmail.com>
Permalink:  ../89bc2a0405033115412175ce96@mail.gmail.com/
Also on:    postgresql.org/message-id/89bc2a0405033115412175ce96@mail.gmail.com

 · 

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: geniusj@gmail.com
  Subject: Re: Online Backups with 8.0 -- Confused
  In-Reply-To: <89bc2a0405033115412175ce96@mail.gmail.com>
  References: <89bc2a0405033115412175ce96@mail.gmail.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