(what are these boxes?)
Related Titles Guest-Level Backup Host-Level Backup
This topic is built upon the assumptions taken at the following discussions. You should understand the terms and concepts discussed in those topics before proceeding further.
↑ Back to top
The most obvious option is to back up virtual machines (VMs) as if they were physical servers. This includes installing backup software (or agents) in Guest Operating Systems (OSes) and maintaining separate backup jobs (or even multiple backup jobs) per VM. The trade-offs of such approach are discussed in detail in Choice of Virtualization Strategy: General.
Restore process for a VM that was completely lost would include manual creation a new VM with blank virtual hard disk(s). Then you should follow the full disaster recovery procedure including booting the VM into restore environment and performing “Bare-Metal Recovery (BMR)”. For details on different recovery cases of virtualization-unaware backup and restore please see Backup and Restore: Classification of Scenarios.
Host-level backup does not necessarily mean backing up the host as a whole. It can be as granular as your backup and restore application allows it to be. But in common case a host-level backup means backing up a single virtual machine a time. This is discussed in more detail below at Host-Level Backup Scenarios.
Virtualization-aware host-level backup and restore application usually provides both of the following two backup modes.
This means backing up a VM that is turned off. This is a rather trivial task that includes backing up VM files just like any ordinary files from file system of the Host OS or management partition
Pros
Cons
This is backing up running VM. It is a much more complex procedure that can be performed using two different approaches. Please note that depending on specific hypervisor and/or VM features (e.g.: “Pass-Through” virtual hard disk attached) this type of backup may be not possible.
Due to above mentioned limitations this approach should be treated as the last resort and used only in case all other options discussed in this article are not available.
To take advantage of this approach you need special support from the following parties:
Closer, the backup data should pass three stages down through the stack.
Depending on your backup and restore application one or several of the following scenarios may be possible. A good backup and restore application can combine several of these restore scenarios with only one copy of data being backed up.
VM configuration is usually stored in the host OS (or management partition) separately of Virtual Machine data (that is usually located in Virtual Hard Disk files). Virtual machine configuration is something Guest OS has no clue about. So backing it up is one of the key advantages of host-level backup and restore over guest-level one. You may think of two different scenarios when you can take advantage of this type of backup and restore.
If your virtual machine has several virtual hard disks attached you can decide backing up and restoring some of them independently of the others. This can be helpful in the following scenarios.
backup and restore only data volume if backup media is tightly limited and reinstalling Guest OS does not seem like a big problem to you.
This combines two previous options (preferable included into a single operation instead of separate ones) and may be helpful in the following scenarios.
creating exact copy of VM when required for testing or development scenarios. This scenario is sometimes referred as “Alternate Location Recovery (ALR)”.
This type of backup is usually performed in the following steps.
Snapshots are made read-only by definition so they cannot be used to “Inject” restored data into running VM. So only the following restore scenarios may be supported for individual files.
Alternate Location Recovery (ALR) when data is copied to non-original destination where backup and restore application has write access (either directly or through its agents).
Most hypervisors provide features like “Snapshot” or “Checkpoint”. Some people think that this can be used as a kind of backup. Please note that this is not the same as using snapshots or shadow copies for the means of correct Host-Level Online Backup.
Most vendors do not promote “Snapshot” or “Checkpoint” features as backup replacement or alternative. There are several reasons for it.
Due to abovementioned limitations you should never use “Snapshot” or “Checkpoint” features instead of regular backups performed using other supported mechanisms discussed in this article. Though, “Snapshot” or “Checkpoint” is a great feature for development and test environments especially with server roles that do not require application awareness.
Pronichkin edited Revision 2. Comment: Final cleanup; “Work in progress” template removed.
Pronichkin edited Revision 1. Comment: minor link fixes
Pronichkin edited Original. Comment: Grammar, formatting, readability. Added warning against using Snapshots instead of regular Backups. Added TOC
Carsten Siemens edited Revision 4. Comment: Fixed misspellings