Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uWSij-00EAwY-3g for pgsql-general@arkaria.postgresql.org; Tue, 01 Jul 2025 04:35:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uWSig-003gwD-MF for pgsql-general@arkaria.postgresql.org; Tue, 01 Jul 2025 04:35:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uWSig-003gw3-Bk for pgsql-general@lists.postgresql.org; Tue, 01 Jul 2025 04:35:46 +0000 Received: from mx126.mail.hosttech.eu ([82.220.38.13] helo=126.hosttech.eu) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uWSie-0051my-19 for pgsql-general@lists.postgresql.org; Tue, 01 Jul 2025 04:35:46 +0000 X-Spam-Status: No X-hosttech-MailScanner-From: raphi@crashdump.ch X-hosttech-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.699, required 5, ALL_TRUSTED -1.00, BAYES_00 -1.90, HT_185 0.20, URIBL_BLOCKED 0.00) X-hosttech-MailScanner: Found to be clean X-hosttech-MailScanner-ID: 812B848549F1.A5713 X-hosttech-MailScanner-Information: Please contact the ISP for more information Received: from [192.168.1.205] (31-10-141-228.cgn.dynamic.upc.ch [31.10.141.228]) by 126.hosttech.eu (Postfix) with ESMTPSA id 812B848549F1 for ; Tue, 1 Jul 2025 06:35:37 +0200 (CEST) Message-ID: Date: Tue, 1 Jul 2025 06:35:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Simulate a PITR in postgresql 16 To: pgsql-general@lists.postgresql.org References: X-hosttech-server: 126.hosttech.eu From: raphi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am 30.06.2025 um 21:45 schrieb Ron Johnson: > Using PgBackRest might be more convenient, since it handles everything > you need, is multithreaded, never removes too many wal files, > compresses files if you want and also encrypts them if you want. > I agree, with pgBackRest it's basically: pgbackrest --stanza=demo --delta --type=time "--target=2025-05-05 15:37:03.157376+00" --target-action=promote restore and you are done. It will also restore configure files and you can also selectively restore only one DB in the cluster if you want to speed up things. Works very well with S3 too and is very easy to integrate in an ansible playbook to have a generic way to do PITRs. Check out the official user guide: https://pgbackrest.org/user-guide.html have fun raphi