Skip to content

Commit 82b3ba3

Browse files
authored
Update export-backups-to-own-cloud-account.md
1 parent 0f4e887 commit 82b3ba3

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

docs/cloud/manage/backups/export-backups-to-own-cloud-account.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ You will need the following details to export/restore backups to your own CSP st
5858
5959
<hr/>
6060
61-
# Backup / Restore
61+
# Backup / restore
6262
63-
## Backup / Restore to AWS S3 Bucket {#backup--restore-to-aws-s3-bucket}
63+
## Backup / restore to AWS S3 Bucket {#backup--restore-to-aws-s3-bucket}
6464
65-
### Take a DB Backup {#take-a-db-backup}
65+
### Take a DB backup {#take-a-db-backup}
6666
67-
**Full Backup**
67+
**Full backup**
6868
6969
```sql
7070
BACKUP DATABASE test_backups
@@ -78,7 +78,7 @@ You will need to use a different UUID for each new backup in this subdirectory,
7878
For example, if you are taking daily backups, you will need to use a new UUID each day.
7979
:::
8080

81-
**Incremental Backup**
81+
**Incremental backup**
8282

8383
```sql
8484
BACKUP DATABASE test_backups
@@ -96,11 +96,11 @@ FROM S3('https://testchbackups.s3.amazonaws.com/backups/<uuid>', '<key id>', '<k
9696

9797
See: [Configuring BACKUP/RESTORE to use an S3 Endpoint](/operations/backup#configuring-backuprestore-to-use-an-s3-endpoint) for more details.
9898

99-
## Backup / Restore to Azure Blob Storage {#backup--restore-to-azure-blob-storage}
99+
## Backup / restore to Azure Blob Storage {#backup--restore-to-azure-blob-storage}
100100

101-
### Take a DB Backup {#take-a-db-backup-1}
101+
### Take a DB backup {#take-a-db-backup-1}
102102

103-
**Full Backup**
103+
**Full backup**
104104

105105
```sql
106106
BACKUP DATABASE test_backups
@@ -109,7 +109,7 @@ TO AzureBlobStorage('<AzureBlobStorage endpoint connection string>', '<container
109109

110110
Where `uuid` is a unique identifier, used to differentiate a set of backups.
111111

112-
**Incremental Backup**
112+
**Incremental backup**
113113

114114
```sql
115115
BACKUP DATABASE test_backups
@@ -127,19 +127,19 @@ FROM AzureBlobStorage('<AzureBlobStorage endpoint connection string>', '<contain
127127

128128
See: [Configuring BACKUP/RESTORE to use an S3 Endpoint](/operations/backup#configuring-backuprestore-to-use-an-azureblobstorage-endpoint) for more details.
129129

130-
## Backup / Restore to Google Cloud Storage (GCS) {#backup--restore-to-google-cloud-storage-gcs}
130+
## Backup / restore to Google Cloud Storage (GCS) {#backup--restore-to-google-cloud-storage-gcs}
131131

132-
### Take a DB Backup {#take-a-db-backup-2}
132+
### Take a DB backup {#take-a-db-backup-2}
133133

134-
**Full Backup**
134+
**Full backup**
135135

136136
```sql
137137
BACKUP DATABASE test_backups
138138
TO S3('https://storage.googleapis.com/<bucket>/<uuid>', <hmac-key>', <hmac-secret>)
139139
```
140140
Where `uuid` is a unique identifier, used to differentiate a set of backups.
141141
142-
**Incremental Backup**
142+
**Incremental backup**
143143
144144
```sql
145145
BACKUP DATABASE test_backups
@@ -155,37 +155,42 @@ AS test_backups_restored_gcs
155155
FROM S3('https://storage.googleapis.com/test_gcs_backups/<uuid>', 'key', 'secret')
156156
```
157157
158-
# Granular Backups
158+
# Granular backups {#granular-backups}
159159
160160
The `BACKUP` command also works with granular backups of specific tables. Example AWS commands for backing up a specific table are listed below. GCP and Azure commands are similar to the ones explained above, except that they need to be customized to backup specific tables.
161161
162-
### Take a Granular Backup
162+
### Take a granular backup {#take-a-granular-backup}
163+
163164
**Full Backup**
164165
```sql
165166
BACKUP TABLE data TO S3('https://testchbackups.s3.amazonaws.com/backups/<uuid>', '<key id>', '<key
166167
secret>')
167168
```
168169
169-
**Incremental Backup**
170+
**Incremental backup**
171+
170172
```sql
171173
BACKUP TABLE data TO S3('https://testchbackups.s3.amazonaws.com/backups/my_incremental/', '<key id>', '<key
172174
secret>') SETTINGS base_backup = S3('https://testchbackups.s3.amazonaws.com/backups/<base-backup-uuid>', '<key id>', '<key
173175
secret>')
174176
```
175177
176-
### Restore from Granular Backup
178+
### Restore from a granular backup {#restore-from-granular-backup}
177179
```sql
178180
RESTORE TABLE data AS data3 FROM
179181
S3('https://testchbackups.s3.amazonaws.com/backups/my_incremental', '<key id>', '<key secret>')
180182
```
181183
182-
### Backup and Restore all service data
184+
### Backup and restore all service data {#backup-and-restore-all-service-data}
185+
183186
**Backup**
187+
184188
```sql
185189
BACKUP TABLE system.settings_profiles, TABLE system.row_policies, TABLE system.quotas, TABLE system.functions, ALL EXCEPT DATABASES INFORMATION_SCHEMA,information_schema,system TO S3('https://testchbackups.s3.amazonaws.com/backups/', '<key id>', '<key secret>')
186190
```
187191
188192
**Restore**
193+
189194
```sql
190195
RESTORE ALL FROM S3('https://testchbackups.s3.amazonaws.com/backups/', '<key id>', '<key secret>')
191196
```

0 commit comments

Comments
 (0)