Skip to content

Commit 75620cc

Browse files
committed
fixes
1 parent 8c99fdf commit 75620cc

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

docs/docs/how-tos/manual-backup.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ The file permissions for the default tar is same as the original files.
165165

166166
### Google Cloud
167167

168-
To use the Google Cloud provider, install the [gsutil](https://cloud.google.com/storage/docs/gsutil_install) CLI instead of the AWS CLI. Otherwise, the instructions are the same as
168+
To do a backup on Google Cloud provider, install the [gsutil](https://cloud.google.com/storage/docs/gsutil_install) CLI instead of the AWS CLI. Otherwise, the instructions are the same as
169169
for AWS above, other than when working with S3. Here are the commands to access Google Spaces instead of S3 for copy/download of the backup:
170170

171171
```shell
@@ -178,22 +178,30 @@ gsutil cp gs://<your_bucket_name>/backups/2021-04-23.tar .
178178

179179
### Azure
180180

181-
To do a backup on Azure, first install [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli#install) and [azcopy](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10?tabs=dnf#install-azcopy-on-linux-by-using-a-package-manager).
181+
To do a backup on Azure, first install [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script#install-or-update-azure-cli) and [azcopy](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10?tabs=dnf#obtain-a-static-download-link). Otherwise, the instructions are the same as for AWS above, other than when working with S3. Here are the commands to access Azure blob storage instead of S3 for copy/download of the backup:
182182

183183
#### Do the backup
184184

185185
```bash
186186
az login # --use-device-code if web browser not available
187187
188188
cd /data
189+
# Tell AZCOPY to use same auth as CLI
190+
export AZCOPY_AUTO_LOGIN_TYPE=AZCLI
191+
# copy the tar backup file to blob storage
192+
azcopy copy 2021-04-23.tazcopy cp "https://[account].blob.core.windows.net/[container]/2021-04-23.tar" "./2021-04-23.tar"ar 'https://<storage-account>.blob.core.windows.net/<blob-bucket>/backups/nebari-2021-04-23.tar'
193+
```
194+
195+
#### Do the restore
189196

190-
tar -cvf 2024-06-27.tar .
197+
```bash
198+
az login # --use-device-code if web browser not available
191199
200+
cd /data
192201
# Tell AZCOPY to use same auth as CLI
193202
export AZCOPY_AUTO_LOGIN_TYPE=AZCLI
194-
195-
# copy the tar backup file to blob storage
196-
azcopy copy 2024-06-27.tar 'https://<storage-account>.blob.core.windows.net/<blob-bucket>/backups/nebari-2024-06-27.tar'
203+
# restore the backup file from blob storage
204+
azcopy cp "https://[account].blob.core.windows.net/[container]/2021-04-23.tar" "./2021-04-23.tar"
197205
```
198206

199207
### Digital Ocean

0 commit comments

Comments
 (0)