Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aYdt4-00080H-SC for pgsql-admin@arkaria.postgresql.org; Wed, 24 Feb 2016 18:10:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aYdt4-0007XR-Ca for pgsql-admin@arkaria.postgresql.org; Wed, 24 Feb 2016 18:10:10 +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) (envelope-from ) id 1aYdt3-0007Wl-RA for pgsql-admin@postgresql.org; Wed, 24 Feb 2016 18:10:09 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aYdsz-0000gw-Nw for pgsql-admin@postgresql.org; Wed, 24 Feb 2016 18:10:08 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 87E435F795; Wed, 24 Feb 2016 13:10:04 -0500 (EST) Date: Wed, 24 Feb 2016 13:10:04 -0500 From: Stephen Frost To: Keith Cc: "drum.lucas@gmail.com" , Scott Whitney , "David G. Johnston" , "pgsql-admin@postgresql.org" Subject: Re: Incremental Refresh - PostgreSQL 9.2 Message-ID: <20160224181004.GH3127@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="it/zdz3K1bH9Y8/E" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 13:05:49 up 1 day, 14:58, 3 users, load average: 0.08, 0.07, 0.12 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org --it/zdz3K1bH9Y8/E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Keith, * Keith (keith@keithf4.com) wrote: > However, once you restore that backup and bring it up as a standalone > database instance, you can no longer use the WAL stream from the original > instance to "replay" those changes. This is also the case with any sort of > rsync'ing of the data files from one instance to another. Right, but if you don't mind throwing away the changes which were made to the restored server (the test server) then you can use rsync (if the source database is shut down) to re-sync the restored server without having to re-copy everything (I'd strongly recommend using the CRC option to rsync). The same is possible with pgBackRest, which allows you to keep the source database online (pgBackRest will check that the hashes match between the backup and the restored system when doing incremental restores, there's no need to explicitly ask for that as there is with rsync). > You may be better off looking into a logical replication solution to copy > your data to a testing system if it needs to be a standalone system. That > is not currently built into Postgres, but it's on track for possible > inclusion with 9.6. In the mean time look into tools such as Mimeo or > Bucardo. >=20 > https://github.com/omniti-labs/mimeo > https://bucardo.org/wiki/Bucardo Right, and there's also Slony. These are useful if the requirement is that changes to the test/restored server be persisted. Thanks! Stephen --it/zdz3K1bH9Y8/E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJWzfH8AAoJEO1sijiDR2RVT+wP/0v8TbQUvMaTdrAJHKmZUZGZ 4E2lSc6U8QzLd1tDW+Kpnrv4cNz98TiCk3fxdp+x5LQR3kX6KRO/jMNtUY0sCTDO 9Rn7H7aLsfUeLwBYDepdv2O2g8y/PUUIUqqbCsJguIVcgODcXuhSxupUxiilG411 RbsJoI/HnQ9iEBONQ5bGVb2JZ8EjHozI6Nn03Z+8c6cQ55ZBFVzI6Ca4wgw6q2c3 P3AM34vgq7uJvAl9zE8aWr3+m+7WetJ5Lae66/i/Kh7wZP/GRjo6QwBPKa6zUnNc CXX4CA5UBTKov8D7l7Yr/lnMUqT8EpeJ8cYfQJ/rH12qEX6vuW0588jMAQy+yuuh 6DlR9S4sbvFneLUsXyjK5Zn7HQBx3vV8FzRASh7KHkc5UIs3mIqqjCbyT6Rb+qfX hDr6kp1ugR+HTNdfGLYfmZ8StaxPGeKJBzEddA7GePQ8W/xia7dU3mFzGf6ovN9Z 2mS9j3BLACZ+snXyFne+QwjKLLCRzQ+vpdfgpwL8dzWrIpEsAZrkG9qIcZeq71HO CcsnI9j+VzO+LVhWKSP0boumdlsqA7XkKVk4+1aDrrZatkOEnNY8uBcfIPRY3qDx xqLJBm3kGI+Y9hqtS5fAI5kdBWzfPc8NS08L61xkay7DpgsR3y32XvQHaJbw7t8j 2J4fl/JVNs77Wcwk0pyp =MRfL -----END PGP SIGNATURE----- --it/zdz3K1bH9Y8/E--