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
|Name of the database after restore. Usage of this parameter is only allowed if the `--from-path` option points to a path to a single artifact.
50
+
|===
51
+
52
+
43
53
[[restore-backup-command-options]]
44
54
=== Options
45
55
46
-
[options="header",cols="m,m,a"]
56
+
.`neo4j-admin database restore` options
57
+
[options="header", cols="5m,6a,4m"]
47
58
|===
48
59
| Option
49
-
| Default
50
60
| Description
61
+
| Default
62
+
63
+
|--additional-config=<file>
64
+
|Configuration file with additional configuration or override the existing configuration settings in the _neo4j.conf_ file.
65
+
|
51
66
52
-
| --from-path
67
+
|--expand-commands
68
+
|Allow command expansion in config value evaluation.
53
69
|
54
-
| A single path or a comma-separated list of paths pointing to a backup artifact file.
70
+
71
+
|--from-path=<path>[,<path>...]
72
+
|A single path or a comma-separated list of paths pointing to a backup artifact file.
55
73
An artifact file can be 1) a full backup, in which case it is restored directly or, 2) a differential backup, in which case the command tries first to find in the folder a backup chain ending at that specific differential backup and then restores that chain.
74
+
|
56
75
57
-
| --overwrite-destination
76
+
|-h, --help
77
+
|Show this help message and exit.
58
78
|
59
-
| Replace an existing database.
79
+
80
+
|--overwrite-destination[=true\|false]
81
+
|If an existing database should be replaced.
60
82
This option is not safe on a cluster since clusters have additional state that would be inconsistent with restored database.
61
83
In a cluster, restore to a new database to avoid this problem.
84
+
|false
62
85
63
-
| --restore-until
64
-
|
65
-
| Differential backup artifacts contains transaction logs that can be replayed and applied to stores contained in full backup artifacts when restoring a backup chain.
86
+
|--restore-until=<recovery-criteria>
87
+
| Differential backup artifacts contain transaction logs that can be replayed and applied to stores contained in full backup artifacts when restoring a backup chain.
66
88
The database applies logs until the recovery predicate is satisfied.
67
89
Currently supported predicates are: `<transaction>` and `<date>`.
68
90
69
-
- to restore a database up to a transaction id, the required transaction predicate should look like:
70
-
`--restore-until=123`, where 123 is a provided
71
-
transaction id.
91
+
- to restore a database up to a transaction id, the required transaction predicate should look like `--restore-until=123`, where 123 is a provided transaction id.
72
92
The restore recovers transaction logs up to - but not including - transaction 123.
73
93
74
-
- to restore a database up to a specific date, the required date predicate should look like:
75
-
`--restore-until=2021-09-11 10:15:30`, where n2021-09-11 10:15:30 is a UTC date.
94
+
- to restore a database up to a specific date, the required date predicate should look like `--restore-until=2021-09-11 10:15:30`, where n2021-09-11 10:15:30 is a UTC date.
76
95
The restore recovers transactions that were committed before the provided date.
77
-
78
-
| --to-path-data
79
96
|
80
-
| Base directory for databases.
81
-
Usage of this option is only allowed if the `--from-path` parameter points to one directory.
82
97
83
-
| --to-path-txn
84
-
|
85
-
| Base directory for transaction logs.
98
+
| --to-path-data=<path>
99
+
|Base directory for databases.
86
100
Usage of this option is only allowed if the `--from-path` parameter points to one directory.
87
-
88
-
| --verbose
89
101
|
90
-
| Enable verbose output.
91
102
92
-
| --expand-commands
103
+
|--to-path-txn=<path>
104
+
|Base directory for transaction logs.
105
+
Usage of this option is only allowed if the `--from-path` parameter points to one directory.
93
106
|
94
-
| Allow command expansion in config value evaluation.
95
107
96
-
| --additional-config
108
+
|--verbose
109
+
|Enable verbose output.
97
110
|
98
-
| Configuration file to provide additional or override the existing configuration settings in the _neo4j.conf_ file.
0 commit comments