Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epkMQ-0002Ac-UI for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 00:40:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epkMQ-00053T-0z for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 00:40:14 +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_2) (envelope-from ) id 1epkMP-00053J-Pc for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 00:40:13 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1epkMN-0004qZ-46 for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 00:40:13 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 8C3115F79C; Sat, 24 Feb 2018 19:40:09 -0500 (EST) Date: Sat, 24 Feb 2018 19:40:09 -0500 From: Stephen Frost To: Ron Johnson Cc: pgsql-general@lists.postgresql.org Subject: Re: pg_update to a new machine? Message-ID: <20180225004009.GW2416@tamriel.snowman.net> References: <09489f15-b756-9e6d-c081-a8cdf0f9b483@cox.net> <74ef8c30-0db7-84ad-b04e-1975fe2977e4@cox.net> <8b083b6c-2774-ffd4-cac1-61affc3996af@cox.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jL84ki0LO6b3LGgj" Content-Disposition: inline In-Reply-To: <8b083b6c-2774-ffd4-cac1-61affc3996af@cox.net> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --jL84ki0LO6b3LGgj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ron, * Ron Johnson (ron.l.johnson@cox.net) wrote: > On 02/24/2018 03:10 PM, Stephen Frost wrote: > [snip] > >>To set up log shipping on 8.4, I do this, which works well: > >> > >>select pg_start_backup('some_meaningful_tag'); > >>nohup rsync -avz /var/lib/pgsql/data/* postgres@${DESTIP}:/var/lib/pgsq= l/data/ & > >>select pg_stop_backup(); > >That's not log shipping, for log shipping you need to specify an > >archive_command and actually capture all of the WAL generated, or, at a > >minimum, the WAL generated between the start and stop backup calls. >=20 > That's steps #8, 9 and 10 (in our checklist) of setting up log shipping.= =A0 > Step #4 is configuring the archive_* statements in postgresql.conf. I would still recommend you use a tool developed specifically for taking proper PG backups which validates that all WAL generated during a backup is properly archived, such as pgBackRest, which also makes sure to sync all the data out to persistent storage and can also operate in parallel and perform incremental restores. Thanks! Stephen --jL84ki0LO6b3LGgj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJakgXpAAoJEO1sijiDR2RVF+MQAIeoSJAtEGD4RYRg24OU9D/O DNa+XUOZcweXzfrrsoBPJ+VDRcv/WFrDoKDgyN+w7wES9WU3NlomXSRaN0qe469X GbEhB4PQ6s6/HeDhF4OW9hwJycojRVDkdzJbpp0CqlKT7k9zWmSJvQytGwKsQpNZ MecS8VNMTccM4Apzd7GWIqDm6aER1SvUF9lhEG6b+NDbOCufO971tKCZ2A75ErGo yKyYBr/bq41vkpS5lB3Yr555uflRxsdHmar3wPxDHdQXjiGCjNeXAROJwsaty/LS Icj4VVmfLpMqHCMRlAPWVUtNYNIcTDjb0p/P4jpbRUeIdaOjr36FWrhB53ka/Rz5 BC5E+CZynfIUy84DfU6uFtZACl/cTbHhlA9vF3MexirgMz7u700Rhi5lFf8CO+et w4YXBGuCUqtrWd44su4ia/AOq5b0TPv7NXyIuodeK34qcbjmW+xhu7LJWuTkZara PQ1AEmimLVm7sJCRu2mwrQgJ13PiiljozrZUqh46mGQv6AXlE5QAdB/V3vBNqg1b FLhf6FKQWPinAPAjlPH39/HLVKqaiB7rxTpUL7RA3+qsTG6P2i4MeLJVGp4YfmTB Whokg0Cix+2sXnBmrHYfCKsdUc72/fKFrCxHO+EKG4ORrvLwAOxB/LaBez8jTXr1 iVsT9dZC0Dbm/zvdtlaf =6piW -----END PGP SIGNATURE----- --jL84ki0LO6b3LGgj--