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/azure-arc/data/backup-controller-database.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.topic: how-to
15
15
16
16
When you deploy Azure Arc data services, the Azure Arc Data Controller is one of the most critical components of the deployment. The data controller:
17
17
18
-
- Provisions and de-provisions resources
18
+
- Provisions and deprovisions resources
19
19
- Orchestrates most of the activities for Azure Arc-enabled SQL Managed Instance
20
20
- Captures the billing and usage information of each Arc SQL managed instance.
21
21
@@ -26,7 +26,7 @@ This article explains how to back up the controller database.
26
26
Following steps are needed in order to back up the `controller` database:
27
27
28
28
1. Retrieve the credentials for the secret
29
-
1. Decode the credentials as they are base64 encoded
29
+
1. Decode the credentials from base64
30
30
1. Use the decoded credentials to connect to the SQL instance hosting the controller database, and issue the `BACKUP` command
31
31
32
32
## Retrieve the credentials for the secret
@@ -50,13 +50,14 @@ The contents of the yaml file of the secret `controller-db-rw-secret` contain a
50
50
51
51
## Use the decoded credentials to connect to the SQL instance hosting the controller database, and issue the `BACKUP` command
52
52
53
-
With the decoded credentials run the following command to issue a T-SQL `BACKUP` command to backup the controller database.
53
+
With the decoded credentials, run the following command to issue a T-SQL `BACKUP` command to back up the controller database.
54
54
55
55
```azurecli
56
56
kubectl exec controldb-0 -n contosons -c mssql-server -- /opt/mssql-tools/bin/sqlcmd -S localhost -U controldb-rw-user -P "<password>" -Q "BACKUP DATABASE [controller] TO DISK = N'/var/opt/controller.bak' WITH NOFORMAT, NOINIT, NAME = N'Controldb-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10, CHECKSUM"
57
57
```
58
58
59
59
Once the backup is created, you can move the `controller.bak` file to a remote storage for any recovery purposes.
60
60
61
-
Ideally, it is recommended to backup the controller database before and after any custom resource change such as creating or deleting an Arc-enabled SQL Managed Instance.
61
+
> [!TIP]
62
+
> Back up the controller database before and after any custom resource changes such as creating or deleting an Arc-enabled SQL Managed Instance.
0 commit comments