Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLQj2-00013y-AM for pgsql-general@arkaria.postgresql.org; Fri, 18 Oct 2019 11:47:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLQj0-0006ud-8l for pgsql-general@arkaria.postgresql.org; Fri, 18 Oct 2019 11:47:18 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLQiz-0006uS-VB for pgsql-general@lists.postgresql.org; Fri, 18 Oct 2019 11:47:18 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLQis-0003Fs-RD for pgsql-general@lists.postgresql.org; Fri, 18 Oct 2019 11:47:17 +0000 Received: from Davids-MacBook.local (unknown [213.215.245.62]) (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 462F954685; Fri, 18 Oct 2019 11:47:07 +0000 (UTC) Subject: Re: Postgres Point in time Recovery (PITR), To: Luca Ferrari , Andreas Joseph Krogh Cc: Daulat Ram , "pgsql-general@lists.postgresql.org" References: From: David Steele Message-ID: <3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.net> Date: Fri, 18 Oct 2019 13:47:05 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/18/19 11:29 AM, Luca Ferrari wrote: > On Fri, Oct 18, 2019 at 10:30 AM Andreas Joseph Krogh > wrote: >> We use barman (https://www.pgbarman.org/) for continuous streaming backup and I had to restore from it once, and it went like this: > > Just for the records, here's an example of restore with pgbackrest: > > % sudo -u postgres pgbackrest --stanza=miguel \ > --log-level-console=info --delta restore > ... > INFO: restore backup set 20190916-125652F > INFO: remove invalid files/paths/links from /postgres/pgdata/11 > INFO: cleanup removed 148 files, 3 paths > ... > INFO: write /postgres/pgdata/11/recovery.conf > INFO: restore global/pg_control (performed last > to ensure aborted restores cannot be started) > INFO: restore command end: completed successfully (5113ms) pgBackRest also has a tutorial on PITR: https://pgbackrest.org/user-guide.html#pitr -- -David david@pgmasters.net