Skip to content

Commit 4427123

Browse files
authored
Merge pull request #200462 from jeffpatt24/patch-1
Update file-sync-how-to-manage-tiered-files.md
2 parents 1d4ed81 + 05664ea commit 4427123

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

articles/storage/file-sync/file-sync-how-to-manage-tiered-files.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Tips and PowerShell commandlets to help you manage tiered files
44
author: khdownie
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 04/13/2021
7+
ms.date: 06/06/2022
88
ms.author: kendownie
99
ms.subservice: files
1010
---
@@ -57,6 +57,42 @@ There are several ways to check whether a file has been tiered to your Azure fil
5757
> [!WARNING]
5858
> The `fsutil reparsepoint` utility command also has the ability to delete a reparse point. Do not execute this command unless the Azure File Sync engineering team asks you to. Running this command might result in data loss.
5959

60+
## How to exclude files or folders from being tiered
61+
62+
If you want to exclude files or folders from being tiered and remain local on the Windows Server, you can configure the GhostingExclusionList registry setting. You can exclude files by file name, file extension or path.
63+
64+
To exclude files or folders from cloud tiering, perform the following steps:
65+
1. Open an elevated command prompt.
66+
2. Run one of the following commands to configure exclusions:
67+
68+
To exclude certain file extensions from tiering (for example, .one, .lnk, .log), run the following command:
69+
**reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Azure\StorageSync" /v GhostingExclusionList /t REG_SZ /d .one|.lnk|.log /f**
70+
71+
To exclude a specific file name from tiering (for example, FileName.vhd), run the following command:
72+
**reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Azure\StorageSync" /v GhostingExclusionList /t REG_SZ /d FileName.vhd /f**
73+
74+
To exclude all files under a folder from tiering (for example, D:\ShareRoot\Folder\SubFolder), run the following command:
75+
**reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Azure\StorageSync" /v GhostingExclusionList /t REG_SZ /d D:\\\\ShareRoot\\\\Folder\\\\SubFolder /f**
76+
77+
To exclude a combination of file names, file extensions and folders from tiering (for example, D:\ShareRoot\Folder1\SubFolder1,FileName.log,.txt), run the following command:
78+
**reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Azure\StorageSync" /v GhostingExclusionList /t REG_SZ /d D:\\\\ShareRoot\\\\Folder1\\\\SubFolder1|FileName.log|.txt /f**
79+
80+
3. For the cloud tiering exclusions to take effect, you must restart the Storage Sync Agent service (FileSyncSvc) by running the following commands:
81+
**net stop filesyncsvc**
82+
83+
**net start filesyncsvc**
84+
85+
### More information
86+
- If the Azure File Sync agent is installed on a Failover Cluster, the GhostingExclusionList registry setting must be created under HKEY_LOCAL_MACHINE\Cluster\StorageSync\SOFTWARE\Microsoft\Azure\StorageSync.
87+
- Example: **reg ADD "HKEY_LOCAL_MACHINE\Cluster\StorageSync\SOFTWARE\Microsoft\Azure\StorageSync" /v GhostingExclusionList /t REG_SZ /d .one|.lnk|.log /f**
88+
- Each exclusion in the registry should be separated by a pipe (|) character.
89+
- Use double backslash (\\\\) when specifying a path to exclude.
90+
- Example: **reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Azure\StorageSync" /v GhostingExclusionList /t REG_SZ /d D:\\\\ShareRoot\\\\Folder\\\\SubFolder /f**
91+
- File name or file type exclusions apply to all server endpoints on the server.
92+
- You cannot exclude file types from a particular folder only.
93+
- Exclusions do not apply to files already tiered. Use the [Invoke-StorageSyncFileRecall](#how-to-recall-a-tiered-file-to-disk) cmdlet to recall files already tiered.
94+
- Use Event ID 9001 in the Telemetry event log on the server to check the cloud tiering exclusions that are configured. The Telemetry event log is located in Event Viewer under Applications and Services\Microsoft\FileSync\Agent.
95+
6096
## How to exclude applications from cloud tiering last access time tracking
6197

6298
When an application accesses a file, the last access time for the file is updated in the cloud tiering database. Applications that scan the file system like anti-virus cause all files to have the same last access time, which impacts when files are tiered.

0 commit comments

Comments
 (0)