pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Joshua D. Drake <jd@commandprompt.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Barman versus pgBackRest
Date: Tue, 4 Sep 2018 11:51:51 -0400
Message-ID: <45526839-10a0-a22e-bde3-6d0a01eeb509@pgmasters.net> (raw)
In-Reply-To: <f84c6da0-0701-a432-ca7a-fa2f71c3c7c0@commandprompt.com>
References: <CAN_ctnjgQcxqRZ+ENP61Q1BPbdN+gV0BbRiQEUgrny5rcgHQ-w@mail.gmail.com>
	<0eb45bab-8ff7-7255-f052-951edd09b804@gmail.com>
	<CAN_ctniZTZ3dWhORDDHOWBCcLTr2fgO36+JgQqAZwzC79ZQp+A@mail.gmail.com>
	<082d0d98-2dcd-8c4b-31b6-3ca47b4159b3@gmail.com>
	<CAN_ctngN1CmNzW0nC+me-z_srgMhfVr4S0Q7+3Y2dSzQf7ZH=w@mail.gmail.com>
	<5d1e08a4-e7c9-0d32-7d01-5b1c76cc67ef@gmail.com>
	<9c69ec56-d094-e4e7-d7ab-f2ae6652604a@commandprompt.com>
	<2524d3b7-5e77-f4c8-2c60-364715a74d93@gmail.com>
	<f84c6da0-0701-a432-ca7a-fa2f71c3c7c0@commandprompt.com>

On 9/4/18 11:24 AM, Joshua D. Drake wrote:
> On 09/04/2018 07:52 AM, Ron wrote:
>> On 09/04/2018 09:24 AM, Joshua D. Drake wrote:
>>> On 09/04/2018 07:14 AM, Ron wrote:
>>>>
>>>> That was about barman, in the barman group.  This is asking about
>>>> pgbackrest...  :)
>>>>
>>>> So: does pgbackrest have this ability which barman does not have?
>>>> The "--db-include" option seems to indicate that you can restore a
>>>> single db, but does indicate whether or not you can rename it.
>>>
>>> https://pgbackrest.org/configuration.html#section-restore/option-db-include
>>>
>>>
>>
>> Which implies that you can't do it?
> 
> You can restore a single database and then issue a simple ALTER DATABASE
> command to change the DB name.

This will work, but I don't think it's what Ron is getting at.

To be clear, it is not possible to restore a database into an *existing*
cluster using pgBackRest selective restore.  This is a limitation of
PostgreSQL file-level backups.

To do what Ron wants you would need to restore it to a new cluster, then
use pg_dump to logically dump and restore it to whatever cluster you
want it in.  This still saves time since there is less to restore but is
obviously not ideal.

Regards,
-- 
-David
david@pgmasters.net




view thread (22+ messages)  latest in thread

Message-ID: <45526839-10a0-a22e-bde3-6d0a01eeb509@pgmasters.net>
Permalink:  ../45526839-10a0-a22e-bde3-6d0a01eeb509@pgmasters.net/
Also on:    postgresql.org/message-id/45526839-10a0-a22e-bde3-6d0a01eeb509@pgmasters.net

 · 

reply

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-general@postgresql.org
  Cc: david@pgmasters.net, jd@commandprompt.com, ronljohnsonjr@gmail.com
  Subject: Re: Barman versus pgBackRest
  In-Reply-To: <45526839-10a0-a22e-bde3-6d0a01eeb509@pgmasters.net>
  References: <CAN_ctnjgQcxqRZ+ENP61Q1BPbdN+gV0BbRiQEUgrny5rcgHQ-w@mail.gmail.com> <0eb45bab-8ff7-7255-f052-951edd09b804@gmail.com> <CAN_ctniZTZ3dWhORDDHOWBCcLTr2fgO36+JgQqAZwzC79ZQp+A@mail.gmail.com> <082d0d98-2dcd-8c4b-31b6-3ca47b4159b3@gmail.com> <CAN_ctngN1CmNzW0nC+me-z_srgMhfVr4S0Q7+3Y2dSzQf7ZH=w@mail.gmail.com> <5d1e08a4-e7c9-0d32-7d01-5b1c76cc67ef@gmail.com> <9c69ec56-d094-e4e7-d7ab-f2ae6652604a@commandprompt.com> <2524d3b7-5e77-f4c8-2c60-364715a74d93@gmail.com> <f84c6da0-0701-a432-ca7a-fa2f71c3c7c0@commandprompt.com> <45526839-10a0-a22e-bde3-6d0a01eeb509@pgmasters.net>

* 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