From: Morus Walter <morus.walter@tanto.de>
To: Mark Reidenbach <m.reidenbach@everytruckjob.com>
Subject: Re: PITR WAL backups
Date: Thu, 3 Feb 2005 08:35:26 +0100
Message-ID: <16897.54334.12163.697101@tanto-xipolis.de> (raw)
In-Reply-To: <42012233.40700@everytruckjob.com>
References: <42012233.40700@everytruckjob.com>
Mark Reidenbach writes:
> The PITR documentation recommends that a user's archive command should
> not overwrite an existing wal archive file, but it appears you need at
> least the wal archive file that matches the .backup marker for the
> recovery process to succeed. This makes sense because the recovery
> process needs to replay what happened during the time it took to make
> the backup. The problem I'm having is that you need to backup this wal
> file before it's been archived to have a backup which is consistent, but
> the documentation also states you need to make sure not to overwrite
> existing files in your archive command.
>
...
> Is any of this correct or am I messing up the procedure entirely?
>
I'd like to know that as well, see the 'Online Backup and WAL archives'
thread.
I'm pretty sure that one thing you got wrong, is to say having the WAL
named after the .backup is sufficient for restoring the backup.
At least that's what I understood from your mail.
Depending on the amount of database changes during the backup there may
be a number of WALs created during the backup and I doubt that you can
miss any of them.
The question, how to make sure, to have enough WALs that the backup is
usable, is still open to me.
The general idea of WAL archiving is to keep all WALs so you can do PITR
to any point up to the failure.
But even then, it would be useful to know at which time sufficient WALs
are saved to make the backup useful.
Morus
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: morus.walter@tanto.de, m.reidenbach@everytruckjob.com
Subject: Re: PITR WAL backups
In-Reply-To: <16897.54334.12163.697101@tanto-xipolis.de>
References: <42012233.40700@everytruckjob.com> <16897.54334.12163.697101@tanto-xipolis.de>
* 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