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 1gmfjb-0004A3-AK for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 14:11:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmfja-0001oa-2p for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 14:11:58 +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 1gmfjZ-0001oT-Qx for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 14:11:57 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmfjX-0006TL-5Z for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 14:11:57 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 699665F79E; Thu, 24 Jan 2019 09:11:53 -0500 (EST) Date: Thu, 24 Jan 2019 09:11:53 -0500 From: Stephen Frost To: Ron Cc: pgsql-general@lists.postgresql.org Subject: Re: [pgbackrest] Expiring the last backup? Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jMq3INf/UYODs6eG" Content-Disposition: inline In-Reply-To: <2be1caa8-5a97-345b-53a6-e8de60ae4048@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --jMq3INf/UYODs6eG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 delet= e the > >>only backup. > >> > >>$ pgbackrest expire --stanza=3Dlocalhost --retention-full=3D0 > >>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. :) >=20 > It's rare, but *is* occasionally needed. >=20 > >>So, in version 2.07, what's the secret sauce for deleting that final co= py? > >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.. >=20 > That occurred to me while lying in bed.=A0 Use "stanza-delete"? That's another option, though you'll have to use --force unless you're also shutting PG down. Thanks! Stephen --jMq3INf/UYODs6eG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJcSceoAAoJEO1sijiDR2RVwFsP/jKTnhKQSGCPLc/iC2Jv/9MR BTKwztNC1ry8xPhH4QAbbdGwNdI/9Y28U54IXNKl6faf3nSoZmsWIxlWq4D34fPD i9jwz0fyljL14h8Mlwq1n5WDJaStvC6KNMjMT2ULIA8VQ26OtSDzFyQf+0ZGVTDK by04V021S/CvOc0oxLNayQ5eLFZDM2OFCWpv18rjDXoPVGBKKq3W17gbLJEMngkE /5Vz7SjW7lHwOgiNvhhdvZ6T5/RuPy0LcP6hoU+eWTUcu0PBpx98SDSkKoKaGGmb imA7cJl4ZxqokiiTiKZJFOiaDuKKudNV6dUWZBIyC7mxXn5JuAN08czuLRo/5cST vEElY5WFxTRvoJF2GzG8NzWSp0tFCCPJ1oDGwBSmDnO0w/3++NRLzI6F5y2gDZcW mTkBHb28MJfCeSQYx0a3V+arVSguyt+PVcFBV+lwXNaGwH5wdNtIJaJlEgBZzUzL mj3lj5dpLYK5YKAzalA6THKgtauddMbZnGJxCqV3IIO/xfHQFXa3uGgLQt/mRJaK aGJDlCAc3KHtqdZJQGo/EsFSSu50rlzzc+5+QzA3oId0q4oxLBewd1+uNF6zz0i4 LynTA/FwZaA8ayTIrGdhZaXWWaZvKnhgDtuXHP2toqjnbqD3E4CIlR4DbrdVwXGO IKu5ijUv6/URKS/FUtFy =mm3F -----END PGP SIGNATURE----- --jMq3INf/UYODs6eG--