Skip to content

Commit 3b656e9

Browse files
authored
Merge branch 'dev' into 25-07-deallocate-db-irrversible
2 parents 9e12aff + e776432 commit 3b656e9

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

modules/ROOT/pages/authentication-authorization/manage-users.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ The `'password'` can either be a string value or a string parameter with default
784784
The `PLAINTEXT` and `ENCRYPTED` keywords are optional and can be used to specify the format of the password, i.e. whether Neo4j needs to hash it or it has already been hashed.
785785
By default, all passwords are encrypted (hashed) when stored in the Neo4j `system` database.
786786
* The optional `PLAINTEXT` in `SET PLAINTEXT PASSWORD` has the same behavior as `SET PASSWORD`.
787-
* The optional `ENCRYPTED` is used to recreate an existing user when the plaintext password is unknown, but the encrypted password is available in the _data/databases/databasename/tools/metadata_script.cypher_ file of a database backup.
787+
* The optional `ENCRYPTED` is used to recreate an existing user when the plaintext password is unknown, but the encrypted password is available in the _/data/scripts/databasename/restore_metadata.cypher_ file of restored database backup.
788788
See xref:backup-restore/restore-backup#_restore_users_and_roles_metadata[Restore users and roles metadata]. +
789789
With `ENCRYPTED`, the password string is expected to be in the format of `<encryption-version>,<hash>,<salt>`, where, for example:
790790
** `0` is the first version and refers to the `SHA-256` cryptographic hash function with iterations `1`.
@@ -852,7 +852,7 @@ SET AUTH 'native' {SET PASSWORD 'abcd1234' SET PASSWORD CHANGE REQUIRED}
852852

853853
.Create user with an encrypted password
854854
======
855-
Or you can create the user `Jake` in an active state, with an encrypted password (taken from the _data/databases/databasename/tools/metadata_script.cypher_ of a database backup), and the requirement to not change the password by running:
855+
Or you can create the user `Jake` in an active state, with an encrypted password (taken from the _/data/scripts/databasename/restore_metadata.cypher_ of a restored database backup), and the requirement to not change the password by running:
856856
857857
[source,cypher,role=noplay]
858858
----
@@ -1008,7 +1008,7 @@ The `'password'` can either be a string value or a string parameter with default
10081008
The `PLAINTEXT` and `ENCRYPTED` keywords are optional and can be used to specify the format of the password, i.e. whether Neo4j needs to hash it or it has already been hashed.
10091009
By default, all passwords are encrypted (hashed) when stored in the Neo4j `system` database.
10101010
* The optional `PLAINTEXT` in `SET PLAINTEXT PASSWORD` has the same behavior as `SET PASSWORD`.
1011-
* The optional `ENCRYPTED` is used to recreate an existing user when the plaintext password is unknown, but the encrypted password is available in the _data/databases/databasename/tools/metadata_script.cypher_ file of a database backup.
1011+
* The optional `ENCRYPTED` is used to recreate an existing user when the plaintext password is unknown, but the encrypted password is available in the _/data/scripts/databasename/restore_metadata.cypher_ file when you restore a database backup.
10121012
See xref:backup-restore/restore-backup#_restore_users_and_roles_metadata[Restore users and roles metadata]. +
10131013
With `ENCRYPTED`, the password string is expected to be in the format of `<encryption-version>,<hash>,<salt>`, where, for example:
10141014
** `0` is the first version and refers to the `SHA-256` cryptographic hash function with iterations `1`.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,16 @@ For more information, see xref:clustering/databases.adoc#cluster-seed[Designated
300300

301301
If you have backed up a database with the option `--include-metadata`, you can manually restore the users and roles metadata.
302302

303-
From the _<NEO4J_HOME>_ directory, you run the Cypher script _data/databases/databasename/tools/metadata_script.cypher_, which the `neo4j-admin database restore` command outputs, using xref:cypher-shell.adoc[]:
303+
From the _<NEO4J_HOME>_ directory, you run the Cypher script _/data/scripts/databasename/restore_metadata.cypher_, which the `neo4j-admin database restore` command outputs, using xref:cypher-shell.adoc[]:
304304

