I need to copy specific directories from an Azure data disc (classic) attached to a classic VM to a new data disk attached to a new Linux (Ubuntu) VM. What is the simplest way to move this data (~200GB) from one to the other? The drives are located in different regions. Once the data is copied, the classic resources will be shut down.
Currently, I've attempted to move the data using WINSCP, but of course, that solution is very slow, I've done some research on copying data using AZcopy, but I'm unsure if this is really the simplest solution or if I'm over complicating it by using tools like that.
To transfer files from one
Ubuntu VMto anotherVM, there are multiple ways, but the best approaches are listed belowMethod 1: Using SCP
To copy the datadisk files to another VM data Disk.
Nettoolson both theVmsusing below commandVM1's data disk toVM2's data disk.Result:
Files are copied to
VM2data disk successfully.Method 2 : AzCopy
Storage accountwith container. 3 . Log in toAzCopyonVM1to copy the files to the storage account using the command below.Data copied to Storage account from VM1 datadisk
VM2using theazcopy logincommandVM2data disk.Files are copied to
VM2datadisk successfully.Reference: scp command to copy the files