Live Snapshot


Glacier

Recommended Posts

It's possible but not recommended since the backup will be in a crash consistent state, you can however do both, e.g., this is what I do, everyday I take a snapshot of all my VMs, including both that are always on, but about once a week, or when I need to stop or reboot unRAID for other reason I take a snapshot with all VMs offline, this way I have more options in case I need to restore from backup.

 

More info here on how to take snapshots and optionally back them up to another disk using btrfs send/receive (btrfs filesystem required):

 

 

 

 

Link to comment
  • 1 year later...

isn't this possible with virsh snapshot ?

 

1. virsh snapshot --domain vm (creates a second vdisk.img and make future writes to this vdisk) (it also points to this vdisk in the .xml file)

2. backup the vm original vdisk.img (no writes take place to this vdisk because of step 1, so "consistent state" ?)

3. virsh blokcommit --domain vm (merge snapshot vdisk to original vdisk, after that deletes the snapshot, and points the orginal vdisk back in .xml)

 

URL of Actual commands: https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit

 

i'm working/testing on a user script to do this, based on:

 

https://github.com/JTok/unraid-vmbackup

 

Thread:

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.