Skip to content

Commit 7813d9d

Browse files
committed
Fix the restore metadata paths
1 parent 968734b commit 7813d9d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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/database-internals/store-formats.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ 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+
. In Cypher Shell, drop the database to delete it and all users and roles associated with it:
214214
+
215215
[source,cypher]
216216
----

0 commit comments

Comments
 (0)