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

juliokele

Renowned Member
Nov 25, 2016
100
28
93
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:
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 yours easily in our online shop.

Buy now!