Skip to content

Commit 31e3aa4

Browse files
Fix the path and name of metadata_script.cypher (neo4j#2277)
Based on the PR neo4j#2273
1 parent 9fa4dce commit 31e3aa4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,18 @@ Unless you are replacing an existing database, you must create the database (usi
9999

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

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

104104
*Using `cat` (UNIX)*
105105
[source, shell, role=nocopy noplay]
106106
----
107-
cat data/scripts/databasename/restore_metadata.cypher | bin/cypher-shell -u user -p password -a ip_address:port -d system --param "database => 'databasename'"
107+
cat data/databases/databasename/tools/metadata_script.cypher | bin/cypher-shell -u user -p password -a ip_address:port -d system --param "database => 'databasename'"
108108
----
109109

110110
*Using `type` (Windows)*
111111
[source, shell, role=nocopy noplay]
112112
----
113-
type data\scripts\databasename\restore_metadata.cypher | bin\cypher-shell.bat -u user -p password -a ip_address:port -d system --param "database => 'databasename'"
113+
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'"
114114
----
115115

116116
[TIP]

modules/ROOT/pages/tutorial/causal-backup-restore-db.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ bin/neo4j-admin restore --from=/tmp/{neo4j-version-exact}/movies1 --database=mov
260260

261261
[queryresult]
262262
----
263-
You need to execute $HOME/path/to/core-member/data/scripts/movies1/restore_metadata.cypher. To execute the file use cypher-shell command with parameter `movies1`
263+
You need to execute $HOME/path/to/core-member/data/databases/movies1/tools/metadata_script.cypher. To execute the file use cypher-shell command with parameter `movies1`
264264
restorePath=/tmp/{neo4j-version-exact}/movies1, restoreStatus=successful, reason=
265265
----
266266

@@ -339,19 +339,19 @@ SHOW DATABASES;
339339
[[tutorial-recreate-roles-privileges]]
340340
== Recreate the database users and roles
341341

342-
On one of the cluster members, run the restore cypher script _restore_metadata.cypher_ to create the database and recreate all users and roles of the database backup.
342+
On one of the cluster members, run the restore cypher script _metadata_script.cypher_ to create the database and recreate all users and roles of the database backup.
343343
The command is automatically routed to the leader and from there to the other cluster members.
344344

345345
*Using `cat` (UNIX)*
346346
[source, shell, role=noplay]
347347
----
348-
cat data/scripts/movies1/restore_metadata.cypher | bin/cypher-shell -u neo4j -p password -a localhost:7688 -d system --param "database => 'movies1'"
348+
cat data/databases/movies1/tools/metadata_script.cypher | bin/cypher-shell -u neo4j -p password -a localhost:7688 -d system --param "database => 'movies1'"
349349
----
350350

351351
*Using `type` (Windows)*
352352
[source, shell, role=noplay]
353353
----
354-
type data\scripts\movies1\restore_metadata.cypher | bin\cypher-shell.bat -u neo4j -p password -a localhost:7688 -d system --param "database => 'movies1'"
354+
type data\databases\movies1\tools\metadata_script.cypher | bin\cypher-shell.bat -u neo4j -p password -a localhost:7688 -d system --param "database => 'movies1'"
355355
----
356356

357357
Follow the steps from 1 to 6 of section xref:tutorial/causal-backup-restore-db.adoc#tutorial-prepare-to-backup[Prepare to back up your database] to verify that all data and metadata of the database backup have been successfully restored on all cluster members.

0 commit comments

Comments
 (0)