[SOLVED] Prune alle Backups mit "proxmox-backup-client"?

juliokele

Active Member
Nov 25, 2016
49
16
28
Hallo zusammen,

gibt es eine Möglichkeit, prune alle Backups mit "proxmox-backup-client"?

zb.:
proxmox-backup-client prune * --keep-daily 7
proxmox-backup-client prune */* --keep-daily 7
 
Last edited:

juliokele

Active Member
Nov 25, 2016
49
16
28
so habe ich gelöst:
Bash:
#!/bin/bash
list_json=$(proxmox-backup-client list --output-format json-pretty)
echo "$list_json" | jq -r '.[]|."backup-type" + "/" + ."backup-id"' | while read group; do
    proxmox-backup-client prune "${group}" --keep-daily 7 --quiet --dry-run
done
 
Last edited:
  • Like
Reactions: RolandK and Dunuin

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!