From: Michael Paquier <michael@paquier.xyz>
To: mvisser@hotmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15092: pg_basebackup directory checking
Date: Tue, 27 Feb 2018 10:28:06 +0900
Message-ID: <20180227012806.GC3255@paquier.xyz> (raw)
In-Reply-To: <151965994276.21248.4824076331777508046@wrigleys.postgresql.org>
References: <151965994276.21248.4824076331777508046@wrigleys.postgresql.org>
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.
>
> Using pg_basebackup on the non-master machine fails when using tablespaces
> and the tablespace directory already exists on the secondary machine.
>
> 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
from 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
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, mvisser@hotmail.com
Subject: Re: BUG #15092: pg_basebackup directory checking
In-Reply-To: <20180227012806.GC3255@paquier.xyz>
References: <151965994276.21248.4824076331777508046@wrigleys.postgresql.org> <20180227012806.GC3255@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox