Skip to content

Commit 4e94a08

Browse files
authored
Merge pull request #110363 from dcurwin/b-april6-2020
AFS Documentation
2 parents 97cf745 + 905eb75 commit 4e94a08

File tree

6 files changed

+40
-113
lines changed

6 files changed

+40
-113
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19189,6 +19189,11 @@
1918919189
"redirect_url": "/azure/backup/backup-overview",
1919019190
"redirect_document_id": false
1919119191
},
19192+
{
19193+
"source_path": "articles/backup/tutorial-backup-azure-files.md",
19194+
"redirect_url": "/azure/backup/backup-afs",
19195+
"redirect_document_id": false
19196+
},
1919219197
{
1919319198
"source_path": "articles/backup/backup-azure-backup-ibiza-faq.md",
1919419199
"redirect_url": "/azure/backup/backup-azure-backup-faq",

articles/backup/index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ landingContent:
5656
url: tutorial-sql-backup.md
5757
- text: Backup files and folders on Windows Server
5858
url: tutorial-backup-windows-server-to-azure.md
59-
- text: Back up Azure Files shares
60-
url: tutorial-backup-azure-files.md
59+
- text: Back up SAP HANA databases in an Azure VM
60+
url: tutorial-backup-sap-hana-db.md
6161
# Card
6262
- title: Learn about the latest features in Azure Backup
6363
linkLists:

articles/backup/restore-afs-cli.md

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ By the end of this article, you'll learn how to perform the following operations
1515
* Restore a full Azure file share.
1616
* Restore individual files or folders.
1717

18+
>[!NOTE]
19+
> Azure Backup now supports restoring multiple files or folders to the original or an alternate location using Azure CLI. Refer to the [Restore multiple files or folders to original or alternate location](#restore-multiple-files-or-folders-to-original-or-alternate-location) section of this document to learn more.
20+
1821
[!INCLUDE [cloud-shell-try-it.md](../../includes/cloud-shell-try-it.md)]
1922

2023
To install and use the CLI locally, you must run Azure CLI version 2.0.18 or later. To find the CLI version, run `az --version`. If you need to install or upgrade, see [Install the Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest).
2124

2225
## Prerequisites
2326

24-
This article assumes that you already have an Azure file share that's backed up by Azure Backup. If you dont have one, see [Back up Azure file shares with the CLI](backup-afs-cli.md) to configure backup for your file share. For this article, you use the following resources:
27+
This article assumes that you already have an Azure file share that's backed up by Azure Backup. If you don't have one, see [Back up Azure file shares with the CLI](backup-afs-cli.md) to configure backup for your file share. For this article, you use the following resources:
2528

2629
| File share | Storage account | Region | Details |
2730
| ----------- | --------------- | ------ | ------------------------------------------------------------ |
@@ -37,7 +40,7 @@ Use the [az backup recoverypoint list](https://docs.microsoft.com/cli/azure/back
3740
The following example fetches the list of recovery points for the *azurefiles* file share in the *afsaccount* storage account.
3841

3942
```azurecli-interactive
40-
az backup recoverypoint list --vault-name azurefilesvault --resource-group azurefiles --container-name "StorageContainer;Storage;AzureFiles;afsaccount --backup-management-type azurestorage --item-name AzureFileShare;azurefiles --workload-type azurefileshare --out table
43+
az backup recoverypoint list --vault-name azurefilesvault --resource-group azurefiles --container-name "StorageContainer;Storage;AzureFiles;afsaccount" --backup-management-type azurestorage --item-name "AzureFileShare;azurefiles" --workload-type azurefileshare --out table
4144
```
4245

4346
You can also run the previous cmdlet by using the friendly name for the container and the item by providing the following two additional parameters:
@@ -77,7 +80,7 @@ When you restore to an original location, you don't need to specify target-relat
7780
The following example uses the [az backup restore restore-azurefileshare](https://docs.microsoft.com/cli/azure/backup/restore?view=azure-cli-latest#az-backup-restore-restore-azurefileshare) cmdlet with restore mode set to *originallocation* to restore the *azurefiles* file share in the original location. You use the recovery point 932883129628959823, which you obtained in [Fetch recovery points for the Azure file share](#fetch-recovery-points-for-the-azure-file-share):
7881

7982
```azurecli-interactive
80-
az backup restore restore-azurefileshare --vault-name azurefilesvault --resource-group azurefiles --rp-name 932887541532871865 --container-name "StorageContainer;Storage;AzureFiles;afsaccount --item-name AzureFileShare;azurefiles --restore-mode originallocation --resolve-conflict overwrite --out table
83+
az backup restore restore-azurefileshare --vault-name azurefilesvault --resource-group azurefiles --rp-name 932887541532871865 --container-name "StorageContainer;Storage;AzureFiles;afsaccount" --item-name "AzureFileShare;azurefiles" --restore-mode originallocation --resolve-conflict overwrite --out table
8184
```
8285

8386
```output
@@ -97,10 +100,10 @@ You can use this option to restore a file share to an alternate location and kee
97100
* **--target-folder**: The folder under the file share to which data is restored. If the backed-up content is to be restored to a root folder, give the target folder values as an empty string.
98101
* **--resolve-conflict**: Instruction if there's a conflict with the restored data. Accepts **Overwrite** or **Skip**.
99102

100-
The following example uses [az backup restore restore-azurefileshare](https://docs.microsoft.com/cli/azure/backup/restore?view=azure-cli-latest#az-backup-restore-restore-azurefileshare) with restore mode as *alternatelocation* to restore the *azurefiles* file share in the *afsaccount* storage account to the *azurefiles1* file share in the *afaccount1* storage account.
103+
The following example uses [az backup restore restore-azurefileshare](https://docs.microsoft.com/cli/azure/backup/restore?view=azure-cli-latest#az-backup-restore-restore-azurefileshare) with restore mode as *alternatelocation* to restore the *azurefiles* file share in the *afsaccount* storage account to the *azurefiles1"* file share in the *afaccount1* storage account.
101104

102105
```azurecli-interactive
103-
az backup restore restore-azurefileshare --vault-name azurefilesvault --resource-group azurefiles --rp-name 932883129628959823 --container-name "StorageContainer;Storage;AzureFiles;afsaccount --item-name AzureFileShare;azurefiles --restore-mode alternatelocation --target-storage-account afaccount1 --target-file-share azurefiles1 --target-folder restoredata --resolve-conflict overwrite --out table
106+
az backup restore restore-azurefileshare --vault-name azurefilesvault --resource-group azurefiles --rp-name 932883129628959823 --container-name "StorageContainer;Storage;AzureFiles;afsaccount" --item-name "AzureFileShare;azurefiles" --restore-mode alternatelocation --target-storage-account afaccount1 --target-file-share azurefiles1 --target-folder restoredata --resolve-conflict overwrite --out table
104107
```
105108

106109
```output
@@ -133,7 +136,7 @@ Use the [az backup restore restore-azurefiles](https://docs.microsoft.com/cli/az
133136
The following example restores the *RestoreTest.txt* file in its original location: the *azurefiles* file share.
134137

135138
```azurecli-interactive
136-
az backup restore restore-azurefiles --vault-name azurefilesvault --resource-group azurefiles --rp-name 932881556234035474 --container-name "StorageContainer;Storage;AzureFiles;afsaccount --item-name AzureFileShare;azurefiles --restore-mode originallocation --source-file-type file --source-file-path "Restore/RestoreTest.txt" --resolve-conflict overwrite --out table
139+
az backup restore restore-azurefiles --vault-name azurefilesvault --resource-group azurefiles --rp-name 932881556234035474 --container-name "StorageContainer;Storage;AzureFiles;afsaccount" --item-name "AzureFileShare;azurefiles" --restore-mode originallocation --source-file-type file --source-file-path "Restore/RestoreTest.txt" --resolve-conflict overwrite --out table
137140
```
138141

139142
```output
@@ -155,7 +158,7 @@ To restore specific files or folders to an alternate location, use the [az backu
155158
The following example restores the *RestoreTest.txt* file originally present in the *azurefiles* file share to an alternate location: the *restoredata* folder in the *azurefiles1* file share hosted in the *afaccount1* storage account.
156159

157160
```azurecli-interactive
158-
az backup restore restore-azurefiles --vault-name azurefilesvault --resource-group azurefiles --rp-name 932881556234035474 --container-name "StorageContainer;Storage;AzureFiles;afsaccount --item-name AzureFileShare;azurefiles --restore-mode alternatelocation --target-storage-account afaccount1 --target-file-share azurefiles1 --target-folder restoredata --resolve-conflict overwrite --source-file-type file --source-file-path "Restore/RestoreTest.txt" --out table
161+
az backup restore restore-azurefiles --vault-name azurefilesvault --resource-group azurefiles --rp-name 932881556234035474 --container-name "StorageContainer;Storage;AzureFiles;afsaccount" --item-name "AzureFileShare;azurefiles" --restore-mode alternatelocation --target-storage-account afaccount1 --target-file-share azurefiles1 --target-folder restoredata --resolve-conflict overwrite --source-file-type file --source-file-path "Restore/RestoreTest.txt" --out table
159162
```
160163

161164
```output
@@ -166,6 +169,28 @@ df4d9024-0dcb-4edc-bf8c-0a3d18a25319 azurefiles
166169

167170
The **Name** attribute in the output corresponds to the name of the job that's created by the backup service for your restore operation. To track the status of the job, use the [az backup job show](https://docs.microsoft.com/cli/azure/backup/job?view=azure-cli-latest#az-backup-job-show) cmdlet.
168171

172+
## Restore multiple files or folders to original or alternate location
173+
174+
To perform restore for multiple items, pass the value for the **source-file-path** parameter as **space separated** paths of all files or folders you want to restore.
175+
176+
The following example restores the *Restore.txt* and *AFS testing Report.docx* files in their original location.
177+
178+
```azurecli-interactive
179+
az backup restore restore-azurefiles --vault-name azurefilesvault --resource-group azurefiles --rp-name 932889937058317910 --container-name "StorageContainer;Storage;AzureFiles;afsaccount" --item-name "AzureFileShare;azurefiles" --restore-mode originallocation --source-file-type file --source-file-path "Restore Test.txt" "AFS Testing Report.docx" --resolve-conflict overwrite --out table
180+
```
181+
182+
The output will be similar to the following:
183+
184+
```output
185+
Name ResourceGroup
186+
------------------------------------ ---------------
187+
649b0c14-4a94-4945-995a-19e2aace0305 azurefiles
188+
```
189+
190+
The **Name** attribute in the output corresponds to the name of the job that's created by the backup service for your restore operation. To track the status of the job, use the [az backup job show](https://docs.microsoft.com/cli/azure/backup/job?view=azure-cli-latest#az-backup-job-show) cmdlet.
191+
192+
If you want to restore multiple items to an alternate location, use the command above by specifying target-related parameters as explained in the [Restore individual files or folders to an alternate location](#restore-individual-files-or-folders-to-an-alternate-location) section.
193+
169194
## Next steps
170195

171196
Learn how to [Manage Azure file share backups with the Azure CLI](manage-afs-backup-cli.md).

articles/backup/restore-afs-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can restore an entire file share or specific files on the share. You can res
1515
> Make sure the PS version is upgraded to the minimum version for 'Az.RecoveryServices 2.6.0' for AFS backups. For more information, see [the section](backup-azure-afs-automation.md#important-notice---backup-item-identification-for-afs-backups) outlining the requirement for this change.
1616
1717
>[!NOTE]
18-
>Azure Backup now supports restoring multiple files or folders to the original or alternate Location using PowerShell. Refer to [this section](#restore-multiple-files-or-folders-to-original-or-alternate-location) the document to learn how.
18+
>Azure Backup now supports restoring multiple files or folders to the original or alternate Location using PowerShell. Refer to [this section](#restore-multiple-files-or-folders-to-original-or-alternate-location) of the document to learn how.
1919
2020
## Fetch recovery points
2121

articles/backup/toc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
href: tutorial-sql-backup.md
3333
- name: Back up SAP HANA databases in Azure VMs
3434
href: tutorial-backup-sap-hana-db.md
35-
- name: Back up Azure Files file shares
36-
href: tutorial-backup-azure-files.md
3735
- name: Back up Windows Server
3836
href: tutorial-backup-windows-server-to-azure.md
3937
- name: Restore files to Windows Server

articles/backup/tutorial-backup-azure-files.md

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)