305305
*Using `cat` (UNIX)*
306306
[source, shell, role=nocopy noplay]
307307
----
308-
cat data/databases/databasename/tools/metadata_script.cypher | bin/cypher-shell -u user -p password -a ip_address:port -d system --param "database => 'databasename'"
308+
cat ../data/scripts/databasename/restore_metadata.cypher | bin/cypher-shell -u user -p password -a ip_address:port -d system --param "database => 'databasename'"
309309
----
310310

311311
*Using `type` (Windows)*
312312
[source, shell, role=nocopy noplay]
313313
----
314-
type data\databases\databasename\tools\metadata_script.cypher | bin\cypher-shell.bat -u user -p password -a ip_address:port -d system --param "database => 'databasename'"
314+
type ..\data\scripts\databasename\restore_metadata.cypher | bin\cypher-shell.bat -u user -p password -a ip_address:port -d system --param "database => 'databasename'"
315315
----

modules/ROOT/pages/clustering/servers.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This may not be specified in combination with `allowedDatabases`.
6767

6868
| tags
6969
| list of server tags, e.g. `["tag1", "tag2"]`
70-
| List of server tags used during database allocation and for load balancing and routing policies.
70+
| List of server tags used for load balancing and routing policies.
7171
|===
7272

7373
[NOTE]
@@ -224,7 +224,7 @@ Composite databases do not currently appear in this list, though they do appear
224224
| {check-mark}
225225

226226
| tags
227-
| Tags are user provided strings that can be used while allocating databases.
227+
| Tags are user provided strings that can be used for load balancing and routing policies.
228228
| LIST<STRING>
229229
|
230230
| {check-mark}
@@ -285,7 +285,7 @@ The `allowedDatabases` and `deniedDatabases` are mutually exclusive and if both
285285
Optionally, it is possible to automatically enable free servers by setting the xref:configuration/configuration-settings.adoc#config_initial.dbms.automatically_enable_free_servers[`initial.dbms.automatically_enable_free_servers`] to `true`.
286286
This can be changed after startup using the xref:procedures.adoc#procedure_dbms_cluster_setAutomaticallyEnableFreeServers[`dbms.cluster.setAutomaticallyEnableFreeServers`] procedure.
287287

288-
Server `tags` are used during database allocation and when configuring load balancing and replication policies.
288+
Server `tags` are used when configuring load balancing and replication policies.
289289
They cannot contain duplicates, so `tags:['eu', 'eu']` will return an error.
290290
Server tags also cannot contain commas.
291291
When altering server tags via cypher, the encoding is done via UTF-8.
@@ -449,7 +449,7 @@ This may not be specified in combination with `allowedDatabases`.
449449

450450
| tags
451451
| list of server tags, e.g. `["tag1", "tag2"]`
452-
| List of server tags used during database allocation and for load balancing and routing policies.
452+
| List of server tags used for load balancing and routing policies.
453453
|===
454454

455455
[NOTE]

modules/ROOT/pages/database-internals/store-formats.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,16 @@ For example:
203203
----
204204
@system> ALTER DATABASE mydb SET ACCESS READ ONLY;
205205
----
206-
. In your command-line tool, back up that database using the xref:backup-restore/online-backup.adoc[`neo4j-admin database backup`] command.
206+
. In your command-line tool, back up that database using the xref:backup-restore/online-backup.adoc[`neo4j-admin database backup`] command with the `--include-metadata=all` option to include all users and roles associated with it.
207207
For example:
208208
+
209209
[source,shell]
210210
----
211211
bin/neo4j-admin database backup mydb --to-path=/path/to/your-backup-folder --include-metadata=all
212212
----
213-
. Back in Cypher Shell, drop the database to delete it and all users and roles associated with it:
213+
+
214+
The command creates a backup archive that contains both the database and the metadata associated with it.
215+
. In Cypher Shell, drop the database to delete it and all users and roles associated with it:
214216
+
215217
[source,cypher]
216218
----

0 commit comments

Comments
 (0)