Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E47CB1E62E85 for ; Wed, 25 Apr 2012 14:42:03 -0300 (ADT) Received: from mx2.d2.com ([66.251.81.121]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SN6E4-00031m-Se for pgsql-admin@postgresql.org; Wed, 25 Apr 2012 17:42:02 +0000 Received: from mxb.d2.com ([10.85.4.6]) by mx2.d2.com (8.13.8/8.13.8) with ESMTP id q3PIcFhV013207 for ; Wed, 25 Apr 2012 11:38:15 -0700 X-ASG-Debug-ID: 1335375701-01d10a6c97bccbf0001-ysJW5H Received: from mail01.d2.com ([172.16.66.171]) by mxb.d2.com with ESMTP id YoWOfFRhZOKDCtLM for ; Wed, 25 Apr 2012 10:41:41 -0700 (PDT) X-Barracuda-Envelope-From: aalvarez@d2.com Received: from exbew2k3-02.d2.com (exbew2k3-02 [10.78.2.16]) by mail01.d2.com (8.13.8/8.13.8/Debian-3) with ESMTP id q3PHff2C020862 for ; Wed, 25 Apr 2012 10:41:41 -0700 Received: from [10.126.2.222] ([10.126.2.222] RDNS failed) by exbew2k3-02.d2.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 Apr 2012 10:41:41 -0700 Message-ID: <4F983755.8020003@d2.com> Date: Wed, 25 Apr 2012 10:41:41 -0700 From: amador alvarez User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Backup/disaster recovery and bandwidth (long) References: <8D77E0D1-4AA7-4892-9508-58B7F21DDB18@elevated-dev.com> X-ASG-Orig-Subj: Re: [ADMIN] Backup/disaster recovery and bandwidth (long) In-Reply-To: <8D77E0D1-4AA7-4892-9508-58B7F21DDB18@elevated-dev.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Apr 2012 17:41:41.0549 (UTC) FILETIME=[AC91BDD0:01CD230A] X-Barracuda-Connect: UNKNOWN[172.16.66.171] X-Barracuda-Start-Time: 1335375701 X-Barracuda-URL: http://10.85.4.6:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at d2.com X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=BSF_SC1_TG070 X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.95143 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_SC1_TG070 Custom Rule TG070 X-Spam-Status: NO, score=-1.7 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RATWARE_GECKO_BUILD,SARE_SPEC_REPLICA_OBFU autolearn=no version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mx2.d2.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/135 X-Sequence-Number: 39471 I mean bucardo (even though there are more tools like this one) just for the replication stuff and the hot database backup only for the backup stuff and only one bounce is needed to turn the archiving on, you do not need to turn anything at all down during the backup. A.A On 04/25/2012 10:23 AM, Scott Ribe wrote: > On Apr 25, 2012, at 10:11 AM, Scott Whitney wrote: > >> I believe, then, that when I restart server #3 (the standby who is replicating), he'll say "oh, geez, I was down, let me catch up on all that crap that happened while I was out of the loop," he'll replay the WAL files that were written while he was down, and then he'll catch back up. >> >> Does this sound like a viable option? Or does someone have additional suggestions? > Perfectly viable. However, the WAL files must exist for this to happen. So you need to set wal_keep_segments appropriately, or set up WAL archiving. > > Note that you could even provide a more up-to-date database for your people to work with. If the testbed is nearly up to date, then an rsync to update it would take very little time. So you could shut down the replica, rsync, and bring the replica back up. > >