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 1eqU44-0002sD-Ku for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Feb 2018 01:28:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eqU42-0002Ku-VE for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Feb 2018 01:28:18 +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.89) (envelope-from ) id 1eqU42-0002Kl-Ou for pgsql-bugs@lists.postgresql.org; Tue, 27 Feb 2018 01:28:18 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqU3w-0000iZ-10 for pgsql-bugs@lists.postgresql.org; Tue, 27 Feb 2018 01:28:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 9BE591AAD; Mon, 26 Feb 2018 20:28:10 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Mon, 26 Feb 2018 20:28:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=lVCTgMzGKItc8iqz+3/ApGqI2gw+cXUZWsOe6CKSs9c=; b=U+6eUiU3 SDx+0cVdGurYCr96uI36A8gphwjKMWeQ8dCOfMkxJmoPNfSksp4gLphRZE6bj4ka HsuN6K3EOrg8as3jgdW+CZDKWUSTeIC4Mn5e7aV+PEqB5Qb34J1o8qP1dNXih27K 1YLFW6yJo3Rs3eMg0ltTWfpYnUuO7kzI581oiL0NK69ctbow//EXDx6G0bGmCs/Q 0rUT/PByGF44lxUpXMTMgZaz7UdATlKcDYfFl74RKqyj5/CcbU8cDxV9RbrdlBey d3W9LfehmSJ7F2z9a1H8t445g0G6Au9lFRy8nCvcG5JyN2iKyKGEpr8wnmPDRSI+ wnfgeiSe3p1BoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=lVCTgMzGKItc8iqz+3/ApGqI2gw+c XUZWsOe6CKSs9c=; b=BtVYYfoa3CTBYY3AtHX+13F6WCYsUoBb7BNbR78GV+sFB zzdSV3ZqmHYGnckxKKptSrPC6cgXHpmVWnEmy64Ub8cHrXMO136grO+Etq2w9aNs nJQ03LYx+R6Sy65N5WjUxIFpWDZHMXgLHw8BNjWJOgzcBaHssc5f97JCnlFzs9lk aWqAGemm5I9vN7zh4iK6cSNdvN1+LBFtpyoTRWg52T4bx1CmpAEismVEq0R5Z3Tb xqC3IDfbZa3wyCfnp4jqbtM0+EAGmzi//ZEGZVSPbt68yyMfsT08nfd1OTmNxot4 caw6AQQUQuUOoqDzNWddrPYXVkOi3ZCLjGmW7iYqQ== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B65024802; Mon, 26 Feb 2018 20:28:09 -0500 (EST) Date: Tue, 27 Feb 2018 10:28:06 +0900 From: Michael Paquier To: mvisser@hotmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15092: pg_basebackup directory checking Message-ID: <20180227012806.GC3255@paquier.xyz> References: <151965994276.21248.4824076331777508046@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XMCwj5IQnwKtuyBG" Content-Disposition: inline In-Reply-To: <151965994276.21248.4824076331777508046@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --XMCwj5IQnwKtuyBG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2018 at 03:45:42PM +0000, PG Bug reporting form wrote: > I want to take regular backups on the standby machine using pg_basebackup. >=20 > Using pg_basebackup on the non-master machine fails when using tablespaces > and the tablespace directory already exists on the secondary machine. =20 >=20 > pg_basebackup: directory "/db/ts1" exists but is not empty When saving a base backup on the same server as the one where the server =66rom which the backup is taken, you need to use --tablespace-mapping to ensure that the tablespace of the backed up instance does not interfere with the origin. You could as well use the tar format and untar things after relinking properly things in pg_tblspc in the created data folder. -- Michael --XMCwj5IQnwKtuyBG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlqUtCYACgkQnvQgOdby QH2PdQ/+I0DK4EPl2uvDJKeblO7I9wyxLqGTmEr9QL2h1EeCsNW6IBtzyN4MwKdT v1OpWR8RLD1NXL7x4CD7oYlUMzcAZYA9mRJ2tR49WHsh5MR8eRVsUvWAGHxyWECb kjobZYQY6aoVzMJdSVhbUh8WtTk5h49fN6f/poVARAHiN+vBQZd8yIVZLMYxLlST OmeKaKI2rdGHdPBAY+206GOGfBhBFsdxKXoTtbw36vbJ52ZoFZJC6ZoByuW8X5SK syMjUQkVmd4Gx25kX9DaLeyf2fs/8JyhR0K65oGC7wz/gmRBIYlxreOsJQ+rhUlH oBQopQNvNDalUtj6RHY7Va/s6f3oqECgMo7JmLSw1qVgjhJ4i6DZhP+mpVpyIN5q O+Iu2ixl3vWoLUfcPcZa88u5FqvR0LHtev6ph9FLs8CAYcupyEqUnx1KiprvJMjB g0FNcD02wtHgxpeUr6HnfBVULjl9KYHKWFH6Z6HNP0SI5YBOjmn3CCrlDHsq6/Q3 FDNZ7ULNuWIbCk73S8H+V0IkPjK7zQzdCQ6hKCutZhg3rWhBL/SFvG6U4gQkjKr5 uoQUTflH1CDT7e8vRDxnwhehorVnU2IYfN2iJnG34KhC1BzSuwMRdXe+Rd36lWZm vnHF2aMj7oXR8r/x51cMMrnfhjLrIoAvjqt67tdArmktZCBbGio= =GvHr -----END PGP SIGNATURE----- --XMCwj5IQnwKtuyBG--