Re: backup strategies

From: Glen Parker <glenebob(at)nwlink(dot)com>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Cc: "Richard P(dot) Welty" <rwelty(at)averillpark(dot)net>
Subject: Re: backup strategies
Date: 2007-05-29 22:23:03
Message-ID: 465CA7C7.6070707@nwlink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard P. Welty wrote:
> but what are the consequences of backing up a WAL file
> if the archive process (probably scp in this case) is running
> when the backup copy is made? the whole thing won't make it onto
> tape, are there any downsides to running a recover with
> an incomplete WAL file?

The WAL file will obviously be no good. Just do something like:

cp $WALFILEPATH $ARCHIVE/$WALFILENAME.NEW
mv $ARCHIVE/$WALFILENAME.NEW $ARCHIVE/$WALFILENAME

Then simply exclude "*.NEW" from your backup.

-Glen

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Diego Fernando Arce 2007-05-29 22:30:19 Re: monitor stats
Previous Message Shoaib Mir 2007-05-29 22:07:17 Re: monitor stats