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 1lFVtO-0004PS-Oq for pgsql-docs@arkaria.postgresql.org; Fri, 26 Feb 2021 05:42:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFVtN-00027e-MF for pgsql-docs@arkaria.postgresql.org; Fri, 26 Feb 2021 05:42:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFVtM-00027X-9c for pgsql-docs@lists.postgresql.org; Fri, 26 Feb 2021 05:42:21 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFVtE-0002D5-VL for pgsql-docs@lists.postgresql.org; Fri, 26 Feb 2021 05:42:19 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 83BFE5C00AC; Fri, 26 Feb 2021 00:42:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 26 Feb 2021 00:42:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=ZdUoEMuF1RPMG0fNmHvhTXWaKRB DqUQV/Qh4tXOuB0s=; b=RwX1d3pRXEOlsp4C0A0y9A8kFzfj5Jpy3s3amNqiZa1 vHABgfp3RO0i4NPh7VmsyZIK9jcx9L8M8lj0Bn+lSVX8DYky7jfd+jpLSrrdNlKJ WnRv5sJfzTi0/l3Z/zFaRcZzwvgrHnoQewBGNbQVaVwLrHsSsuqe3J4tWOxf7Hw9 4vK/+IrS14YnEmLVycm6NoWdUAzpNROGORchh8faXVJjEau7qkcgDj760lV/IHUZ jaevfkv2oNJ3852suYgEPyqgv2d1EvnFMFttOxEbUv345lcRguYDMmGPocIETlTa YfAPHypdgM9URAXgQHnm1E8haazeLeJjH1FGkg5QVNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ZdUoEM uF1RPMG0fNmHvhTXWaKRBDqUQV/Qh4tXOuB0s=; b=iIQWjtAhHTL8AJ0lhCs8vG QWUfzSJcy9jJ6O349Wnz/1D3YK7K7afl/mL8K0cM4R4Ga2vPb4YXx7doOD6LEWVa NWbSKm89HwdpfDNMPFLxgMbAtN2kZyadzfnaR6gQgP+3VHt0nF3Ah6X+n/cFlSq/ uq7Ini+45A3kpVKB2OUgk7BeyMU8Z2NRouwPMI/qymO1b5rxJRS3h6FHimyLaCIO JG6PkES8adRoz32EHtv8BqFi4Nrur4vojUjrTw2KUIsdCM2fYSjt/VtzjgULrFTF hwoMa4SrSSV49RQxKF5b+vXNR6N+LRHNaXITnJcKJUb42q0SYjgSX150vTcRboaA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrledtgdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrddukedtrd dukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id A39E824005D; Fri, 26 Feb 2021 00:42:08 -0500 (EST) Date: Fri, 26 Feb 2021 14:42:03 +0900 From: Michael Paquier To: Fujii Masao Cc: Philipp Gramzow , pgsql-docs@lists.postgresql.org Subject: Re: incoorect restore_command Message-ID: References: <161397938841.15451.13129264141285167267@wrigleys.postgresql.org> <478b5b00-5ab3-a1b5-65f4-19b4409c720b@philphonic.de> <3c8a08bb-3eaa-cdc6-08f9-3298342722c2@oss.nttdata.com> <06d9fc43-7ea9-20cc-191e-401136bc86fa@oss.nttdata.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="exazu19mLwS+gDdj" Content-Disposition: inline In-Reply-To: <06d9fc43-7ea9-20cc-191e-401136bc86fa@oss.nttdata.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --exazu19mLwS+gDdj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 25, 2021 at 06:03:57PM +0900, Fujii Masao wrote: > Regarding the section "Standalone Hot Backups", all the directories and > file seem to be placed under /var/lib/pgsql, so at least for me it looks = a bit > strange to change only the path of archive directory. So I don't think th= at > we need to do this change. > > -tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/ > +tar -rf /var/lib/pgsql/backup.tar /mnt/server/archivedir/ >=20 > Same as above. Okay. I found the thing a bit inconsistent while looking at the whole picture. Anyway, dropped those two parts. > -archive_command =3D 'gzip < %p > /var/lib/pgsql/archive/%f' > +archive_command =3D 'gzip < %p > /mnt/server/archivedir/%f.gz' > > You will then need to use gunzip during= recovery: > > -restore_command =3D 'gunzip < /mnt/server/archivedir/%f > %p' > +restore_command =3D 'gunzip < /mnt/server/archivedir/%f.gz > %p' >=20 > LGTM. Thanks for the patch! Thanks for the review. I have applied only this part, then. -- Michael --exazu19mLwS+gDdj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmA4iisACgkQnvQgOdby QH1laA/7B8C0iL2SFSlugj1lDjjKKMGkczxIHMmGrQgX3JLjkxsOqCmQzNQ5i/sr sST1ALWaKUyHFaxoSuF9Lan1ZhB8kkt/XXDkoqKEnoZbPKjHVYkgOQgXzmL9r1jo BbixpFmENPRSp8wrU3QVDvU1II4g6AI+5vUypktF3m6ddrWDBOSVERNpyTe9z20Z Q0hpd5dLXYjAu1pwRx72k/zWPP6Cw33TRdP1c20afmeeWif28eZrmKmJjCjVzQFq xJObmmZE+5Lll+mSRr/kQb451DTeOKW5lkhHg0rDQ+2L86gDBVaFeFlqBoNLSpah tt1BCpmgsAQIVsaji7izzyip/JguJO02GauqU89vuku1PHalc7SwCYjNLOThbspX +tWPyWgD8GX0ACwYX55s87buPNxGjAPnXrVLehq+/sUYDAhIz29Mz1CaCMLbHYi4 8uwtxtRl9xlSex2MSzSBrOMdvLajAs4IEoOpvIPSY+bRHahtBjtw+rspTn3IOfwz Qk6usKgZLgSTY9ljBwz111onxXw3hYohsq2l6xRB0AZz8CTSntIkOAtjXtb2HVsu fHnjwgWMibKiIbI6QjsUp/G0xa5wSMMYJN3TKEqpxWDEBJXpRZRCAz8ewStlVGfr jCi8nKIBU43hjBM5oNQBzI069SnwWIyNZgvAicq8mqji/Au1kDU= =V1Sk -----END PGP SIGNATURE----- --exazu19mLwS+gDdj--