Re: [pgbackrest] Expiring the last backup?

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: [pgbackrest] Expiring the last backup?
Date: 2019-01-24 15:07:07
Message-ID: c8f3932a-e907-9d65-0cdd-8d5b2cca9746@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/24/19 8:11 AM, Stephen Frost wrote:
> Greetings,
>
> * Ron (ronljohnsonjr(at)gmail(dot)com) wrote:
>> On 1/24/19 7:26 AM, Stephen Frost wrote:
>>> * Ron (ronljohnsonjr(at)gmail(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2019-01-24 15:09:24 Re: Casting Integer to Boolean in assignment
Previous Message Don Seiler 2019-01-24 15:06:14 Re: Postgres 11 chooses seq scan instead of index-only scan