Skip to content

Commit 2c2e456

Browse files
authored
Merge pull request #90123 from fauhse/migration
Adding Previous Versions support for AFS
2 parents c2b3d85 + 46ae29e commit 2c2e456

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

articles/storage/files/storage-sync-files-deployment-guide.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,46 @@ Currently, pre-seeding approach has a few limitations -
394394
- Data changes on the server before sync topology is fully up and running can cause conflicts on the server endpoints.
395395
- After the cloud endpoint is created, Azure File Sync runs a process to detect the files in the cloud before starting the initial sync. The time taken to complete this process varies depending on the various factors like network speed, available bandwidth, and number of files and folders. For the rough estimation in the preview release, detection process runs approximately at 10 files/sec. Hence, even if pre-seeding runs fast, the overall time to get a fully running system may be significantly longer when data is pre-seeded in the cloud.
396396

397+
## Self-service restore through Previous Versions and VSS (Volume Shadow Copy Service)
398+
Previous Versions is a Windows feature that allows you to utilize server-side VSS snapshots of a volume to present restorable versions of a file to an SMB client.
399+
This enables a powerful scenario, commonly referred to as self-service restore, directly for information workers instead of depending on the restore from an IT admin.
400+
401+
VSS snapshots and Previous Versions work independently of Azure File Sync. However, cloud tiering must be set to a compatible mode. Many Azure File Sync server endpoints can exist on the same volume. You have to make the following PowerShell call per volume that has even one server endpoint where you plan to or are using cloud tiering.
402+
403+
```powershell
404+
Import-Module ‘<SyncAgentInstallPath>\StorageSync.Management.ServerCmdlets.dll’
405+
Enable-StorageSyncSelfServiceRestore [-DriveLetter] <string> [[-Force]]
406+
```
407+
408+
VSS snapshots are taken of an entire volume.
409+
By default, up to 64 snapshots can exist for a given volume, granted there is enough space to store the snapshots. VSS handles this automatically. The default snapshot schedule takes two snapshots per day, Monday through Friday. That schedule is configurable via a Windows Scheduled Task. The above PowerShell cmdlet does two things:
410+
1. It configures Azure File Syncs cloud tiering on the specified volume to be compatible with previous versions and guarantees that a file can be restored from a previous version, even if it was tiered to the cloud on the server.
411+
2. It enables the default VSS schedule. You can then decide to modify it later.
412+
413+
> [!Note]
414+
> There are two important things to note:
415+
>- If you use the -Force parameter, and VSS is currently enabled, then it will overwrite the current VSS snapshot schedule and replace it with the default schedule. Ensure you save your custom configuration before running the cmdlet.
416+
> - If you are using this cmdlet on a cluster node, you must also run it on all the other nodes in the cluster!
417+
418+
In order to see if self-service restore compatibility is enabled, you can run the following cmdlet.
419+
420+
```powershell
421+
Get-StorageSyncSelfServiceRestore [[-Driveletter] <string>]
422+
```
423+
424+
It will list all volumes on the server as well as the number of cloud tiering compatible days for each. This number is automatically calculated based on the maximum possible snapshots per volume and the default snapshot schedule. So by default, all previous versions presented to an information worker can be used to restore from. The same is true if you change the default schedule to take more snapshots.
425+
However, if you change the schedule in a way that will result in an available snapshot on the volume that is older than the compatible days value, then users will not be able to use this older snapshot (previous version) to restore from.
426+
427+
> [!Note]
428+
> Enabling self-service restore can have an impact on your Azure storage consumption and bill. This impact is limited to files currently tiered on the server. Enabling this feature ensures that there is a file version available in the cloud that can be referenced via a previous versions (VSS snapshot) entry.
429+
>
430+
> If you disable the feature, the Azure storage consumption will slowly decline until the compatible days window has passed. There is no way to speed this up.
431+
432+
The default maximum number of VSS snapshots per volume (64) as well as the default schedule to take them, result in a maximum of 45 days of previous versions an information worker can restore from, depending on how many VSS snapshots you can store on your volume.
433+
434+
If max. 64 VSS snapshots per volume is not the correct setting for you, you can [change that value via a registry key](https://docs.microsoft.com/windows/win32/backup/registry-keys-for-backup-and-restore#maxshadowcopies).
435+
For the new limit to take effect, you need to re-run the cmdlet to enable previous version compatibility on every volume it was previously enabled, with the -Force flag to take the new maximum number of VSS snapshots per volume into account. This will result in a newly calculated number of compatible days. Please note that this change will only take effect on newly tiered files and overwrite any customizations on the VSS schedule you might have made.
436+
397437
## Migrate a DFS Replication (DFS-R) deployment to Azure File Sync
398438
To migrate a DFS-R deployment to Azure File Sync:
399439

articles/storage/files/storage-sync-files-planning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ If you are using an on-premises backup solution, backups should be performed on
222222
> Bare-metal (BMR) restore can cause unexpected results and is not currently supported.
223223
224224
> [!Note]
225-
> VSS snapshots (including Previous Versions tab) are not currently supported on volumes which have cloud tiering enabled. If cloud tiering is enabled, use the Azure file share snapshots to restore a file from backup.
225+
> With Version 9 of the Azure File SYnc agent, VSS snapshots (including Previous Versions tab) are now supported on volumes which have cloud tiering enabled. However, you must enable previous version compatibility through PowerShell. [Learn how](storage-files-deployment-guide.md).
226226
227227
### Encryption solutions
228228
Support for encryption solutions depends on how they are implemented. Azure File Sync is known to work with:

0 commit comments

Comments
 (0)