Skip to content

Commit

Permalink
Update AzureBlobStorage.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanpaget authored Aug 30, 2023
1 parent f562f6f commit 4425a68
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions docs/en/5-Storage/AzureBlobStorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Azure Blob Storage Containers are good at three things:

<!-- prettier-ignore -->

The Blob CSI volumes are persisted under `/home/jovyan/buckets` when creating a Notebook Server. Files under `/buckets` are backed by Blob storage. All AAW notebooks will have the `/buckets` mounted to the file-system, making data accessible from everywhere.
The Blob CSI volumes are persisted under `/home/jovyan/buckets` when creating a Notebook Server. Files under `~/buckets` are backed by Blob storage. All AAW notebooks will have the `~/buckets` mounted to the file-system, making data accessible from everywhere.

![Blob folders mounted as Jupyter Notebook directories](../images/container-mount.png)

Expand All @@ -32,18 +32,28 @@ These folders can be used like any other - you can copy files to/from using the

## How to Migrate from MinIO to Azure Blob Storage

First, import the environmental variables stored in your secrets vault. You will either import from `minio-gateway` or `fdi-gateway` depending on where your data was ingested.

```
jovyan@rstudio-0:~$ source /vault/secrets/fdi-gateway-protected-b
```

Then you create an alias to access your data.

```
jovyan@rstudio-0:~$ mc alias set minio $MINIO_URL $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
```
# Obtain credentials
source /vault/secrets/minio-standard-tenant-1

# Add storage under nickname "standard"
mc config host add standard $MINIO_URL $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
List the contents of your data folder with `mc ls`.

# If you want to migrate your MinIO Bucket to Blob Storage.
# Move
mc mv --recursive <minio_path> <blob_path_on_local_system>
# Copy
mc cp --recursive <minio_path> <blob_path_on_local_system>
```
jovyan@rstudio-0:~$ mc ls minio
```

Finally, copy your MinIO data into your Azure Blob Storage directory with `mc cp --recursive`.

```
jovyan@rstudio-0:~$ mc cp —-recursive minio ~/buckets
```

<!-- prettier-ignore -->
Expand Down

0 comments on commit 4425a68

Please sign in to comment.