You could take a snapshots of each VM/LXC at the state you want them to restore to and write a shell script that is run at each boot and will roll them back to that snapshot.
Shouldn't be that hard to do. You should take a look at the proxmox documentation. You could use pct rollback <vmid> <snapname>
and qm rollback <vmid> <snapname>
in that script.