Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9J3X-0000by-Mu for pgsql-admin@arkaria.postgresql.org; Tue, 09 Feb 2021 02:47:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l9J3V-0001cv-Rw for pgsql-admin@arkaria.postgresql.org; Tue, 09 Feb 2021 02:47:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9J3V-0001co-8j for pgsql-admin@lists.postgresql.org; Tue, 09 Feb 2021 02:47:09 +0000 Received: from admin.sibptus.ru ([2001:19f0:5001:21dc::10]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9J3R-0000hJ-R4 for pgsql-admin@lists.postgresql.org; Tue, 09 Feb 2021 02:47:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=kmEQ08yLn2GnyEM+q1fIeYfw4If/vSI+4cnEoDM+eZU=; b=FQy2cHRqYrZMN6b3WpvrTzw2wN l61Os2g9nMlqO3/zhZ/Nb6FXAuWeRoL06M0Cf1aaf5eAlZAJWRG3H/AXtLkgbvZigWf2g0TGKUGKZ KVBM5clhDHWrwGH8VRU4NBcMttKz5vpqCQgPE7No1XsU7j3rIWvXsbYh8Ly+sW8yNFtw=; Received: from vas by admin.sibptus.ru with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1l9J3O-000Kgo-R3 for pgsql-admin@lists.postgresql.org; Tue, 09 Feb 2021 09:47:02 +0700 Date: Tue, 9 Feb 2021 09:47:02 +0700 From: Victor Sudakov To: pgsql-admin@lists.postgresql.org Subject: Re: wal-g (https://github.com/wal-g/wal-g) reliability Message-ID: References: <20210208212840.GW27507@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210208212840.GW27507@tamriel.snowman.net> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost wrote: > > > > 2. Is there a `wal-g backup-fetch` option for truly self-sufficient > > restoration? > > Interesting that you ask this! I say that because it's actually a case > that pgbackrest contemplated and explicitly added support for- > specifically, if you set --archive-copy (or archive-copy=true) and > disable compression (or decompress everything before you start PG), then > you can just start PG from the backup and it'll perform the necessary > recovery from the WAL and start up. We considered this an interesting > use-case and used it extensively and have maintained support for it. Well, the release I've downloaded from https://github.com/wal-g/wal-g/releases does not seem to have the --archive-copy option. > > All that said, of course, this limits the ability to do typical PITR, Why? If you configure recovery_target_time and restore_command, it's all the same, isn't it? No matter if you have WAL archives in pg_wal, but it's better to have them. > but at least it gives you a consistent backup which you can start PG > from. > -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/