Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmfaa-0003JT-5J for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 14:02:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmfZW-0000oh-N1 for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 14:01:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmfZW-0000oa-DJ for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 14:01:34 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmfZR-0006Ez-0I for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 14:01:34 +0000 Received: by mail-oi1-x236.google.com with SMTP id x202so4838608oif.13 for ; Thu, 24 Jan 2019 06:01:28 -0800 (PST) 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-language; bh=CeyvWWqOf5O/O5yTzSZ6wFJiwNRbaWW+xuvFL696Y0E=; b=Kj4jen/jrX3Ul1HOBjdJSbgugbACHCf2SU5YLLjBfRhdzTcPC0eVEBTNlGs51W1R5A OnjSeN9TDMZowDnGvOXy4zKvdS5njgngZKRvHlnFPKIl6Rp6eCAnOvKAG+426N68l5OE 2orPVulgwIILdHR40YoLDz7kGzBJMgsiaQ+F0/oYwwotTFykS6pfO7jxVStAyOcCpm9s vPPaHI+/Ysih7Gga+PtU+qNq6PH8pulwATchBV0otyEC919JHDX7rHm3a2+coRILEZ0U rQIwqiwdQJf8Qd3/iwJqgmCN6xmPmTOwDpEUs6+2wiLamnRdFKAiyeFsCLEDotBDuEUK DPBQ== 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-language; bh=CeyvWWqOf5O/O5yTzSZ6wFJiwNRbaWW+xuvFL696Y0E=; b=EhaTFQFp/H7b7IoWpVtbgQGXbaqcyu/nthLy1tSngWLJYeGULYF/iBNkpzcI9GbqyK xRS5zXlIHacXwynfp81oeEy75ZfMPRMHCi2J+rbLyGDBIJRCPbk+oqf1XWpd+tU6qp16 dfDeMx2/0XwTPgI8CcOjkM3wd0F6twZNSuloDb0CuoQrCp7CxOdmHYJJKkXAcDUXJu0K isUjA5LfzBN/TVnyDh8KYamwcM8ad6QJBENselJv/5WQwCo0y0ELtg8dfigPZXrRXX9y oltb1H2vP2R2myHkG/lU7ktb2/yKXUDK+NIub0hAO5HvXqxYJp5LRN6nuHI0wFOHhZpu geHA== X-Gm-Message-State: AJcUukchSbV7naNXN2yVYMS9aeu1CNEJcdjprvj+Uc0AwoI+4e3+pxZz tVwoGxANo+1Jnf/bRnTsE/FYyEAo X-Google-Smtp-Source: AHgI3IaGEmq1NdzeeE5u9zBNSiX3dE7E8oGYZ2knKncoNasowRienHouS6OlOs9rrL/w4LcCP3t1lQ== X-Received: by 2002:aca:cc15:: with SMTP id c21mr1140508oig.208.1548338485412; Thu, 24 Jan 2019 06:01:25 -0800 (PST) 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 j11sm10515643oif.9.2019.01.24.06.01.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 06:01:24 -0800 (PST) Subject: Re: [pgbackrest] Expiring the last backup? To: pgsql-general@lists.postgresql.org References: <1f2b45a1-b67e-1c41-abf6-4fc6a60c2b5d@gmail.com> <20190124132628.GL2528@tamriel.snowman.net> From: Ron Message-ID: <2be1caa8-5a97-345b-53a6-e8de60ae4048@gmail.com> Date: Thu, 24 Jan 2019 08:01:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190124132628.GL2528@tamriel.snowman.net> Content-Type: multipart/alternative; boundary="------------F309396BB639D6E391C9A4FA" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------F309396BB639D6E391C9A4FA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 1/24/19 7:26 AM, Stephen Frost wrote: > Greetings, > > * Ron (ronljohnsonjr@gmail.com) wrote: >> The backups partition is running out of disk space, and I need to delete the >> only backup. >> >> $ pgbackrest expire --stanza=localhost --retention-full=0 >> ERROR: [032]: '0' is out of range for 'repo1-retention-full' option > Yeah, pgbackrest doesn't ever really think you want to get rid of *all* > of your backups. :) It's rare, but *is* occasionally needed. >> So, in version 2.07, what's the secret sauce for deleting that final copy? > If this is the only backup and the only cluster being backed up into > that repository, you could just nuke the whole repo and recreate it with > stanza-create once you're ready to have backups again.. That occurred to me while lying in bed.  Use "stanza-delete"? -- Angular momentum makes the world go 'round. --------------F309396BB639D6E391C9A4FA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 1/24/19 7:26 AM, Stephen Frost wrote:
Greetings,

* Ron (ronljohnsonjr@gmail.com) wrote:
The backups partition is running out of disk space, and I need to delete the
only backup.

$ pgbackrest expire --stanza=localhost --retention-full=0
ERROR: [032]: '0' is out of range for 'repo1-retention-full' option
Yeah, pgbackrest doesn't ever really think you want to get rid of *all*
of your backups. :)

It's rare, but is occasionally needed.

So, in version 2.07, what's the secret sauce for deleting that final copy?
If this is the only backup and the only cluster being backed up into
that repository, you could just nuke the whole repo and recreate it with
stanza-create once you're ready to have backups again..

That occurred to me while lying in bed.  Use "stanza-delete"?

--
Angular momentum makes the world go 'round.
--------------F309396BB639D6E391C9A4FA--