A bash script to automate the restoration of a virtual machine that has been backed up with the VM-Backup plugin on a Unraid server
http://www.youtube.com/watch?v=OIQKQPqLUfw
(For Windows VMs, it may be necessary to rename the _VARS-pure-efi-tpm.fd files and remove "tpm")
cd /mnt/user/SHARE NAME/BACKUP FOLDER
git clone https://github.com/Emilien-Lambert/Unraid-VM-Backup-Plugin-Restoration-Script.git
This will clone the script to your backup folder.
cd Unraid-VM-Backup-Plugin-Restoration-Script
chmod +x vm_backup_restoration.sh
./vm_backup_restoration.sh
This will begin the script.
The restoration process could take several minutes.
Once complete, stop your Unraid storage array and start it again.
Your newly restored VM will show up.
(Thanks to devanteweary for the written description)
The VM Backup plugin is really great it allows you to make backups of your virtual machines, but at the moment it is not possible to restore a backup from the Unraid web interface. That's why I decided to create a small script to automate the restoration of a backup.
I am not an expert in bash script so there are probably many ways to improve this script. I would like to take into account your remarks or improvement if you want to participate to the improvement of this script. I put an MIT license I guess it's just for this kind of project.
VM Backup plugin : https://forums.unraid.net/topic/86303-vm-backup-plugin/