Page MenuHomePhabricator

PR2 Snapshotting & Restoring
Updated 1,883 Days AgoPublic

Version 5 of 6: You are viewing an older version of this document, as it appeared on Mar 22 2019, 2:29 PM.

We will use virsh to manage our snapshots of the VMs and their disks.

We'll need some blank file to store our XML data, and then store the XML data from a VM:

touch [backup-name].xml
sudo virsh dumpxml > [backup-name].xml

To make a snapshot:
sudo virsh snapshot-create-as --domain [vm-name] --name [backup-name]

To see the list of snapshots for a certain VM:
sudo virsh snapshot-list --domain [vm-name]

To get remove a snapshot for a VM:
sudo virsh snapshot-delete --domain [vm-name] --snapshotname [vm-snapshot]

To restore your VM from a certain snapshot (make sure to turn it off prior):
sudo virsh snapshot-revert [vm-name] [vm-snapshot]

Last Author
ajanib
Last Edited
Mar 22 2019, 2:29 PM

Event Timeline

ajanib edited the content of this document. (Show Details)
ajanib changed the title from PR2 Snapshotting to PR2 Snapshotting & Restoring.Mar 22 2019, 2:25 PM
ajanib edited the content of this document. (Show Details)