Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoxGr-0004SZ-8Y for pgsql-admin@arkaria.postgresql.org; Fri, 06 Dec 2013 15:24:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoxGq-0002C2-HS for pgsql-admin@arkaria.postgresql.org; Fri, 06 Dec 2013 15:24:48 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoxGp-0002AA-3C for pgsql-admin@postgresql.org; Fri, 06 Dec 2013 15:24:47 +0000 Received: from mail.journyx.com ([209.163.206.41] helo=mail.int.journyx.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoxGe-0000vG-Cn for pgsql-admin@postgresql.org; Fri, 06 Dec 2013 15:24:46 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id D25BFC423F; Fri, 6 Dec 2013 09:24:34 -0600 (CST) X-Virus-Scanned: amavisd-new at zimbra.int.journyx.com Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F1CW4foNboyJ; Fri, 6 Dec 2013 09:24:28 -0600 (CST) Received: from mail.int.journyx.com (zimbra.int.journyx.com [192.168.100.5]) by mail.int.journyx.com (Postfix) with ESMTP id 9BF42C425F; Fri, 6 Dec 2013 09:24:28 -0600 (CST) Date: Fri, 6 Dec 2013 09:24:28 -0600 (CST) From: Scott Whitney Reply-To: Scott Whitney To: Craig James Cc: pgsql-admin@postgresql.org Message-ID: <23125649.944094.1386343468257.JavaMail.root@mail.int.journyx.com> In-Reply-To: Subject: Re: Cold backup with rsync -- WAL files? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_944093_13950612.1386343468254" X-Originating-IP: [192.168.100.1] X-Mailer: Zimbra 7.2.4_GA_2900 (ZimbraWebClient - GC31 (Win)/7.2.4_GA_2900) X-Pg-Spam-Score: 0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org ------=_Part_944093_13950612.1386343468254 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Why not use cascading replication for this? That's precisely what I'm doing. ----- Original Message ----- > 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 ------=_Part_944093_13950612.1386343468254 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Why not use cascading replication for this? That's precisely what I'm doing.


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


------=_Part_944093_13950612.1386343468254--