pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15092: pg_basebackup directory checking
2+ messages / 2 participants
[nested] [flat]
* BUG #15092: pg_basebackup directory checking
@ 2018-02-26 15:45 PG Bug reporting form <noreply@postgresql.org>
2018-02-27 01:28 ` Re: BUG #15092: pg_basebackup directory checking Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2018-02-26 15:45 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: mvisser@hotmail.com
The following bug has been logged on the website:
Bug reference: 15092
Logged by: Martin Visser
Email address: mvisser@hotmail.com
PostgreSQL version: 9.6.2
Operating system: OSX
Description:
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #15092: pg_basebackup directory checking
2018-02-26 15:45 BUG #15092: pg_basebackup directory checking PG Bug reporting form <noreply@postgresql.org>
@ 2018-02-27 01:28 ` Michael Paquier <michael@paquier.xyz>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2018-02-27 01:28 UTC (permalink / raw)
To: mvisser@hotmail.com; pgsql-bugs@lists.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-02-27 01:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-26 15:45 BUG #15092: pg_basebackup directory checking PG Bug reporting form <noreply@postgresql.org>
2018-02-27 01:28 ` Michael Paquier <michael@paquier.xyz>
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