Prune Jobs Not Working

Teapot

Active Member
Apr 9, 2019
23
0
41
28
Hello,
I created prune jobs and run manual. They are not removing old backups.

root@pbs:~# proxmox-backup-manager versions
proxmox-backup-server 2.4.2-2 running version: 2.4.2

I set prune to 15 days;
1686405014016.png
Older than 15 days backups;
1686405034223.png
 
i think this is a misunderstanding how the prune options work

keep-daily 15 does not say keep backups from the last 15 days, but up to 15 backups from different days
check out the simulator, there you can play with it: https://pbs.proxmox.com/docs/prune-simulator/index.html
 
this concrete example is not directly possible with the existing prune options
you'd have to manually go in and clean them
 
this concrete example is not directly possible with the existing prune options
you'd have to manually go in and clean them
I can try something with cron.
Is it safe delete from;
/mnt/datastore/<DISKNAME>/ns/<NSNAME>/vm/<VMID>
 
yeah that folder contains the indexes that represent a snapshot, if you delete those, the backups are gone
note that if you do it that way (instead of over the api/cli) there is no safeguard against parallel access (e.g. if you are restoring from such a backup and your cron script removes the snapshot)
 
  • Like
Reactions: Teapot