J juliokele Renowned Member Nov 25, 2016 100 28 93 Oct 17, 2021 #1 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: Oct 19, 2021
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
J juliokele Renowned Member Nov 25, 2016 100 28 93 Oct 22, 2021 #2 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: Oct 22, 2021 Reactions: RolandK and Dunuin
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