Re: [pgbackrest] Expiring the last backup? - Mailing list pgsql-general

From Stephen Frost
Subject Re: [pgbackrest] Expiring the last backup?
Date
Msg-id 20190124132628.GL2528@tamriel.snowman.net
Whole thread Raw
In response to [pgbackrest] Expiring the last backup?  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: [pgbackrest] Expiring the last backup?
List pgsql-general
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. :)

> 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..

Thanks!

Stephen

Attachment

pgsql-general by date:

Previous
From: Raghavendra Rao J S V
Date:
Subject: How duplicate values inserted into the primary key column of tableand how to fix it
Next
From: Geoff Winkless
Date:
Subject: Re: Casting Integer to Boolean in assignment