Auto-restoring from VM snapshot

DynFi User

Renowned Member
Apr 18, 2016
147
16
83
49
dynfi.com
Hello,

I am looking for a way to automate the restoration of a snapshoted VM to it's snapshoted initial state.

This is a testing environment that we provide to our prospect and I would like to kick back every night at a giveng time to the snapshotted version.
Do you know how I can :

  • list existing snapshots
  • trigger the roll-back to a given snapshot

I need to automate that using a cron action, so everything needs to be based on CLI.

Thanks for your replies.
 
you can either use the API or the CLI tools for the respective guest technology (qm for qemu VMs, pct for containers). the respective man pages should give you the commands you need ;)
 

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!