kvm live backup

Live backup of your VM running in KVM under Ubuntu using qcow2 disk images

# First of all disable apparmor to allow access

# View disks

# Suspend the domain (This is optional. I do this so that the condition of virtual machines remains unchanged during the backup.)

# Create snapshot

# or

# View snapshots

# View disks (it must be running on snapshots)

# Copy drives to backup dir

# Perform active blockcommit by live merging contents

# View disks (it must be running on normal drives)

# Unsuspend the domain

# View snapshots again

# Delete snapshots

# View snapshots to check

# Delete snapshot files

Leave a Reply

Your email address will not be published. Required fields are marked *