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 7B0BD7911F for ; Mon, 3 May 2021 16:33:44 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 6C8541FACD for ; Mon, 3 May 2021 16:33:44 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 4D02A1FAC1 for ; Mon, 3 May 2021 16:33:42 +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 229DC42A3B; Mon, 3 May 2021 16:33:42 +0200 (CEST) Message-ID: Date: Mon, 3 May 2021 16:33:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Thunderbird/89.0 Content-Language: en-US To: Proxmox VE user list , Roland References: <3538b9a7-3b60-f603-6b66-c694fb5b225c@web.de> From: Thomas Lamprecht In-Reply-To: <3538b9a7-3b60-f603-6b66-c694fb5b225c@web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.005 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.001 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [PVE-User] pbs prune from commandline ? X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2021 14:33:44 -0000 Hi, On 30.04.21 12:42, Roland wrote: > isn't there a commandline equivalent of=C2=A0 proxmox backup server sid= e prune ? >=20 > (i.e. pbs -> Datastore -> Prune & GC -> Prune Schedule ) >=20 You can change the prune-schedule via CLI with the manager # proxmox-backup-manager datastore update DATASTORE --prune-schedule '...= ' >=20 > how can i trigger a prune from commandline on the pbs side , like i can= > do gc and verify=C2=A0 with proxmox-backup-manager=C2=A0 ? >=20 > i only find prune option with proxmox-backup-client. And why exactly doesn't `proxmox-backup-client` counts as CLI? > this should be be equivalent to:=C2=A0 pve -> storage -> pbs-ds -> Back= up > Retention=C2=A0 tab, i.e. it's the prune definition on the client side.= >=20 > shouldn't there exist prune option in proxmox-backup-manager, too !? The manager is more for server-admin commands, GC is always a datastore w= ide operation not affecting any backups, so no client notices it. Pruning, on the other hand, should be done by the client making the backu= ps itself, as it has a big impact on the actual backup availability. But the client is available in all our repositories (PBS, PVE, PMG) so yo= u can just install it, if not already done, and use that: # proxmox-backup-client prune vm/100/2021-03-23T12:32:02Z --keep-last 100=20 --keep-daily 42 ... If you do not want to always login you can just edit your .bashrc (or wha= tever your shell uses) and setup the environment variables for your local server there. https://pbs.proxmox.com/docs/backup-client.html#environment-variables cheers, Thomas