public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
From: Roland <devzero@web.de>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>,
	Proxmox VE user list <pve-user@lists.proxmox.com>
Subject: Re: [PVE-User] pbs prune from commandline ?
Date: Mon, 3 May 2021 18:53:09 +0200	[thread overview]
Message-ID: <95223646-5b37-7092-7ad8-1866dc7195cb@web.de> (raw)
In-Reply-To: <e2d0eaed-3106-8171-293e-fb6ce4c4316d@proxmox.com>

Hi,

> You can change the prune-schedule via CLI with the manager
>
> # proxmox-backup-manager datastore update DATASTORE --prune-schedule '...'
>
yes, thanks


>> i only find prune option with proxmox-backup-client.
>
> And why exactly doesn't `proxmox-backup-client` counts as CLI?
>
yes, it counts. but isn't that somewhat pruning "at the remote" level,
where you need a privileged (...@pbs) user for? i find using it
complicated, too.

>> 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

yes, but i'm just asking because i'd wonder if this is a "consistent"
interface - i don't use prune on the client side and don't think it's
easy to handle to iterate trough every single VM for pruning, as number
of VMs may change and you need to adjust a commandline prune/script.

i simply wonder if there isn't a commandline prune for pruning at
datastore level (like you can do gc or verify via commandline at
datastore level)

roland




      reply	other threads:[~2021-05-03 16:53 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
2021-05-03 16:53   ` Roland [this message]

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=95223646-5b37-7092-7ad8-1866dc7195cb@web.de \
    --to=devzero@web.de \
    --cc=pve-user@lists.proxmox.com \
    --cc=t.lamprecht@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