Upload to Neo4j AuraDBAvailable on Aura
The neo4j-admin push-to-cloud
command uploads a database or a dump into a Neo4j Aura instance.
The following table shows the compatibility between the dump version that you want to upload and the version of the Neo4j Aura instance.
Dump version | Aura version |
---|---|
v4.4 |
v4 and v5 |
This operation is secured and TLS encrypted end to end. |
Prerequisites
Before you can use the neo4j-admin push-to-cloud
command, you must meet the following prerequisites:
-
Verify that your Neo4j Aura instance is running.
-
Verify that your Neo4j Aura instance is accessible from the machine running
neo4j-admin
. Otherwise, the upload will fail with SSL errors. -
Verify that your local database is stopped. You cannot run the
push-to-cloud
command against a source database that is currently in use.
The |
Syntax
neo4j-admin push-to-cloud [--overwrite] [--verbose] --bolt-uri=<boltURI> [--database=<database>] [--dump=<dump>] [--dump-to=<tmpDumpFile>] [--password=<password>] [--username=<username>]
Options
Option | Default | Description |
---|---|---|
|
|
Name of the database to push. This argument cannot be used together with |
|
Path to an existing database dump for upload, in the format /path/to/my-neo4j-database-dump-file. This argument cannot be used together with |
|
|
Optional. Target path for temporary database dump file to be uploaded, in the format /path/to/temp-file. Used in combination with the |
|
|
Bolt URI of the target database.
For example, |
|
|
Optional. Username of the target database to push this database to.
If you do not provide a username, you will be prompted to provide one.
Alternatively, the |
|
|
Optional. The password of the target database to push this database to.
If you do not provide a password, you will be prompted to provide one.
Alternatively, you can use the |
|
|
Optional. Overwrite the data in the target database. |
|
|
Optional. Enable verbose output. |
Output
If the push-to-cloud
function completes successfully, it exits with the following logline:
Your data was successfully pushed to Aura and is now running.
If the push-to-cloud
function encounters an error at any point, you will be provided with instructions on how to try again or to contact Neo4j Aura support.
+
Additionally, you can use the --verbose
option to enable verbose output.
Examples
The following examples show how to use the push-to-cloud
command to upload a database or a database dump to a Neo4j Aura instance.
You need your AuraDB instance URI (neo4j+s://your-databaseid.databases.neo4j.io
), as can be seen in the Aura console, and your AuraDB instance password.
You should use the |
This command does not currently support private linking. Please raise a support ticket if you have public traffic disabled and need to use this command. |
bin/neo4j-admin push-to-cloud --dump=/path/to/dumpfile/movies.dump --bolt-uri=neo4j+s://your-databaseid.databases.neo4j.io --overwrite
# An example output:
Selecting JVM - Version:11.0.6+8-LTS, Name:Java HotSpot(TM) 64-Bit Server VM, Vendor:Oracle Corporation
Neo4j aura username (default: neo4j):
Neo4j aura password for neo4j:
Upload
.................... 10%
.................... 20%
.................... 30%
.................... 40%
.................... 50%
.................... 60%
.................... 70%
.................... 80%
.................... 90%
.................... 100%
We have received your export and it is currently being loaded into your Aura instance.
You can wait here, or abort this command and head over to the console to be notified of when your database is running.
Import progress (estimated)
.................... 10%
.................... 20%
.................... 30%
.................... 40%
.................... 50%
.................... 60%
.................... 70%
.................... 80%
.................... 90%
.................... 100%
Your data was successfully pushed to Aura and is now running.
It is safe to delete the dump file now: /path/to/dumpfile/movies.dump
# Stop the `neo4j` database:
bin/cypher-shell -u neo4j -p <password>
neo4j@neo4j> :use system;
neo4j@system> stop database neo4j;
# Run the push-to-cloud command to upload the `neo4j` database into your Aura instance
bin/neo4j-admin push-to-cloud --database=neo4j --bolt-uri=neo4j+s://your-databaseid.databases.neo4j.io --overwrite
# An example output:
Selecting JVM - Version:11.0.6+8-LTS, Name:Java HotSpot(TM) 64-Bit Server VM, Vendor:Oracle Corporation
Neo4j aura username (default: neo4j):
Neo4j aura password for neo4j:
Done: 70 files, 854.0KiB processed.
Dumped contents of database 'neo4j' into '/<neo4j-home>/dump-of-neo4j-1669732123683'
Upload
.................... 10%
.................... 20%
.................... 30%
.................... 40%
.................... 50%
.................... 60%
.................... 70%
.................... 80%
.................... 90%
.................... 100%
We have received your export and it is currently being loaded into your Aura instance.
You can wait here, or abort this command and head over to the console to be notified of when your database is running.
Import progress (estimated)
.................... 10%
.................... 20%
.................... 30%
.................... 40%
.................... 50%
.................... 60%
.................... 70%
.................... 80%
.................... 90%
.................... 100%
Your data was successfully pushed to Aura and is now running.