pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eduardo J. Ortega <ejortegau@cable.net.co>
To: pgsql-admin@postgresql.org
Subject: online tape backup
Date: Fri, 09 Feb 2007 19:51:11 -0500
Message-ID: <200702091951.14100.ejortegau@cable.net.co> (raw)

Hi:

I'm attempting to set up online backup as described on 
http://www.postgresql.org/docs/8.1/static/backup-online.html
For this, i am following these steps:

1) pg_start_backup
2) tar to my tape device /data/postgresql excluding /data/postgresql/pg_xlog
3) pg_stop_backup
4) delete WAL files under /data/pg_trans_log/ (which is the directory to which 
archive_command copies my archived WAL files) with name "smaller" than the 
name of the last 000*.backup
5) append to previously created tar on the tape the WAL 
directory /data/pg_trans_log/ 

So, you see, i run tar 2 times, first for pg data dir, second for wal archive 
dir. Everything worked OK for about a week. Now the second tar (the one 
archiving the WAL  files) exits with status 2, no errors on stderr. If i 
check the contents of the tar on the tape, they are wrong.

Is there anything wrong with this procedure? Any other approaches to tape 
backup that do *not* involve using pg_dump (because of database size, dump 
time and performance issues)?

Any help is greatly appreciated. 

-- 
Eduardo J. Ortega - Linux user #222873 
"No fake - I'm a big fan of konqueror, and I use it for everything." -- Linus 
Torvalds



view thread (6+ messages)  latest in thread

Message-ID: <200702091951.14100.ejortegau@cable.net.co>
Permalink:  ../200702091951.14100.ejortegau@cable.net.co/
Also on:    postgresql.org/message-id/200702091951.14100.ejortegau@cable.net.co

 · 

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: ejortegau@cable.net.co
  Subject: Re: online tape backup
  In-Reply-To: <200702091951.14100.ejortegau@cable.net.co>
  References: <200702091951.14100.ejortegau@cable.net.co>

* 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