The file name is not _restore_metadata.cypher_ and it is not located in the _<NEO4J_HOME>/data/scripts/databasename/_ This is the correct location and file name: <NEO4J_HOME>/data/databases/databasename/tools/metadata_script.cypher