Skip to content

Commit 5309f7b

Browse files
Merge pull request #294592 from rladbsal/patch-2
Update file-sync-how-to-manage-tiered-files.md
2 parents 6750585 + 41a1fd8 commit 5309f7b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ When the cloud tiering feature is enabled, cloud tiering automatically tiers fil
149149

150150
```powershell
151151
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
152-
Invoke-StorageSyncCloudTiering -Path <file-or-directory-to-be-tiered>
152+
Invoke-StorageSyncCloudTiering -Path "file-or-directory-to-be-tiered"
153153
```
154154

155155
## How to recall a tiered file to disk
@@ -160,14 +160,24 @@ The easiest way to recall a file to disk is to open the file. The Azure File Syn
160160
> If a shortcut file is brought down to the server as a tiered file, there might be an issue when accessing the file over SMB. To mitigate this, there is a task that runs every three days that will recall any shortcut files. However, if you want shortcut files that are tiered to be recalled more frequently, create a scheduled task that runs this at the desired frequency:
161161
> ```powershell
162162
> Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
163-
> Invoke-StorageSyncFileRecall -Path <path-to-to-your-server-endpoint> -Pattern *.lnk
163+
> Invoke-StorageSyncFileRecall -Path "D:\path-to-your-server-endpoint" -Pattern *.lnk
164164
> ```
165165
166+
Parameters:
167+
168+
- `-Path` The -Path parameter in the `Invoke-StorageSyncFileRecall` command specifies where the recalled files should be restored on the local server. This path must be the server endpoint configured for Azure File Sync.
169+
* If you're unsure of the server endpoint path, navigate to your Azure File Sync agent → Select your Storage Sync Service → Open your Sync Group.
170+
* You can also run the following command via PowerShell:
171+
```powershell
172+
Get-StorageSyncServerEndpoint
173+
```
174+
- `-Pattern` The -Pattern parameter in `Invoke-StorageSyncFileRecall` is used to filter which files should be recalled from Azure File Sync. It allows you to specify file types or names using wildcards.
175+
166176
To ensure that a file is fully downloaded to local disk, you must use PowerShell to force a file to be fully recalled. This option might also be useful if you want to recall multiple files at once, such as all the files in a folder. Open a PowerShell session to the server node where Azure File Sync is installed, and then run the following PowerShell commands:
167177

168178
```powershell
169179
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
170-
Invoke-StorageSyncFileRecall -Path <path-to-to-your-server-endpoint>
180+
Invoke-StorageSyncFileRecall -Path "D:\path-to-your-server-endpoint"
171181
```
172182

173183
Optional parameters:
@@ -183,7 +193,7 @@ Example:
183193

184194
```powershell
185195
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
186-
Invoke-StorageSyncFileRecall -Path <path-to-to-your-server-endpoint> -ThreadCount 8 -Order CloudTieringPolicy -PerFileRetryCount 3 -PerFileRetryDelaySeconds 10
196+
Invoke-StorageSyncFileRecall -Path "D:\path-to-your-server-endpoint" -ThreadCount 8 -Order CloudTieringPolicy -PerFileRetryCount 3 -PerFileRetryDelaySeconds 10
187197
```
188198

189199
> [!NOTE]

0 commit comments

Comments
 (0)