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: [pgbackrest] Expiring the last backup?
Date: Thu, 24 Jan 2019 09:07:07 -0600
Message-ID: <c8f3932a-e907-9d65-0cdd-8d5b2cca9746@gmail.com> (raw)
In-Reply-To: <20190124141153.GM2528@tamriel.snowman.net>
References: <1f2b45a1-b67e-1c41-abf6-4fc6a60c2b5d@gmail.com>
	<20190124132628.GL2528@tamriel.snowman.net>
	<2be1caa8-5a97-345b-53a6-e8de60ae4048@gmail.com>
	<20190124141153.GM2528@tamriel.snowman.net>

On 1/24/19 8:11 AM, Stephen Frost wrote:
> Greetings,
>
> * Ron (ronljohnsonjr@gmail.com) wrote:
>> On 1/24/19 7:26 AM, Stephen Frost wrote:
>>> * 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"?
> That's another option,

What's the preferred method?

> though you'll have to use --force unless you're also shutting PG down.

Won't be stopping postgres!!!

Are these the steps, or am I missing something?

$ pgbackrest stop
$ pgbackrest stanza-delete --stanza=mystanza--force



-- 
Angular momentum makes the world go 'round.




view thread (9+ messages)  latest in thread

Message-ID: <c8f3932a-e907-9d65-0cdd-8d5b2cca9746@gmail.com>
Permalink:  ../c8f3932a-e907-9d65-0cdd-8d5b2cca9746@gmail.com/
Also on:    postgresql.org/message-id/c8f3932a-e907-9d65-0cdd-8d5b2cca9746@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: [pgbackrest] Expiring the last backup?
  In-Reply-To: <c8f3932a-e907-9d65-0cdd-8d5b2cca9746@gmail.com>
  References: <1f2b45a1-b67e-1c41-abf6-4fc6a60c2b5d@gmail.com> <20190124132628.GL2528@tamriel.snowman.net> <2be1caa8-5a97-345b-53a6-e8de60ae4048@gmail.com> <20190124141153.GM2528@tamriel.snowman.net> <c8f3932a-e907-9d65-0cdd-8d5b2cca9746@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