Auto Restore for Training.

tomc

Active Member
Mar 10, 2010
94
0
26
77
Sydney Australia
Hi
Running ProxMox 3.1 and have 10 Virtual Windows 7 running.
These are used for training purposes, students log in with RDP from remote.
Each night I manually remove each VM, then restore the backups.
Nice and fresh for the next day.
I would like to automate this if I can?
I was thinking along the lines of an automatic backup, but in reverse.
Very new to Linux,
Do I find the backup job, where are the scripts kept?
and just reverse the from to?
Can the remove be automated and is it needed?
Thanks
Tom
 
yes you can, but only from the pve command line, through some bash scripting.
you can learn pve commands to restore doing a restore using the web gui, the restore task window should have the command on the first line or so.

to see all options, see this page
http://pve.proxmox.com/wiki/Qmrestore_manual

but before just try learning bash scripts with simpler tasks.
http://linux.die.net/Bash-Beginners-Guide/

I did the same ;-)

Another way could be using snapshots
http://pve.proxmox.com/wiki/Live_Snapshots
reverting every night to the base image

and perhaps linked clones
http://pve.proxmox.com/wiki/VM_Templates_and_Clones

hth
Marco
 
Last edited:
Hi, I found it's easy and fun. eg, I made a script to live migrate all vm/ct from one node to another, at once, when I need to maintain a node, but need to keep vm/ct on.

As further way, keep in mind there's a full API available (see wiki) and thus you can also automate things in that way. PVE & linux is great, isn't it? ;-)

Marco
 

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!