Two question about Prune and Verify

cazz

Member
Jul 18, 2021
65
2
13
46
Sweden
Hi
I have got Proxmox Backup Server to run like I want to but I do wonder over two things.

1.
Can I schedule Prune somehow so I only have 4 or 5 version of each VM or do I have to run that manual with the "Prune All" button?

2.
I run now a schedule that on Saturday it run a backup from my Proxmox HP server and on Sunday it run a backup from my Proxmox Dell
My Proxmox Backup Server shutdown after each backup and turn on the server when is is time to run a backup.
But before it shutdown I like to run a verify of the backup VM.
 
Hi
I have got Proxmox Backup Server to run like I want to but I do wonder over two things.

1.
Can I schedule Prune somehow so I only have 4 or 5 version of each VM or do I have to run that manual with the "Prune All" button?
You can setup a backup retention for your datastore inside the PBS webUI of "keep-last=5". Then the automated prune job will prune all backups and only keep the last 5 ones.
2.
I run now a schedule that on Saturday it run a backup from my Proxmox HP server and on Sunday it run a backup from my Proxmox Dell
My Proxmox Backup Server shutdown after each backup and turn on the server when is is time to run a backup.
But before it shutdown I like to run a verify of the backup VM.
There is an option to directly run a verify after doing a backup. But might not be that great because I could think it will create additional load while your other guests are being backed up, so the backup jobs might take longer and with that maybe also the downtime of your guests.
Maybe you could boot that PBs up a third time a week to do the maintaince tasks like prune, GC and verify?
 
Last edited:
  • Like
Reactions: cazz
Thanks for the fast replay
Hmm that was a good idea.

What I understand I go under Datastore>backups (I call it backups) and then under "Prune & GC" I can run a Prune Schedule and also in "Keep Last I write 2 (I think I just need to use two backup of each VM), It also make verify go faster

Also under "Verify Jobs" I add so it run schedule 30 min after Prune Schedule.

Does PBS have so I can run a "hook" so it shutdown after Verify Jobs is done?
 
A little update here.
What I have understand that is PBS does not have any hook script.
So I have done some basic stuff.
I have already many debian servers running so I did add a crontab in one of my server that turn the PBS on 10 minute before it run GC
3 hour later it run Prune and 2 hour after that it run Verify Jobs.
4 hour after that it shutdown the PBS.

I have done so I get log to my email so I know everything is ok (I get one for GC, one for Prune and one for Verify Jobs)
 
Keep in mind that GC will only delete chunks that have been pruned atleast 24 hours and 5 minutes before. So like you did it GC will only free up space 1 week later.
 

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!