Skip to content

Commit 585f4ca

Browse files
fabiimrenetapopova
andauthored
Add seed docs for Azure (#1743)
Co-authored-by: Reneta Popova <[email protected]>
1 parent 1743980 commit 585f4ca

File tree

8 files changed

+126
-4
lines changed

8 files changed

+126
-4
lines changed

modules/ROOT/pages/backup-restore/aggregate.adoc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,18 @@ The example assumes that you have a backup chain located in the `myBucket/myDire
166166
bin/neo4j-admin database aggregate-backup --from-path=gs://myBucket/myDirectory/myBackup.backup mydatabase
167167
----
168168
======
169-
=====
169+
170+
[.include-with-Azure-cloud-storage]
171+
======
172+
173+
include::partial$/azb-credentials.adoc[]
174+
175+
. Then, use the following command to aggregate the backup chain located in a given folder in your Azure blob storage container.
176+
The example assumes that you have a backup chain located with a `myStorageAccount/myContainer/myDirectory` folder identifiable by the file `myBackup.backup`:
177+
+
178+
[source,shell]
179+
----
180+
bin/neo4j-admin database aggregate-backup --from-path=azb://myStorageAccount/myContainer/myDirectory/myBackup.backup mydatabase
181+
----
182+
======
183+
=====

modules/ROOT/pages/backup-restore/offline-backup.adoc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,17 @@ include::partial$/gcs-credentials.adoc[]
156156
bin/neo4j-admin database dump mydatabase --to-path=gs://myBucket/myDirectory/
157157
----
158158
======
159-
=====
159+
160+
[.include-with-Azure-cloud-storage]
161+
======
162+
163+
include::partial$/azb-credentials.adoc[]
164+
165+
. Run `neo4j-admin database dump` command to dump your database into your Azure container:
166+
+
167+
[source,shell]
168+
----
169+
bin/neo4j-admin database dump mydatabase --to-path=azb://myStorageAccount/myContainer/myDirectory/
170+
----
171+
======
172+
=====

modules/ROOT/pages/backup-restore/online-backup.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,4 +417,16 @@ include::partial$/gcs-credentials.adoc[]
417417
bin/neo4j-admin database backup --to-path=gs://myBucket/myDirectory/ mydatabase
418418
----
419419
======
420+
[.include-with-Azure-cloud-storage]
421+
======
422+
423+
include::partial$/azb-credentials.adoc[]
424+
425+
. Run `neo4j-admin database backup` command to back up your database to your Azure container:
426+
+
427+
[source,shell]
428+
----
429+
bin/neo4j-admin database backup --to-path=azb://myStorageAccount/myContainer/myDirectory/ mydatabase
430+
----
431+
======
420432
=====

modules/ROOT/pages/backup-restore/restore-backup.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,20 @@ The example assumes that you have backup artifacts located in the `myBucket/myDi
257257
bin/neo4j-admin database restore --to-path=gs://myBucket/myDirectory/myBackup.backup mydatabase
258258
----
259259
======
260+
261+
[.include-with-Azure-cloud-storage]
262+
======
263+
264+
include::partial$/azb-credentials.adoc[]
265+
266+
. Run the `neo4j-admin database restore` command to restore the database located in a given folder in your Azure blob storage container.
267+
The example assumes that you have backup artifacts located in the `myStorageAccount/myContainer/myDirectory` folder.
268+
+
269+
[source,shell]
270+
----
271+
bin/neo4j-admin database restore --to-path=azb://myStorageAccount/myContainer/myDirectory/myBackup.backup mydatabase
272+
----
273+
======
260274
=====
261275

262276
=== Restore a database backup in a cluster

modules/ROOT/pages/backup-restore/restore-dump.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,18 @@ The example assumes that you have dump artifacts located in the `myBucket/myDire
195195
bin/neo4j-admin database load mydatabase --from-path=gs://myBucket/myDirectory/ --overwrite-destination=true
196196
----
197197
======
198+
[.include-with-Azure-cloud-storage]
199+
======
200+
201+
include::partial$/azb-credentials.adoc[]
202+
203+
. Run the `neo4j-admin database load` command to load a dump from your Azure blob storage container.
204+
The example assumes that you have dump artifacts located in the `myStorageAccount/myContainer/myDirectory` folder in your Azure account.
205+
+
206+
[source,shell]
207+
----
208+
bin/neo4j-admin database load mydatabase --from-path=azb://myStorageAccount/myContainer/myDirectory --overwrite-destination=true
209+
----
210+
======
198211
=====
199212

modules/ROOT/pages/tools/neo4j-admin/consistency-checker.adoc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,18 @@ The example assumes that you have backup or dump artifacts located in the `myBuc
242242
bin/neo4j-admin database check mydatabase --from-path=gs://myBucket/myDirectory/
243243
----
244244
======
245-
=====
245+
246+
[.include-with-Azure-cloud-storage]
247+
======
248+
249+
include::partial$/azb-credentials.adoc[]
250+
251+
. Run the `bin/neo4j-admin database check` command to check the consistency of your database located in your Azure blob storage container.
252+
The example assumes that you have backup or dump artifacts located in the `myStorageAccount/myContainer/myDirectory` folder in Azure.
253+
+
254+
[source,shell]
255+
----
256+
bin/neo4j-admin database check mydatabase --from-path=azb://myStorageAccount/myContainer/myDirectory/
257+
----
258+
======
259+
=====

modules/ROOT/pages/tools/neo4j-admin/neo4j-admin-import.adoc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,21 @@ The example assumes that you have data stored in the `myBucket/data` folder in y
478478
bin/neo4j-admin database import full --nodes gs://myBucket/data/nodes.csv --relationships gs://myBucket/data/relationships.csv newdb
479479
----
480480
======
481-
=====
482481
482+
[.include-with-Azure-cloud-storage]
483+
======
484+
485+
include::partial$/azb-credentials.adoc[]
486+
487+
. Run the `neo4j-admin database import` command to import your data from your Azure blob storage container.
488+
The example assumes that you have data stored in the `myStorageAccount/myContainer/data` folder in your container.
489+
+
490+
[source,shell]
491+
----
492+
bin/neo4j-admin database import full --nodes azb://myStorageAccount/myContainer/data/nodes.csv --relationships azb://myStorageAccount/myContainer/data/relationships.csv newdb
493+
----
494+
======
495+
=====
483496

484497
[role=label--enterprise-edition]
485498
[[import-tool-incremental]]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
. Ensure you have an Azure account, an Azure storage account, and a blob container.
2+
.. You can create a storage account using the Azure portal. +
3+
For more information, see the Azure official documentation on link:https://learn.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal[Create a storage account].
4+
.. Create a blob container in the Azure portal. +
5+
For more information, see the Azure official documentation on link:https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal[Quickstart: Upload, download, and list blobs with the Azure portal].
6+
. Install the Azure CLI by following the instructions in the Azure official documentation -- link:https://docs.microsoft.com/en-us/cli/azure/install-azure-cli[Azure official documentation].
7+
. Authenticate the neo4j or neo4j-admin process against Azure using the default Azure credentials. +
8+
See the Azure official documentation on link:https://learn.microsoft.com/en-us/java/api/com.azure.identity.defaultazurecredential?view=azure-java-stable[default Azure credentials] for more information. +
9+
+
10+
[source,shell]
11+
----
12+
az login
13+
----
14+
+
15+
Then you should be ready to use Azure URLs in either neo4j or neo4j-admin.
16+
17+
. To validate that you have access to the container with your login credentials, run the following commands:
18+
+
19+
[source,shell]
20+
----
21+
# Upload a file:
22+
az storage blob upload --file someLocalFile --account-name accountName - --container someContainer --name remoteFileName --auth-mode login
23+
24+
# Download the file
25+
az storage blob download --account-name accountName --container someContainer --name remoteFileName --file downloadedFile --auth-mode login
26+
27+
# List container files
28+
az storage blob list --account-name someContainer --container someContainer --auth-mode login
29+
----

0 commit comments

Comments
 (0)