You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/backup-restore/restore-backup.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,18 +99,18 @@ Unless you are replacing an existing database, you must create the database (usi
99
99
100
100
If you have backed up a database with the option `--include-metadata`, you can manually restore the users and roles metadata.
101
101
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]:
103
103
104
104
*Using `cat` (UNIX)*
105
105
[source, shell, role=nocopy noplay]
106
106
----
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'"
108
108
----
109
109
110
110
*Using `type` (Windows)*
111
111
[source, shell, role=nocopy noplay]
112
112
----
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'"
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`
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.
343
343
The command is automatically routed to the leader and from there to the other cluster members.
344
344
345
345
*Using `cat` (UNIX)*
346
346
[source, shell, role=noplay]
347
347
----
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'"
349
349
----
350
350
351
351
*Using `type` (Windows)*
352
352
[source, shell, role=noplay]
353
353
----
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'"
355
355
----
356
356
357
357
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