Re: backup strategies - Mailing list pgsql-general

From Glen Parker
Subject Re: backup strategies
Date
Msg-id 465CA7C7.6070707@nwlink.com
Whole thread Raw
In response to backup strategies  ("Richard P. Welty" <rwelty@averillpark.net>)
List 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


pgsql-general by date:

Previous
From: "Shoaib Mir"
Date:
Subject: Re: monitor stats
Next
From: "Diego Fernando Arce"
Date:
Subject: Re: monitor stats