pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chad Wagner <chad.wagner@gmail.com>
To: pedro noticioso <cucnews@yahoo.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: WAL files backup
Date: Sun, 18 Feb 2007 09:57:11 -0500
Message-ID: <81961ff50702180657kc890731sba4bd16a60cebcf7@mail.gmail.com> (raw)
In-Reply-To: <525241.48113.qm@web55403.mail.re4.yahoo.com>
References: <20070217003331.GE9724@alvh.no-ip.org>
	<525241.48113.qm@web55403.mail.re4.yahoo.com>

On 2/18/07, pedro noticioso <cucnews@yahoo.com> wrote:
>
> -rw-------  1 postgres staff  234 2007-02-16 10:12
> 000000010000000000000003
> -rw-------  1 postgres staff  234 2007-02-16 10:12
> 000000010000000000000004
> -rw-------  1 postgres staff  234 2007-02-16 10:12
> 000000010000000000000005.0024FD70.backup


Are these files 234 bytes long?  Also, where is the 05 logfile?  Can you
post your archive_command?


> LOG:  could not read from log file 0, segment 5 at
> offset 2416640: No such file or directory
>

This is because your archived logs are partial, it is expecting to read
XLOG_BLCKSZ and it had a partial read.  Clearly you are doing something
wrong, but there just isn't enough information.

I wrote an article about performing a hot backup with a Perl script that I
wrote called pg_hotbackup (available on pgfoundry), you can look at it here:
http://www.postgresqlforums.com/wiki/Backup_%26_Recovery

But you must follow the PostgreSQL documentation for setting up the
archive_command, which is more or less this:
archive_command = 'cp -i %p /var/lib/pgsql/backups/%f
</dev/null'


Also documented on that page is the recovery procedure.  It is all based on
the PostgreSQL documentation and has worked fine in my testing.

-- 
Chad
http://www.postgresqlforums.com/

view thread (18+ messages)  latest in thread

Message-ID: <81961ff50702180657kc890731sba4bd16a60cebcf7@mail.gmail.com>
Permalink:  ../81961ff50702180657kc890731sba4bd16a60cebcf7@mail.gmail.com/
Also on:    postgresql.org/message-id/81961ff50702180657kc890731sba4bd16a60cebcf7@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: chad.wagner@gmail.com, cucnews@yahoo.com, alvherre@commandprompt.com
  Subject: Re: WAL files backup
  In-Reply-To: <81961ff50702180657kc890731sba4bd16a60cebcf7@mail.gmail.com>
  References: <20070217003331.GE9724@alvh.no-ip.org> <525241.48113.qm@web55403.mail.re4.yahoo.com> <81961ff50702180657kc890731sba4bd16a60cebcf7@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