You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/file-sync/file-sync-how-to-manage-tiered-files.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Tips and PowerShell commandlets to help you manage tiered files
4
4
author: khdownie
5
5
ms.service: storage
6
6
ms.topic: how-to
7
-
ms.date: 04/13/2021
7
+
ms.date: 06/06/2022
8
8
ms.author: kendownie
9
9
ms.subservice: files
10
10
---
@@ -57,6 +57,42 @@ There are several ways to check whether a file has been tiered to your Azure fil
57
57
> [!WARNING]
58
58
> 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.
59
59
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:
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:
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.
- 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
+
60
96
## How to exclude applications from cloud tiering last access time tracking
61
97
62
98
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