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 1gmgb5-000072-D8 for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 15:07:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmgb3-0002XX-UV for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 15:07:13 +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 1gmgb3-0002U3-JA for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 15:07:13 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgb1-0007mK-63 for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 15:07:13 +0000 Received: by mail-ot1-x32f.google.com with SMTP id v23so5478556otk.9 for ; Thu, 24 Jan 2019 07:07:11 -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-transfer-encoding:content-language; bh=NdD4BmPWb2lihrpRnyFgOAVoVj07lL5hp6zTHoSlN90=; b=gxCe0VI2s/7Y1a64HLvsnlnieLX44X3/gFUGq88x8nK0KwfepwVXta0IRfbdCRgvjd J9Pf/zWFFQ6Reih5cyUNjsBphzJEV7+d1+lkojeIQz9gjgqXpfl0M5gKqY9iaqlSIk9q n/8+7ZYwaYmrosdyWfCNv+BWigXr2S53TR2hCuAShJU4Kp6L1sxY3HTq1UIUCxbrbCLF AdJNKPIukyQFYUFaMobYemJkzGJiwSPdLGKOAoNGw3rts4t8bDpSZmmRtoV+S5V7m9CR 1WFzUzqE/kDZvln9YQtRikglDlS0yCML77PLfGkXQt9m6cCTHDB1CBjali03nMPda03V R8OQ== 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-transfer-encoding :content-language; bh=NdD4BmPWb2lihrpRnyFgOAVoVj07lL5hp6zTHoSlN90=; b=VE1YYPjnS6YkcwpkdUpyPBGE0G76uTdww9h60JouRIyVn+HveJY+du9yr5/WSleVvu 4ZbWSRYBPxKh8KsgXHVdFpcXjkxvUqYqR+QVE1EG76IPVFbCjoT/NXrVWsu5ZxBByuWl VNQ7ckiDVdxU8Ay/IckKVHIAtF5fWXufXW0fp6MIln4HskTtChQKbKDw9PDQw/xKwvqx 930v52CrhcmjYA+s92R+CooSWajZhyVKg5Ulc8wPIXbsv6kk2h3wj6W+b92Yzcj1QVUV pzXbCN5ypKxy2CmkjbCiQm+RoJrVTz1rfrJIGl4QXSXNQjbY/b30+8NEYUm/7bwpnsTT Zc9Q== X-Gm-Message-State: AJcUukd9Q5XcO7wlw64ZpvloCkCr3h0Qd4O+9x4JvFns+XWTfNku8YF1 PapKpe7cfUCZ2Il26MG9gqptrpVA X-Google-Smtp-Source: ALg8bN7h04fCR1Wwih83Ewulama9P4FYTvSCzyR4SSf0ju+NUYwkqO0q54hVT/SNMvw1QlGlY8gESw== X-Received: by 2002:a9d:7749:: with SMTP id t9mr4868159otl.342.1548342428811; Thu, 24 Jan 2019 07:07:08 -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 c19sm16423otl.16.2019.01.24.07.07.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 07:07:08 -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> <2be1caa8-5a97-345b-53a6-e8de60ae4048@gmail.com> <20190124141153.GM2528@tamriel.snowman.net> From: Ron Message-ID: Date: Thu, 24 Jan 2019 09:07:07 -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: <20190124141153.GM2528@tamriel.snowman.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.