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 1j09kB-0000tS-Ql for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2020 19:56:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j09kA-0002Eq-Eu for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2020 19:56:50 +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 1j09kA-0002Ej-66 for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2020 19:56:50 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j09k7-0004dz-EQ for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2020 19:56:49 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id AC7D45F79E; Fri, 7 Feb 2020 14:56:47 -0500 (EST) Date: Fri, 7 Feb 2020 14:56:47 -0500 From: Stephen Frost To: Andres Freund Cc: Magnus Hagander , Ian Barwick , Michael Paquier , pgsql-hackers Subject: pg_basebackup and snapshots Message-ID: <20200207195647.GM3195@tamriel.snowman.net> References: <20200205172259.GW3195@tamriel.snowman.net> <20200206070417.GJ23913@paquier.xyz> <20200207020702.o64l2i4mkv5us6oy@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9tUlQ46Yj7mbirJW" Content-Disposition: inline In-Reply-To: <20200207020702.o64l2i4mkv5us6oy@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9tUlQ46Yj7mbirJW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, (Moving to -hackers, changing thread title) * Andres Freund (andres@anarazel.de) wrote: > Maybe that's looking too far into the future, but I'd like to see > improvements to pg_basebackup that make it integrate with root requiring > tooling, to do more efficient base backups. E.g. having pg_basebackup > handle start/stop backup and WAL handling, but do the actual backup of > the data via a snapshot mechanism (yes, one needs start/stop backup in > the general case, for multiple FSs), would be nice. The challenge with this approach is that you need to drop the 'backup label' file into place as part of this operation, either by putting it into the snapshot after it's been taken, or by putting it into the data directory at restore time. Of course, you have to keep track of WAL anyway from the time the snapshots are taken until the restore is done, so it's certainly possible, as with all of this, it's just somewhat complicated. Certainly open to ideas on how to improve this. Thanks, Stephen --9tUlQ46Yj7mbirJW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJePcD/AAoJEO1sijiDR2RVt1IP/2iVvNZL5+0uPsIRZ6LcGvtN d6TpVU80o3XJMzZqh767YOWkukkbD6yyMNP0YC/VX0e3Tt78Fm5onQYMpUATaYO5 p1Fz8/1x/KfDjpPp0AXnvkzk6oIj2HNXBasVLwWu6iXU0f1GGMjtBmdf6Kx+KXip j8ux+3lpmSUxm55hQbyPy9LfiDTiOLM/ft2G7syzgmL7fMt3rpGT4dzelmh9KnRA 5pLWm87WQMfS6SMO+Azq6kN4QUHdHPFoBJsUlfNUPO2YQ4sJ3jdxuruPjeYTaHfd CA69Tl7Q7EDfXKV7F3ueTA+310IC0LQqknGD5tcA6em/H8bvFEFyQ47XKlOiX5k3 HPA0PjKn+2N0eybcTzCj/jnROXqntuy+DBRt1/ALRdFLEnaKyAbHyfF7Q6Xe+uTV 86MfTFd+iVSFEgATDR52+8zd5iYRH8EK6GON2yh8gRjtmjzeCkYePGq0djN0Mllu XmHVZ5QNW5DT1u/hai9qdM1YyLOvmYG7h1tf7Yz0NLiPo4Sfyji4Q1oriH/nml5T lcg2Xo/dhfM+ytObJ9AIbfS1cc2j6CPx/m45lxvszQIe1ODJGWYzocejnKSsPd1I ycwl2SYoS4h0See0xMeFcy8oqY5UlK080LIdLtyT3BeaNXSCgiPb6gD/DcPHs+7i 3PULJMck53jFcmVCD9Rs =Peoj -----END PGP SIGNATURE----- --9tUlQ46Yj7mbirJW--