Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxDcL-0003rk-1p for pgsql-general@arkaria.postgresql.org; Tue, 04 Sep 2018 15:51:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxDcJ-0008DD-7U for pgsql-general@arkaria.postgresql.org; Tue, 04 Sep 2018 15:51:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxDcI-0008D5-Q2 for pgsql-general@lists.postgresql.org; Tue, 04 Sep 2018 15:51:47 +0000 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fxDcF-00080n-V2 for pgsql-general@lists.postgresql.org; Tue, 04 Sep 2018 15:51:45 +0000 Received: by mail-oi0-x243.google.com with SMTP id k12-v6so7620686oiw.8 for ; Tue, 04 Sep 2018 08:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=I69XuBlvmurO9RHFLkwbZJ//YFScs1WC5tw5Puosowk=; b=gAVzLueGwhnyR7WaoDgtpZr7XN/J7LJaI5X4DvdwLJ/TAIHG10B1JY9KlrEePCDBTp oJHMSn1xoQ4qmUpRFaGCz2XsLaLIdclK0xgv9+sw9lT69ea2mS8JAGXbOw2Sjy0dfufE dfWUJKAr0AuVCMXIHchUeejr/WarpcBKZ5AraJyeFpwDd3PKsBmIC2QreeRmOQ5pLB3z XL0bL7MtBAdLpMZXOq5V3tn4dFZdx/tsQFTDddswIIklsYYBpkUEfvDAp+uV1wRKjYRe vTm/rsyEtajEynWRuPefJS2ertZaKWxyIwh1KJtsMhKgwQC8HWkvFc4NeIr+nmCPFiE1 B3rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=I69XuBlvmurO9RHFLkwbZJ//YFScs1WC5tw5Puosowk=; b=ob39Tfqlhuk4s1ToQK4j4mtOeELS77P2bFK7iIShuexRTsWjuqPKbjhB/6W1hpZL9G eqr5LTnP33NN9AeJFgVfUvH29s8cnDrCoSnhLZBRexLykrJtEfczM/rWgXBVhC2fh8Rp cJLSHglK1CNA01FhenLbzNw2sFnjJEBSBCP0Py9oDcbegXRLv5pI2fRcfdfMtGBQimOh NTF3lDnJW/eGcBx6jJO3sNnPRrZuIlOVWGRjiwgjRzH06k1is1jTpu6rKEJFiBhCAaxp wyWm2CWwPr1sCvGPL2mlbqwEK5C6XCXQSzVfkeKUQrfcgNkLY9BgKfZxalElIQ5Ulh6I ZqAg== X-Gm-Message-State: APzg51AAirdgjgf9WU91pkVXXfBPbd+F0mJXvluB8iaynR+cw3/j3c7k 91DepQGYINRKqrdZc5+yuN/oGrPn X-Google-Smtp-Source: ANB0VdZh1KaHwv/oQZgYi2AAl+NhfAENCYNMl9XnthirUwLobE6VyeVyKMqSN1qlqMH642FISdWt7A== X-Received: by 2002:aca:5a45:: with SMTP id o66-v6mr10752724oib.155.1536076302855; Tue, 04 Sep 2018 08:51:42 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id o125-v6sm34027898oig.44.2018.09.04.08.51.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 08:51:41 -0700 (PDT) Subject: Re: Barman versus pgBackRest To: pgsql-general@lists.postgresql.org References: <0eb45bab-8ff7-7255-f052-951edd09b804@gmail.com> <082d0d98-2dcd-8c4b-31b6-3ca47b4159b3@gmail.com> <5d1e08a4-e7c9-0d32-7d01-5b1c76cc67ef@gmail.com> <9c69ec56-d094-e4e7-d7ab-f2ae6652604a@commandprompt.com> <2524d3b7-5e77-f4c8-2c60-364715a74d93@gmail.com> From: Ron Message-ID: Date: Tue, 4 Sep 2018 10:51:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.