Auto-restoring from VM snapshot

DynFi User

Renowned Member
Apr 18, 2016
155
17
83
50
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 ;)