Problem mit prune-backups

TErxleben

Renowned Member
Oct 20, 2008
106
2
83
Hallo liebes Forum,
Ich habe hier ein Problem mit o.g. Einstellung. Nach Meldung von pve6to7 bzgl. maxfiles habe ich meinen Kommandozeilenbefehl wie folgt angepasst:

Code:
vzdump 100 102 201 202 --compress zstd --zstd 0 --prune-backups keep-last=3 --dumpdir $INTDIR/dump -mode snapshot --mailto $MAILTO > vzdump.log

Läuft zwar, räumt aber nicht auf. Das Logfile liefert:

Code:
2021-09-06 18:00:29 INFO: Starting Backup of VM 100 (lxc)
2021-09-06 18:00:29 INFO: status = running
2021-09-06 18:00:29 INFO: CT Name: gua
2021-09-06 18:00:29 INFO: including mount point rootfs ('/') in backup
2021-09-06 18:00:29 INFO: backup mode: snapshot
2021-09-06 18:00:29 INFO: ionice priority: 7
2021-09-06 18:00:29 INFO: create storage snapshot 'vzdump'
2021-09-06 18:00:30 INFO: creating vzdump archive '/mnt/backup/dump/vzdump-lxc-100-2021_09_06-18_00_29.tar.zst'
2021-09-06 18:00:51 INFO: Total bytes written: 2861844480 (2.7GiB, 127MiB/s)
2021-09-06 18:00:51 INFO: archive file size: 997MB
2021-09-06 18:00:51 INFO: prune older backups with retention: keep-last=3
2021-09-06 18:00:51 INFO: pruned 0 backup(s)
2021-09-06 18:00:52 INFO: cleanup temporary 'vzdump' snapshot
2021-09-06 18:00:52 INFO: Finished Backup of VM 100 (00:00:23)

Wie ihr seht, wird der Befehl zwar "gefressen" aber irgendwie nicht korrekt ausgeführt, denn ich habe danach vier alte Versionen. Hat jemand eine Idee und kann mir helfen?

P.S.:
Bin inzwischen selbst drüber gestolpert. maxfiles 3 zählt nach Sicherung und löscht entsprechend. prune-backups zählt vor Sicherung.
EDV soll ja auch Spaß bringen! Also klassisches +/-1 Problem. Blöd, wenn man Platzprobleme auf der SSD hat.
Diese Fußfalle könnte man im sonst guten Wiki vielleicht erwähnen.
 
Last edited:
Hallo,
nein, das ist wirklich ein Bug ;). Passiert im Moment wenn --dumpdir benutzt wird, da in dem Code-Pfad das neue Backup nicht mit aufgelistet wurde. Habe dazu einen Patch geschickt.
 
  • Like
Reactions: Dunuin
Hallo Fabien,
vielen Dank für Deine schnelle Reaktion und Behebung des Fehlers. Das zeichnet das Proxmoxteam herausragend aus.
 
Kann allerdings noch etwas dauern, bis der Patch reviewed und eingepflegt ist und bis das neue Paket erhältlich ist.
 

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!