Implement backup and recovery Flashcards
What are the different backup solution in azure?
Azure data backup solutions are:
1.MARS
2.MABS
3. Azure site recovery
4. Azure managed disks snapshots
5. Azure backup
6. Azure backup for Azure vm
7. Azure backup files
Azure backup service
https://learn.microsoft.com/en-us/azure/backup/backup-overview
https://azure.microsoft.com/en-us/updates/soft-delete-virtual-machine-backup/
Is a solution that provides solutions to backup your data and recover it from the azure cloud.
What can be backed up using azure backup:
1. On prem
2. Azure vm’s
3. Azure managed disks
4. azure file shares
5. SQL server in azure vm’s
6. SAP HANA databases
7. Azure blobs
*With soft delete, even if a user deletes the backup (all the recovery points) of a VM, the backup data is retained for 14 additional days, allowing the recovery with no data loss.
- Azure Backup doesn’t limit the amount of inbound or outbound data you transfer, or charge for the data that’s transferred. Outbound data refers to data transferred from a Recovery Services vault during a restore operation. If you perform an offline initial backup by using the Azure Import/Export service to import large amounts of data, there’s a cost associated with inbound data.
*
Backup on prem machines
- You can back up on prem Windows machines by using the the MARS ( Azure Backup Microsoft Azure Recovery Services) agent. Linux machines are not supported using this tool
- You can backup on prem machines to a backup server by using MABS( Microsoft Azure Backup Server) or DPM(System center data protection manager).
*The backup server can then be backed up to a recovery services vault.
Backup Azure VM’S
- You can backup vm directly by installing the backup extension to the azure vm agent that running on the vm.
- The extension backups the entire vm. - You can backup files and folders by using the MARS agent
Where is the data backed up?
Azure backup stores the backed up data in vaults such as recovery service vaults or backup vaults.
A vault is a storage entity that used to hold data , such as backup copies , recovery points and backup policies.
How is the data replicated in the vault?
- Locally redundant storage(LRS)
- Protects data from server rack and drive failures.
- Replicates the data three times within a single data center in primary region. - Geo Redundant storage ( GRS)
- Protects against region wide outages
- Replicates your data to a secondary region - Zone redundant Storage(ZRS)
- Replicates data in availability zones , this provides data residency and resiliency in the same region.
By default Recovery services vaults use GRS
* Recovery services vault can have up to 500 vaults*
What are the Backup Agents?
Azure backup provides different backup agents depending on the machine being backed up.
- MARS agent
- Can Run on individual on prem windows server machines to back up files , folders and system state.
- Can run on azure vm to back up files , folders and system state
- Can run on DPM/MABS servers to backup the DPM/MABS local storage disk to azure. - Azure VM extension
- Runs azure VM to backup them up to a vault.
What are the Backup types?
- Full backup
- Contains the entire data source takes more network bandwidth.
- Used for initial backup - Differential
-Stores the blocks that changed since initial full backup.
Not used by azure backup - Incremental
- Stores only the blocks of data that changed since the previous backup.
Used by DMP/MABS for disk backups
* Used in all backups to azure*
Not used for SQL server backups
Implement Backup center for azure backup
Back up center is a dashboard where you can govern , monitor , operate and analyze backups.
Things to consider when using backup center:
1. Range capabilities
Spans across multiple workload types such as vaults , subscriptions , regions , tenants
- Data source centric management
you can filter views by data source specific properties including subscription , resource groups and tags. - Connected experiences
Uses azure policy to to help govern your backups
Uses Workbooks of azure monitor and Azure monitor logs for detailed reports on backups. - supported in various tools
-Azure vm backup which includes SQL and SAP HANA
-Azure files backup , azure blob storage backup , azure managed disks backup
-Azure database for postgre SQL
What is a recovery services vault?
Stores recovery points that are created overtime and provides an interface to perform backup related operation such as on demand backups , performing restores and creating backup policies
Things to know about recovery services vault
https://learn.microsoft.com/en-us/azure/backup/backup-create-recovery-services-vault
https://learn.microsoft.com/en-us/azure/backup/backup-azure-delete-vault?tabs=portal
- Can be used to backup Azure file shares or on prem files and folders
- Stores backup data for various azure services such as IaaS linux or windows VM’s and Azure SQL in azure vm’s
- Supports system center data protection manager , windows server , Azure backup server (MABS)
*Select the geographic region for the vault. For you to create a vault to help protect any data source, the vault must be in the same region as the data source.
** The default period for daily backups is 30 days
What is Azure MARS agent?
Is used to backup files , folders and system data from your on prem machines or Azure vm’s.
Note: The Primary method for backing up Azure VM’s is to use the Azure backup extension but if you want to backup specific folders/files then you install the MARS agent in azure VM’s
Things to know about MARS agent
- Azure backup for files and folders relies on the MARS agent be installed on your Windows client or Windows Server
- You can backup files and folders on windows vm’s or physical machines. Vm can be on prem or azure
- MARS does not require a sperate backup server
- Not application aware. You can restore files and folders from backups or volume level restore.
Things to Consider when using MARS agent
Several ways you can run the MARS agent:
- On prem direct backup
Run the MARS agent on the on prem windows machines to backup your data directly to the Recovery services vault. - Backup for specific Files and Folders
Run MARS agent on Azure VM to backup specific files and folders on your VM. The VM must run side by side with azure VM backup extension - Back up to MABS or system center DPM
Run the MARS agent on MABS instance or DPM server. Backup you machines and workloads to MABS or DPM by using the MARS agent to back up to a recovery service vault.
Azure MARS Backup scenarios
- Files and Folders
Protects windows files and folders - Volume level
Protects the entire windows volume - System level
Protect entire windows system state.
Azure MARS Recovery Scenarios
- Same server
- Alternative Server
Use MARS to backup on prem files and folder
The following steps need to be done to backup your on prem Files and folders.
Step 1 Create Recovery Services vault
The vault must be created within your azure subscription.
Step 2 : Download MARS agent and credential file
From backup center dashboard , the recovery service vault page provides a link t download the MARS agent.
- To complete the MARS installation you need to download the Vault credential file
Step 3: Install and register MARS agent
Download the credential file to register the agent
The MARS agent is installed on your local machine
Step: Configure backups
Now you can use the MARS agent to create a backup policy. You can schedule when to create the backup , what data to backup and how long too keep the backup items
Backup options for Virtual Machines
There are 4 options for backing up your virtual machines and they are Azure backup , Azure site recovery , Azure managed disks snapshot and Azure managed disk image.
Backup Option 1 for Virtual machines - Azure backup
Configuration scenarios
1. Back up azure VM’s running workloads
2. Create backups for both windows and Linux VM’S
Description
Azure backup takes a snapshot of your virtual machine and stores the data as recovery points in geo redundant recovery vaults.
When you restore your VM you have the choice t recover the entire vm or specific c files/folders.
Backup Option 2 for Virtual machines - Azure Site recovery
Configuration scenarios:
1. Recover specific applications
2. Replicate to azure region of your choice
Description
Protects your vm form major disaster scenario when an entire region experiences an outage.
Backup option 3 for virtual machines - Azure managed disks snapshots
- Backup your vm that use managed disks at any time
- Support development and test environments
-Azure managed disk snapshot is a read only full copy of a managed disk that’s stored as a standard managed disk by default.
- Independent from the source disk and can be used to create new managed disks
- Each snapshot is billed according to the actual sized used. You only billed on how much you use.
Backup option 4 for virtual machines - Azure managed disks Images
1.Create an image from a custom VHD in azure storage account or generalized vm
- Create hundreds of vm using the custom image without copying any storage account
Azure managed disks also supports creating a managed custom image. captures a single image that contains all managed disks associated with the vm
Things to consider when creating images vs snapshots
- Consider images
can use an image of a generalized vm thats been deallocated. This image will include all the disks that attached to the vm. - Consider snapshots
Is a copy of a disk at a point in time.
Only applies to 1 disk of the vm. So if there is multiple disks attached to the vm it will only take a snapshot of the one you taking a snapshot of.
Does not support snapshots of disks that are setup in striping etc. - Consider OS disk backups
if vm has one disk attached you can take a snapshot or image of the disk.
Create virtual machine snapshot in azure backup
Azure backup creates a snapshot for vm in 2 steps:
Step 1 . Take a snapshot of the vm data
Step 2 Transfer snapshot to azure recovery services vault