From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id DD16D65D7E for ; Fri, 24 Jul 2020 19:08:04 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DAC73D1BD for ; Fri, 24 Jul 2020 19:08:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 74888D1A3 for ; Fri, 24 Jul 2020 19:08:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 40BAD43359 for ; Fri, 24 Jul 2020 19:08:04 +0200 (CEST) To: Proxmox VE development discussion , Fabian Ebner References: <20200709124547.2913-1-f.ebner@proxmox.com> <20200709124547.2913-4-f.ebner@proxmox.com> From: Thomas Lamprecht Message-ID: <83a4f565-81ce-b1e6-ba93-6ab49ce81a83@proxmox.com> Date: Fri, 24 Jul 2020 19:08:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200709124547.2913-4-f.ebner@proxmox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.172 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -0.344 Looks like a legit reply (A) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [prunebackups.pm, status.pm, pvesm.pm] Subject: Re: [pve-devel] [PATCH v4 storage 3/7] Add API and pvesm call for prune_backups X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2020 17:08:04 -0000 Am 7/9/20 um 2:45 PM schrieb Fabian Ebner: > For the pvesm call use a wrapper and a --dry-run option to redirect > to the correct API call. > > Signed-off-by: Fabian Ebner > --- > > Changes from v3: > * allow filtering by type > * pvesm: redirect to correct API call according to --dry-run > > PVE/API2/Storage/Makefile | 2 +- > PVE/API2/Storage/PruneBackups.pm | 164 +++++++++++++++++++++++++++++++ > PVE/API2/Storage/Status.pm | 7 ++ > PVE/CLI/pvesm.pm | 126 ++++++++++++++++++++++++ > 4 files changed, 298 insertions(+), 1 deletion(-) > create mode 100644 PVE/API2/Storage/PruneBackups.pm > applied, thanks!