Cold backup with rsync -- WAL files?

From: Craig James <cjames(at)emolecules(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Cold backup with rsync -- WAL files?
Date: 2013-12-06 15:12:44
Message-ID: CAFwQ8rd+oDkLG4KWkux=2jwNinBnuwhY8DH3W-_58MGO1m3=Lg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

We need a "last chance" offsite backup of our backup server. Since the
backup server isn't accessed by customers, we have the luxury of being able
to shut it off briefly once per day. Call server "A" the backup, server "B"
is offsite backup-of-backup: The procedure I'd like to implement is:

server B is always "cold" (Postgres not running)
while A is running, rsync A --> B
stop Postgres on A
rsync A --> B
restart Postgres on A

My question is: what about the WAL files? Do I need to rsync them from A
to B too, or can/should I just clean out B's WAL directory, or something
else?

Thanks,
Craig

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Whitney 2013-12-06 15:24:28 Re: Cold backup with rsync -- WAL files?
Previous Message Craig James 2013-12-06 15:01:35 Re: Base Backups to a remote location