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/files/migrate-files-between-shares.md
+20-22Lines changed: 20 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,45 +9,43 @@ author: khdownie
9
9
---
10
10
11
11
# Migrate files from one SMB Azure file share to another
12
-
13
-
This article describes how to migrate files between SMB Azure file shares. One common reason to do this is if you need to migrate from a standard file share to a premium file share to get increased performance for your application workload.
12
+
This article describes how to migrate files between SMB file shares hosted in Azure Files. You can use this method to migrate between HDD and SSD file shares, file shares using a different billing model, or file shares in different regions.
14
13
15
14
> [!WARNING]
16
15
> If you're using Azure File Sync, the migration process is different than described in this article. Instead, see [Migrate files from one Azure file share to another when using Azure File Sync](../file-sync/file-sync-share-to-share-migration.md).
17
16
18
17
## Applies to
19
-
20
-
| File share type | SMB | NFS |
21
-
|-|:-:|:-:|
22
-
| Standard file shares (GPv2), LRS/ZRS |||
23
-
| Standard file shares (GPv2), GRS/GZRS |||
Follow these steps to migrate using Robocopy, a command-line file copy utility included with Windows.
27
33
28
-
Follow these steps to migrate using Robocopy, a command-line file copy utility that's built into Windows.
34
+
1. Deploy a Windows virtual machine (VM) in Azure in the same region as your source file share. Keeping the data and networking in Azure is faster and avoids outbound data transfer charges. For optimal performance, we recommend a multi-core VM type with at least 56 GiB of memory, for example **Standard_DS5_v2**.
29
35
30
-
1. Deploy a Windows virtual machine (VM) in Azure in the same region as your source file share. Keeping the data and networking in Azure will be fast and avoid outbound data transfer charges. For optimal performance, we recommend a multi-core VM type with at least 56 GiB of memory, for example **Standard_DS5_v2**.
36
+
2. Mount both the source and target file shares to the VM. Be sure to mount them using the storage account key to make sure the VM has access to all the files. Don't use a domain identity.
31
37
32
-
1. Mount both the source and target file shares to the VM. Be sure to mount them using the storage account key to make sure the VM has access to all the files. Don't use a domain identity.
33
-
34
-
1. Run this command at the Windows command prompt. Optionally, you can include flags for logging features as a best practice (/NP, /NFL, /NDL, /UNILOG).
If your source share was mounted as s:\ and target was t:\ the command looks like this:
38
+
3. Run this command at the Windows command prompt. Optionally, you can include flags for logging features as a best practice (/NP, /NFL, /NDL, /UNILOG). Remember to replace `s:\` and `t:\` with the paths to the mounted source and target shares as appropriate.
You can run the command while your source is still online, but be aware that any I/O will work against the throttle limits on your existing share.
44
+
You can run the command while your source is still online, but IOPS and throughput used for the robocopy job counts against your file share limits.
47
45
48
-
1. After the initial run completes, disconnect your application from the existing share and run the same robocopy command again. This will copy over all the changes that happened since the initial run, skipping any file data that has already copied over.
46
+
4. After the initial run completes, run the same robocopy command again to copy over all the changes that happened since the initial run. Any data unchanged since the last copy job is skipped.
49
47
50
-
1. After the command completes for the second time, you can redirect your application to the new share.
48
+
5. You can repeat step 4 as many times as you would like before cutting over to the new file share.
0 commit comments