public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE user list <pve-user@lists.proxmox.com>,
	Roland <devzero@web.de>
Subject: Re: [PVE-User] pbs prune from commandline ?
Date: Mon, 3 May 2021 16:33:41 +0200	[thread overview]
Message-ID: <e2d0eaed-3106-8171-293e-fb6ce4c4316d@proxmox.com> (raw)
In-Reply-To: <3538b9a7-3b60-f603-6b66-c694fb5b225c@web.de>

Hi,

On 30.04.21 12:42, Roland wrote:
> isn't there a commandline equivalent of  proxmox backup server side prune ?
> 
> (i.e. pbs -> Datastore -> Prune & GC -> Prune Schedule )
> 

You can change the prune-schedule via CLI with the manager

# proxmox-backup-manager datastore update DATASTORE --prune-schedule '...'

> 
> how can i trigger a prune from commandline on the pbs side , like i can
> do gc and verify  with proxmox-backup-manager  ?
> 
> 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:  pve -> storage -> pbs-ds -> Backup
> Retention  tab, i.e. it's the prune definition on the client side.
> 
> shouldn't there exist prune option in proxmox-backup-manager, too !?


The manager is more for server-admin commands, GC is always a datastore wide operation
not affecting any backups, so no client notices it.

Pruning, on the other hand, should be done by the client making the backups 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 you 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 
--keep-daily 42 ...

If you do not want to always login you can just edit your .bashrc (or whatever 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




  reply	other threads:[~2021-05-03 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 10:42 Roland
2021-05-03 14:33 ` Thomas Lamprecht [this message]
2021-05-03 16:53   ` Roland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2d0eaed-3106-8171-293e-fb6ce4c4316d@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=devzero@web.de \
    --cc=pve-user@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal