pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Barman versus pgBackRest
Date: Tue, 4 Sep 2018 10:51:40 -0500
Message-ID: <ca6d9035-dbcf-007c-bd9a-9ea167b2a3a9@gmail.com> (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 09/04/2018 10: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.
>
>>
>> (Postgres backup/restore capabilities are quite limited, which is 
>> disapointing.)
>
> Not sure I agree with that. If you want to restore and then rename a DB, 
> rename it.
>
> ALTER DATABASE foo RENAME TO bar;

But restoring an old "foo" overwrites the existing "foo".  On SQL Server 
databases, we occasionally need to restore an old foo backup "foo_old" along 
side production foo.


-- 
Angular momentum makes the world go 'round.




view thread (22+ messages)  latest in thread

Message-ID: <ca6d9035-dbcf-007c-bd9a-9ea167b2a3a9@gmail.com>
Permalink:  ../ca6d9035-dbcf-007c-bd9a-9ea167b2a3a9@gmail.com/
Also on:    postgresql.org/message-id/ca6d9035-dbcf-007c-bd9a-9ea167b2a3a9@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: Barman versus pgBackRest
  In-Reply-To: <ca6d9035-dbcf-007c-bd9a-9ea167b2a3a9@gmail.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> <ca6d9035-dbcf-007c-bd9a-9ea167b2a3a9@gmail.com>

* 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