Neo4j-admin database restore doesn't work

I'm unable to use the neo4j-admin database restore command:

PS C:\neo4j-community-4.4.2> neo4j-admin database restore
Unmatched arguments from index 0: 'database', 'restore'
Did you mean: set-initial-password or set-default-admin?
  • which OS do you use? windows 11
  • neo4j version: 5.14.0, desktop version: 4.4.2
  • Edition enterprise

Any ideas?

@fant0m

Restore is described at Restore a database backup - Operations Manual

Your command of neo4j-admin database restore does not include the path where the backup is to be restored from as well as the database name.

For example Restore a database backup - Operations Manual

Restore a database backup
Restore a database backup by running the following command. If you want to replace an existing database, add the option --overwrite-destination=true to the restore command.

       bin/neo4j-admin database restore --from-path=/path/to/backups/neo4j-2023-05-05T11-26-38.backup mydatabase

Thanks @dana_canzano, but the point is neo4j-admin doesn't recognize the command "database restore", the result is the same if I add the params you quoted. It's most likely the Windows bug - I found a workaround using docker instead.

@fant0m

A bit confused.
The path reports c:\neo4j-community-4.4.2 thus suggesting Neo4j 4.4.2 but yet you report

neo4j version: 5.14.0, desktop version: 4.4.2

and Neo4j version 5.14.

If you are using Neo4j 4.4.2 then see Restore a database backup - Operations Manual to which 4.4.x was just

Example
The following is an example of how to perform an online restore of the database backup created in the section Back up an online database, using the neo4j-admin restore command.

         bin/neo4j-admin restore --from=/mnt/backups/neo4j --database=neo4j --force

also you might want to cd to the bin directory

This path means the neo4j desktop version is 4.4.2 - it has nothing to do with the neo4j version which is 5.14.0.