Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enmHc-0000f0-IW for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 14:19:08 +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 1enmHb-000860-9q for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 14:19:07 +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 1enmHb-00085q-2L for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 14:19:07 +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 1enmHX-0007uM-Hz for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 14:19:06 +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 EDB485466C for ; Mon, 19 Feb 2018 14:18:59 +0000 (UTC) Subject: Re: pgBackRest backup from standby To: pgsql-general@lists.postgresql.org References: From: David Steele Message-ID: Date: Mon, 19 Feb 2018 09:18:59 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: 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 Hi Don, On 2/18/18 7:34 PM, Don Seiler wrote: > > Looking to use pgBackRest to take a backup from a hot standby. I'm > reading that pgBackRest still needs to connect to the primary and copy > some files. My questions are: > > 1. What files does it need to copy? Config files? WAL files? It copies files that are not replicated from the primary so that a primary-style backup is created. Anything that is replicated (which is by far the bulk of the data) is copied from the standby. > 2. How does it connect? SSH? Yes. > 3. Does pgBackRest need to be installed and configured on the primary > as well? Yes. Anyway, it's best to archive from the primary so a replication failure does not affect your archiving. Configuring pgBackRest, SSH, standby, and backup from standby are all covered in the user guide. http://pgbackrest.org/user-guide.html In particular: http://pgbackrest.org/user-guide.html#backup-host http://pgbackrest.org/user-guide.html#replication http://pgbackrest.org/user-guide.html#standby-backup Regards, -- -David david@pgmasters.net