[SOLVED] Pruning seems not to prune: Keep last = 3, but more than 11 snapshots are kept

Rainerle

Renowned Member
Jan 29, 2019
120
33
68
Hi,

this is my setup for the Prune & GC job:

1607640696650.png

But even though running manually it does not remove older snapshots....

1607640783922.png


Is this probably a permission problem?

1607640877711.png
Thanks
Rainer
 
Last edited:
what does the prune task log say?
 
This is strange...

Code:
Proxmox
Backup Server 1.0-5
()
2020-12-10T00:00:00+01:00: Starting datastore prune on store "pve-infra-onsite"
2020-12-10T00:00:00+01:00: task triggered by schedule 'daily'
2020-12-10T00:00:00+01:00: retention options: --keep-last 55 --keep-hourly 48 --keep-daily 7
2020-12-10T00:00:00+01:00: Starting prune on store "pve-infra-onsite" group "vm/102"
2020-12-10T00:00:00+01:00: keep vm/102/2020-12-02T20:16:36Z
2020-12-10T00:00:00+01:00: keep vm/102/2020-12-02T22:54:10Z
2020-12-10T00:00:00+01:00: keep vm/102/2020-12-02T23:40:16Z
2020-12-10T00:00:00+01:00: keep vm/102/2020-12-03T18:00:01Z
 
can you post the content of '/etc/proxmox-backup/datastore.cfg' ?
 
I just edited the config again in the WebUI and saved it.

So it might have looked differently before:

Code:
root@pbs02:~# cat /etc/proxmox-backup/datastore.cfg
datastore: pve-infra-onsite
        comment PVE Cluster infra - On-Site backup for quick restores only
        gc-schedule 00:00
        keep-last 3
        path /mnt/datastore/datastore1
        prune-schedule 02:30
root@pbs02:~#

There is no button to start the Prune Job from the WebUI...

Rescheduled:

Code:
2020-12-11T09:16:00+01:00: Starting datastore prune on store "pve-infra-onsite"
2020-12-11T09:16:00+01:00: task triggered by schedule '09:16'
2020-12-11T09:16:00+01:00: retention options: --keep-last 3
2020-12-11T09:16:00+01:00: Starting prune on store "pve-infra-onsite" group "vm/102"
...

Now it looks correct. And it removed the snapshots...

I installed from the ISO, configured it and recently upgraded to 1.0-5. No idea if I can reproduce this somehow...
 
Last edited:

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!