unraid-autovmbackup: automate backup of virtual machines in unRAID - v0.4

128 posts in this topic Last Reply

Recommended Posts

2) Run the script with the vdisks_to_skip field filled out for one of the vdisks so that only one gets backed up. Then rename the one vdisk you have a backup of and change the VM configuration.

Cheers JTok, went with option two and it seems to be working as intended now.

Sent from my iPhone using Tapatalk

Share this post

Link to post
Posted (edited)

A bug in your script just saved my bacon!  My pfsense VM crashed and got corrupted and I'd lost all my config backups as I think they were in the same folder where the xml backup is done.


Anyway, I luckily spotted that the script had backed up the pfsense VM image file even though I had set it not to!


# list of specific vdisks to be skipped. use the full path.

I didn't want to backup the image as I didn't want my whole network to go down and 'normally' restoring via the config is easy.  Anyway, thanks for the bug as it saved my life.


I've now made multiple copies of my config so please feel free to fix the bug - logs attached ;-)



Edited by DZMM
  • Like 1

Share this post

Link to post

Hello folks, 


I have been using this to back up a VM, and a recent power outage corrupted the VM.


I copied over the img, but that was insufficient to restore the VM.

I assume this means the configuration is damaged, and while I believe that is part of the backup (the xml file?) I am not sure the proper way to utilize that in the restore process.


Can someone guide me in properly restoring from the backup?

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.