Getting cozy with weekly PITR - Mailing list pgsql-general

From Joey K.
Subject Getting cozy with weekly PITR
Date
Msg-id 467669b30809220041n383882bbqd17e4048bab7c07a@mail.gmail.com
Whole thread Raw
Responses Re: Getting cozy with weekly PITR
List pgsql-general
Hello,

Thanks for advice/suggestions on PITR so far. 

We have finally decided to do weekly PITR base backups.  Just have one nagging question.

== week 1==-
* pg_start_backup()
* tar -cvzf basebackup_week1.tar.gz pgdata/
* pg_stop_backup()

cp WAL1 week1/wal/
..
cp WAL2 week1/wal/
==*==

Week 1, we perform base backup and WAL will be backed up by PG.

==week 2==
* pg_start_backup()
* tar -cvzf basebackup_week2.tar.gz pgdata
* pg_stop_backup()
cp WAL1 week2/wal/
...
cp WAL2 week2/wal
...
rm -f  basebackup_week1.tar.gz
rm -rf week1/wal
==*==

During week 2, after the base backup, can we remove week 1's base and WAL files?

I assume this is okay since week 2's PITR backup is as good as new but just wanted to be doubly sure about it before we get rid of week 1's backup.

Steve

 

pgsql-general by date:

Previous
From: "Dave Page"
Date:
Subject: Re: [HACKERS] macport for libpqxx
Next
From: Michael Toews
Date:
Subject: Re: Synchronize two similar tables: recursive triggers