Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecXDM-0003LP-3p for pgsql-admin@arkaria.postgresql.org; Fri, 19 Jan 2018 14:00:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecXDK-000617-Va for pgsql-admin@arkaria.postgresql.org; Fri, 19 Jan 2018 14:00:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ecXDK-00060x-Or for pgsql-admin@lists.postgresql.org; Fri, 19 Jan 2018 14:00:14 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ecXDD-0003Ie-5N for pgsql-admin@lists.postgresql.org; Fri, 19 Jan 2018 14:00:14 +0000 Received: from Davids-iMac.local (unknown [173.169.74.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 5525454774; Fri, 19 Jan 2018 14:00:05 +0000 (UTC) Subject: Re: backup postgresql with snapshot AWS To: flumbador@virgilio.it, pgsql-admin@lists.postgresql.org References: <166191299.1443519.1516368751643@mail.virgilio.it> From: David Steele Message-ID: <58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net> Date: Fri, 19 Jan 2018 09:00:04 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <166191299.1443519.1516368751643@mail.virgilio.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/19/18 8:32 AM, flumbador@virgilio.it wrote: > > I have a postgresql in Cloud AWS and I want to build the backup strategy > described below. > > The postgresql has PGDATA, Tablespace and XLOG on a Physical Volume, > mapping a single EBS disk. > The WAL archive filesystem is on a separate Physical Volume, mapping a > separate EBS disk. > OS is SLES 11sp4 and PG is 9.4 > > The Backup procedure is: > > 1) Start Backup > 2) "AWS EBS Snapshot" of the Physical Volume containing PGDATA, > Tablespace and XLOG > 3) Stop Backup > 4) "AWS EBS Snapshot" of the Physical Volume containing WAL archived > > To allow PITR the WAL archive are also archived with a filesystem backup > > Is someone using a similar backup strategy? A strategy like this is posted to the lists from time to time. > Are there tips or warning that I should be aware of? Rolling your own backup solution is generally not a good idea. It's a lot harder to get right than it seems and an incorrect solution is often not discovered until it is too late. Since you are on AWS you should consider using a backup solution like pgBackRest or WAL-G that support backups to S3. Regards, -- -David david@pgmasters.net