]> git.proxmox.com Git - proxmox-backup.git/commit
close #4763: client: add command to forget backup group
authorGabriel Goller <g.goller@proxmox.com>
Mon, 3 Jun 2024 08:43:11 +0000 (10:43 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 19 Jun 2024 09:32:28 +0000 (11:32 +0200)
commit734c4601a5fa5a357416be06eb9595d2d12baf23
treecf4ff331770cad96ab7662606f25ece255824fb3
parent8e924a7bc0d11912426fead9554dddc0a0c9db64
close #4763: client: add command to forget backup group

Add the command `proxmox-backup-client group forget <group>` so
that we can forget (delete) whole groups with all the containing
snapshots.
To avoid printing full datastore paths (which are in the error messages)
we filter out the most common one (group not found) and rephrase it.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
[WB: rebased & sorted import statements in client's main.rs]
[WB: replace extract_repository_from_value with
     remove_repository_from_value since the parameter is rejected on
     the remote side]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-backup-client/src/group.rs [new file with mode: 0644]
proxmox-backup-client/src/main.rs