Backing Up Files with Azure File Sync
Backup in the Cloud
One of the primary features of Azure File Sync (AFS) is the ability to move your backups from the file server to the cloud. When you synchronize a folder to Azure with Azure File Sync, it is strongly recommended that you relocate the backup task to Azure. This is because you’ll probably have introduced cloud tiering, and an on-premises backup solution might not respect the offline status (O attribute) of a cloud tiered file, and needlessly download gigabytes or terabytes of files every night.
By using Azure Backup, you can:
- Centralize the backup function.
- Simplify deployments in branch offices and small businesses.
- Backup to the cloud … because the files are already in the cloud.
- Store files “offsite” by using the default geo-redundant blob storage of the recovery services vault, which will replicate your backups to the region that is paired to the location of your AFS storage sync service.
- Reduce costs by using storage and pay-per-usage backup in the cloud.
Tip: Those of you using Azure Backup MARS agent to protect on-premises file servers might consider AFS because it also adds disaster recovery and multi-site replication, and the entire backup function is cloud-based.
Today, the backup works by creating incremental snapshots of the files in the storage account. Backups are not transferred to the Azure Backup recovery services vault – but this is supposed to be coming. It is important to place a delete lock on the storage account to prevent accidental deletion of the master copy of your synchronized files and their backups/replicas. The Azure Backup preview for Azure Files is in preview, and the retention provided by the current system is limited to retaining up to 120 daily backups.
You will need two things to begin:
- AFS must be configured and is synchronizing files to a storage account. Make sure that the storage account has a delete lock on it.
- Deploy a recovery services vault in the same region as the AFS deployment.
Although Azure Backup doesn’t use its own blob storage for backups yet, if you wish to reduce costs for when it does, then you should reconfigure the recovery services vault to use locally-redundant storage (Backup Infrastructure > Backup Configuration) before you register an Azure Files share for backup because you cannot change it afterwards. I would recommend sticking with GRS because the storage is cheap, even at double the cost, and having that “offsite” copy of backups is considered good practice.
To enable backups, open the recovery services vault that will orchestrate the backup process, navigate to Backup Items (under Protected Items) > Azure Storage (Azure Files).
Click + Add to add a new Azure Files share (the contents of an AFS sync group) to protect. A Backup Goal will appear. In the preview, this will assume that you want to backup Azure virtual machines. Change the configuration to backup Azure Files shares in Azure, as shown below.
- Policy Name: An alphanumeric name that must not have spaces and cannot start with a number.
- Backup Frequency: Specify when this daily backup will happen.
- Retention: Keep the backups for between 1 and 120 days.
Note: If you delete a share, you delete its backups.
In a future post, I will show you how to restore from these backups.
More in Microsoft Azure
Azure Native New Relic Service Provides Full Stack Observability To Boost Digital Transformation
Jan 25, 2023 | Rabia Noureen
Microsoft Acquires Fungible to Bolster Azure Networking and Storage
Jan 10, 2023 | Rabia Noureen
Microsoft to Roll Out EU Data Boundary Plan for Cloud Services on January 1
Dec 15, 2022 | Rabia Noureen
Microsoft's New Azure Storage Mover Tool Makes Cloud Migrations Easier
Dec 9, 2022 | Rabia Noureen
How to Migrate an Azure ExpressRoute Connection￼
Nov 18, 2022 | Flo Fox
Microsoft Partners with Nvidia to Build Azure-Powered AI Supercomputer
Nov 16, 2022 | Rabia Noureen
Most popular on petri