Service Integration - Backup/Restore with AzCopy
- Last Updated: April 6, 2022
- 3 minute read
- MOVEit Transfer
- Version 2024.1
- Version 2024
- Documentation
MOVEit Transfer Backup/Restore utility works but not with Blobs. For backing up an MOVEit Transfer file store in Azure Blobs, use AzCopy.
You can use AzCopy to:
- Create full or incremental backups of your file store. (Using
syncflag) - Restoring your file store.
Tasks for Backing up Your Blob Service
Follow these steps to perform a one-time backup of your primary file store to a target backup.
|
Task |
Description |
|
|---|---|---|
|
1. |
Download and install AzCopy (no install needed for version 10) |
AzCopy version 10 is needed for authentication feature. |
|
2. |
Give AzCopy access to File Store |
Provide access with OAuth (Azure AD) or by using a container level access token. |
|
3. |
Run a sync (azcopy sync) |
Sync your file store with your secondary storage |
Task 1: Download AzCopy
When this topic was written, AzCopy 10 had been released. You can learn and download AzCopy from the Microsoft documentation site.
A couple of features make AzCopy 10 preferable over AzCopy 8. AzCopy 10 provides:
- Authentication using container-level shared access signatures (SAS).
- OAuth/login authentication using your Azure Management Portal credentials for Blob Storage Service container access (Azure Storage Blob Data Contributor role is required)
Task 2: Give AzCopy Temporary Access to Your Azure Storage Container
Before you can run a copy or a
sync, provide AzCopy with access to your Azure
Storage Service.
You can provide AzCopy access in one of two ways:
- Use the
azcopy logincommand interactively or with an identity string. - Append a container-level shared access signature (SAS) to the Blob storage URL.
Use azcopy login Handshake (Interactive)
- With
azcopy.exeon your search path or in the current directory, run theazcopy logincommand. For example:C:\Users\midmzops>azcopy loginAzCopy prompts you with instructions you need to complete an authentication challenge. For example:
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <authCode> to authenticate
- Open https://microsoft.com/devicelogin. You will be prompted to
select the identity and enter the credentials you use to sign-on to the Azure
Management Portal that controls the Storage Service that you want to backup.
[Microsoft returns/displays a web form where you can enter your <authCode>]
- Enter the value given for <authCode> in the web form
After you enter the code a success message displays. For example:
Login succeeded.
- Proceed to the next Task and run your copy or sync.
Task 3: Run the Copy or Sync
For this section, you will run the copy or sync of Blob resources. You can run a copy or sync only with an Azure user role with Storage Blob Data Contributor access permissions. If your user does not already have these, you will need to go to the Azure Management Portal and assign them.
azcopy.exe -help.Run a Backup Copy
- Run a copy operation on your MOVEit Transfer Blob storage container. For example:
azcopy copy "https://example.blob.core.windows.net/midmz2019" "C:\Users\Administrator\Desktop\Backup\1Feb2019" --recursive—where
exampleis your storage service name andmidmz2019is the storage service container.—and, where "C:\Users\Administrator\Desktop\Backup\1Feb2019" is the target folder to back up to.
Backup runs with a GUID for the job ID. This job ID is also used for your log file. For example:
Scanning...Using OAuth token for authentication.Job ca7ddf27-a6b7-7c43-5c67-e7f2d155afe5 has startedLog file is located at: C:\Users\Administrator/.azcopy/ca7ddf27-a6b7-7c43-5c67-e7f2d155afe5.log50 Done, 0 Failed, 4 Pending, 0 Skipped, 54 Total , 2-sec Throughput (Mb/s): 192.4471Job ca7ddf27-a6b7-7c43-5c67-e7f2d155afe5 summaryElapsed Time (Minutes): 0.5006Total Number Of Transfers: 54Number of Transfers Completed: 54Number of Transfers Failed: 0Number of Transfers Skipped: 0TotalBytesTransferred: 1569461472Final Job Status: Completed - Save the log file for future reference.