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: docs/cloud/manage/backups/export-backups-to-own-cloud-account.md
+14-55Lines changed: 14 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,19 +61,18 @@ You will need the following details to export/restore backups to your own CSP st
61
61
2. Access HMAC key and HMAC secret.
62
62
63
63
<hr/>
64
-
65
-
# Backup / restore {#backup-restoer}
64
+
# Backup / Restore
66
65
67
66
:::note:::
68
67
1. For restoring the backup from your own bucket into a new service, you will need to update the trust policy of your backups storage bucket to allow access from the new service.
69
68
2. The Backup / Restore commands need to be run from the database command line. For restore to a new service, you will first need to create the service and then run the command.
70
69
:::
71
70
72
-
## Backup / restore to AWS S3 bucket {#backup--restore-to-aws-s3-bucket}
71
+
## Backup / Restore to AWS S3 Bucket {#backup--restore-to-aws-s3-bucket}
73
72
74
-
### Take a DB backup {#take-a-db-backup}
73
+
### Take a DB Backup {#take-a-db-backup}
75
74
76
-
**Full backup**
75
+
**Full Backup**
77
76
78
77
```sql
79
78
BACKUP DATABASE test_backups
@@ -87,11 +86,11 @@ You will need to use a different UUID for each new backup in this subdirectory,
87
86
For example, if you are taking daily backups, you will need to use a new UUID each day.
88
87
:::
89
88
90
-
**Incremental backup**
89
+
**Incremental Backup**
91
90
92
91
```sql
93
92
BACKUP DATABASE test_backups
94
-
TO S3('https://testchbackups.s3.amazonaws.com/backups/<uuid>/my_incremental', '<key id>', '<key secret>')
93
+
TO S3('https://testchbackups.s3.amazonaws.com/backups/<uuid>', '<key id>', '<key secret>')
@@ -105,11 +104,11 @@ FROM S3('https://testchbackups.s3.amazonaws.com/backups/<uuid>', '<key id>', '<k
105
104
106
105
See: [Configuring BACKUP/RESTORE to use an S3 Endpoint](/operations/backup#configuring-backuprestore-to-use-an-s3-endpoint) for more details.
107
106
108
-
## Backup / restore to Azure Blob Storage {#backup--restore-to-azure-blob-storage}
107
+
## Backup / Restore to Azure Blob Storage {#backup--restore-to-azure-blob-storage}
109
108
110
-
### Take a DB backup {#take-a-db-backup-1}
109
+
### Take a DB Backup {#take-a-db-backup-1}
111
110
112
-
**Full backup**
111
+
**Full Backup**
113
112
114
113
```sql
115
114
BACKUP DATABASE test_backups
@@ -118,7 +117,7 @@ TO AzureBlobStorage('<AzureBlobStorage endpoint connection string>', '<container
118
117
119
118
Where `uuid` is a unique identifier, used to differentiate a set of backups.
120
119
121
-
**Incremental backup**
120
+
**Incremental Backup**
122
121
123
122
```sql
124
123
BACKUP DATABASE test_backups
@@ -136,19 +135,19 @@ FROM AzureBlobStorage('<AzureBlobStorage endpoint connection string>', '<contain
136
135
137
136
See: [Configuring BACKUP/RESTORE to use an S3 Endpoint](/operations/backup#configuring-backuprestore-to-use-an-azureblobstorage-endpoint) for more details.
138
137
139
-
## Backup / restore to Google Cloud Storage (GCS) {#backup--restore-to-google-cloud-storage-gcs}
138
+
## Backup / Restore to Google Cloud Storage (GCS) {#backup--restore-to-google-cloud-storage-gcs}
140
139
141
-
### Take a DB backup {#take-a-db-backup-2}
140
+
### Take a DB Backup {#take-a-db-backup-2}
142
141
143
-
**Full backup**
142
+
**Full Backup**
144
143
145
144
```sql
146
145
BACKUP DATABASE test_backups
147
146
TO S3('https://storage.googleapis.com/<bucket>/<uuid>', <hmac-key>', <hmac-secret>)
148
147
```
149
148
Where `uuid` is a unique identifier, used to differentiate a set of backups.
FROM S3('https://storage.googleapis.com/test_gcs_backups/<uuid>', 'key', 'secret')
165
164
```
166
-
167
-
# Granular backups {#granular-backups}
168
-
169
-
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.
170
-
171
-
### Take a granular backup {#take-a-granular-backup}
172
-
173
-
**Full Backup**
174
-
```sql
175
-
BACKUP TABLE data TO S3('https://testchbackups.s3.amazonaws.com/backups/<uuid>', '<key id>', '<key
176
-
secret>')
177
-
```
178
-
179
-
**Incremental backup**
180
-
181
-
```sql
182
-
BACKUP TABLE data TO S3('https://testchbackups.s3.amazonaws.com/backups/my_incremental/', '<key id>', '<key
0 commit comments