Application-Consistent Backups (BETA)
Application-consistent backups are used for backing up entities with high or extremely high transaction loads. Good examples of such entities can be Microsoft SharePoint, Active Directory, MS SQL Server, Oracle database solutions, or any other.
As such high-transactional solutions are subject to back up, it is quite important that memory state and contents and currently pending transactions are frozen and included in the backup dataset.
In case memory cannot be flushed to disk, a backup dataset may not be valid or at least not a customer expects to have.
Thus, an application-consistent backup is a backup that is able to notify applications that backup occurs soon and allows applications to achieve a quiescent and consistent state by flushing all operations to disk.
To try the new feature out, download and install Backup for Windows 7.4 (BETA)
Frameworks for Application-Consistent Backups
Volume Shadow Copy Service (VSS) is a framework designed primarily to solve the application-consistent problems for Windows operating systems. VSS is an infrastructure that provides backup applications with the feature of creating application-consistent backups.
When a backup procedure is initiated, VSS works as follows:
- Every running application that needs to flush its data kept in RAM to disk is notified by VSS.
- Then a Copy-On-Write operation is performed on volume.
- A volume snapshot is done and can be processed by a backup application.
In case an application runs on a virtual machine on Hyper-V Server, a VSS-aware backup of the Hyper-V host, leveraging Hyper-V Integration Services, communicates with the VSS writers in the guest virtual machine to perform an application-consistent backup of the virtual machine and the applications on it
Application-Consistent VMware Backups
Application-consistent backup of virtual machines on VMware environment is based on quiescence.
Quiescing is a process of bringing virtual machine file systems and application data to a consistent state. This is an important tool for correct application-consistent virtual machine backups.
To back up a currently running VM, quiescence is the perfect method. Especially, this concerns virtual environment with highly-transactional applications (e.g. MS SQL Server or alike), since the safety of the application data is guaranteed by quiescence.
To back up consistently VMs with no VSS support (Linux VMs), quiescence in job settings. In this case, quiescence is used to bring a VM to a consistent state before the backup plan starts.
Also, quiescence suits for backups of Microsoft Windows-based VMs with the built-in Microsoft VSS support. For this, the VMware VSS component of VMware Tools is used.
To learn more, refer to Working with VSS chapter of the VMware documentation
Configure Application-Consistent Backups
You can configure the application-consistent settings on the Select Virtual Machines step of the VMware backup wizard.
Click Advanced Settings.
The following options are available:
- Back up virtual machines with application-consistent issues. Once this option is selected, virtual machines are backed up one by one. Using the installed VMware Tools, the state of applications running on virtual machines is checked, then a snapshot is made and an application-consistent backup is performed. In case an application-consistent snapshot is not made for some reasons, a regular snapshot is done for this virtu machine
- Skip virtual machines with application-consistent issues. Once this option is selected, virtual machines with applications that did not flush pending I/O operations from memory to disks, are skipped and an appropriate warning is displayed for a user
- Do not use application-consistent backup. Once this option is selected, regular VM snapshots are done without quiescing
Application-Consistent Hyper-V Backups
Application-consistent backups of virtual machines on Hyper-V environment is based on interactive checkpoint type selection.
Available Hyper-V Checkpoint Types
Windows 10 Hyper-V includes two types of checkpoints:
- Standard Checkpoints. Standard checkpoint takes a snapshot of the virtual machine and virtual machine memory state at the time the checkpoint is initiated. A snapshot is not a full backup and can cause data consistency issues with systems that replicate data between different nodes such as Active Directory. Hyper-V only offered standard checkpoints (formerly called snapshots) prior to Windows 10
- Production Checkpoints. Production checkpoint uses Volume Shadow Copy Service or File System Freeze on a Linux virtual machine to create a data-consistent backup of the virtual machine. No snapshot of the virtual machine memory state is taken.
Checkpoints Back Up
Checkpoint creation logic in CloudBerry Backup depends on Hyper-V configuration. The following cases are possible:
- Production checkpoints are selected
- Standard checkpoints are selected
- Checkpoints are disabled (no checkpoint type selected)
CloudBerry Backup always starts by trying to create a checkpoint of the selected type first. In the event of a failure, a recovery inconsistent checkpoint will be created. The recovery inconsistent checkpoint does not contain VM VSS snapshot. If no checkpoint type is set, MSP360 (CloudBerry) Backup starts by trying to create a recovery consistent checkpoint using VM VSS snapshot. In the event of a failure, the recovery inconsistent checkpoint will be created. The recovery inconsistent checkpoint does not contain VM VSS snapshot. In case of the recovery consistent checkpoint usage, I/O activities that are quiesced at a point of creating VM VSS shapshot will be resumed to ensure successful restore. In case of the recovery inconsistent checkpoint is used for restore, the restore may fail.
To learn how to configure checkpoints in your Hyper-V environment, refer to Using checkpoints to revert virtual machines to a previous state chapter at docs.microsoft.com