Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWhDb-00089a-P0 for pgsql-admin@arkaria.postgresql.org; Wed, 24 Sep 2014 07:42:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWhDb-000388-4c for pgsql-admin@arkaria.postgresql.org; Wed, 24 Sep 2014 07:42:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWhDa-000381-1I for pgsql-admin@postgresql.org; Wed, 24 Sep 2014 07:42:30 +0000 Received: from smtp1-g21.free.fr ([212.27.42.1]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWhDW-0005NW-IR for pgsql-admin@postgresql.org; Wed, 24 Sep 2014 07:42:28 +0000 Received: from UNKNOWN (unknown [172.20.243.133]) by smtp1-g21.free.fr (Postfix) with ESMTP id 0B89C9400CE; Wed, 24 Sep 2014 09:42:05 +0200 (CEST) Received: by UNKNOWN (Postfix, from userid 0) id 9FC511AB6CDD3; Wed, 24 Sep 2014 09:42:23 +0200 (CEST) Received: from ([145.242.20.40]) by imp.free.fr (IMP) with HTTP for ; Wed, 24 Sep 2014 09:42:22 +0200 Message-ID: <1411544542.542275de20713@imp.free.fr> Date: Wed, 24 Sep 2014 09:42:22 +0200 From: gparc@free.fr To: "Campbell, Lance" Cc: "pgsql-admin@postgresql.org" Subject: Re: Clarification on pg_basebackup References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 145.242.20.40 X-Pg-Spam-Score: -0.5 (/) 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 Selon "Campbell, Lance" : PostgreSQL 9.3 Would someone be able to clarify if one should use the -X option with pg_basebackup when your intention is to include all WAL files created? There are two scenarios. The first scenario listed below makes sense using the -X option. Bus scenario #2 has me a little confused. I don't want to cause any issues when restoring. 1) Use pg_basebackup for a fully standalone restorable snapshot of the database using the -X parameter. When a failure occurs you restore the database to that exact point in time. 2) You restore from a pg_basebackup and you also apply all of the WAL files since the last pg_basebackup. Do you want to use the -X option when doing the pg_basebackup if your intention is to have all of the WAL files since you backed up last? Or does it matter. Would PostgreSQL just ignore the duplicate WAL files that were created by the -X option during the pg_basebackup? Thanks for your clarification. This is a hard scenario to test. Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 [University of Illinois at Urbana-Champaign logo] For security, I will do both i.e pg_basebackup -X + continuous WAL archiving. Reason : you never know what could happen with your WAL archiving process. At least with -X you will have a "restartable" backup. Regards Gilles -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin