Skip to content

Commit 2bb2198

Browse files
Add guidance for identifying excluded files in File Sync
Added instructions for identifying excluded files from File Sync using PowerShell and TreeSize.
1 parent e752a89 commit 2bb2198

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

support/azure/azure-storage/files/file-sync/file-sync-troubleshoot-cloud-tiering.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,19 @@ This option doesn't require removing the server endpoint but requires sufficient
328328
3. Use the *OrphanTieredFiles.txt* output file to identify orphaned tiered files on the server.
329329
4. Overwrite the orphaned tiered files by copying the full file from the Azure file share to the Windows Server.
330330
331+
## How to identify files that are excluded from File Sync
332+
1. Open PowerShell in administrator mode.
333+
2. Navigate to the folder by replacing <volume letter> and <syncShare> with the volume letter and sync share names
334+
```powershell
335+
cd <volume letter>\ <syncShare>\
336+
```
337+
3. Run this command
338+
```powershell
339+
dir desktop.ini,thumbs.db,ehthumbs.db,~$*.*,*.laccdb,*.tmp -Recurse -Force -File -ErrorAction Ignore
340+
```
341+
342+
Alternatively, you may use the TreeSize tool. The same list of exclusions can be put into the TreeSize 'filters' configuration to count excluded content. The advantage of this approach is that the content which the administrator does not have access to in case of the former approach will be accessible by TreeSize (because it uses the backup/restore permissions when scanning content).
343+
331344
## How to troubleshoot files unexpectedly recalled on a server
332345
333346
Antivirus, backup, and other applications that read large numbers of files cause unintended recalls unless they respect the skip offline attribute and skip reading the content of those files. Skipping offline files for products that support this option helps avoid unintended recalls during operations like antivirus scans or backup jobs.

0 commit comments

Comments
 (0)