I need to backup a database that is hosted on remote neo4j v4.4.x server. Following this documentation I used ./neo4j-admin tool (also v.4.4.x) on my laptop to backup the database like that:
./neo4j-admin backup --backup-dir=/users/myuserid/neo4j-admin backup --from=10.111.222.184 --database mydb --include-metadata=all –verbose
I was surprised that there are not such argument as "backup" in my neo4j-admin tool, here is the output:
bash-4.4$ ./neo4j-admin
Usage: neo4j-admin [-hV] [--expand-commands] [--verbose] [COMMAND]
Neo4j database administration tool.
--expand-commands Allow command expansion in config value evaluation.
--verbose Prints additional information.
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
Commands:
help Displays help information about the specified command
check-consistency Check the consistency of a database.
report Produces a zip/tar of the most common information needed for remote assessments.
store-info Print information about a Neo4j database store.
memrec Print Neo4j heap and pagecache memory settings recommendations.
import Import a collection of CSV files.
set-default-admin Sets the default admin user.
This user will be granted the admin role on startup if the system has no roles.
set-initial-password Sets the initial password of the initial admin user ('neo4j'). And removes the requirement to
change password on first login. IMPORTANT: this change will only take effect if performed
before the database is started for the first time.
dump Dump a database into a single-file archive.
load Load a database from an archive created with the dump command.
unbind Removes server identifier.
push-to-cloud Push your local database to a Neo4j Aura instance. The database must be shutdown in order to
take a dump to upload. The target location is your Neo4j Aura Bolt URI. You will be asked
your Neo4j Cloud username and password during the push-to-cloud operation.
----
I am confused by the documentation that is mismatched to command options of this tool.
Could someone help me how to use neo4j-admin tool to backup a database is hosted on a remote host? Thanks.