Changes

Jump to: navigation, search

stoney conductor: VM Backup

892 bytes added, 15:19, 9 January 2014
/* How to manually restore a machine from backup */
'''Double check all variables you are setting here. If one is not correct, you will restore a running machine or overwrite a live-disk image!'''
<source lang='bash'>
machinename="<MACHINE-NAME>" # For example: machinename="b6dc3d27-5981-4b18-8f3f-31ed3d21a3c6"vmpool="<VM-POOL>" # For example vmpool="0f83f084-8080-413e-b558-b678e504836e"
</source>
Change to the backup directory for the given machine and check the iterations:
<source lang='bash'>
cd /var/backup/virtualization/vm-persistent/${vmpool}/${machinename}
ls -al
</source>
Change into the most recent iteration
<source lang='bash'>
cd 2014...
ls -al
</source>
In there you should have:
* The state file <MACHINE-NAME>.state.<BACKUP-DATE> (for example b6dc3d27-5981-4b18-8f3f-31ed3d21a3c6.state.20140109T134445Z)
* The XML description <MACHINE-NAME>.xml.<BACKUP-DATE> (for example b6dc3d27-5981-4b18-8f3f-31ed3d21a3c6.xml.20140109T134445Z)
* The ldif file <MACHINE-NAME>.ldif.<BACKUP-DATE> (for example b6dc3d27-5981-4b18-8f3f-31ed3d21a3c6.ldif.20140109T134445Z)
* And at least one disk image <DISK-IMAGE>.qcow2.<BACKUP-DATE> (for example 8798561b-d5de-471b-a6fc-ec2b4831ed12.qcow2.20140109T134445Z)
== Next steps ==
486
edits