I'm currently running a Windows Agent Backup job within B&R and I set the number of restore points to 2, but this is not working.
This is because of this:
NOTE
The minimum number of retained restore points is 3, and this number does not depend on the number of days set in the backup job settings. You can change the minimum number of retained restore points with a registry value. To learn more, contact Veeam Customer Support.
For Retention Type "Days", please do so as explained --> Contact our customer support team.
For Retention Type "Restore Point", only two restore points should be kept. There will be a third restore point while a job session is running. But after the session created the new restore point, the oldest one can be deleted. If you see something different, then please contact our customer support team as well.
May I ask why you only want to have 2 restore points? I assume it's too save "storage"?
Please note, having "Only 2 restore point" may be dangerous. Consider an attacker to be on the system for many days (or weeks) already. Slowly infecting your files and applications. Your only 2 restore points will be poisoned and not usable for a clean restore.
Or slowly file corruption. Your find it out 7 days after it started. No healthy restore point available.