How to Import/Restore Neo4j Graph Database from a Backup Compressed File(tar.gz)🗜️

Asim Zahid
Analytics Vidhya
Published in
3 min readSep 8, 2021
Movie Knowledge Graph (Neo4j)

Neo4j is a graph database management system. Popular use cases are knowledge graphs, digital twin, POLE, etc.

I am assuming you have neo4j desktop installed in your system.

Procedure:

  1. Get a database backup/file.
DB backup

2. Extract the folder. You will get a folder with the name “data”.

3. Open your neo4j desktop.

4. Create a database.

Neo4j Desktop, Create database

5. Don’t start database yet.

6. Open Settings.

Open settings

7. Uncomment the following line in “Settings…”

# Enable this to be able to upgrade a store from an older version.
dbms.allow_upgrade=true
Edit settings

8. Press Apply.

9. Open Neo4j terminal.

Open terminal
Neo4j Terminal

10. Enter following command in your terminal with path of your extracted backup, including “path_to_folder/data/neo4j”

./bin/neo4j-admin restore --from=/path/to/your/data/folder/data/neo4j --database=neo4j --force
Enter restore command

11. Press enter, You will see a success message.

Congratulations, your database has been restored.

View DB restore result

12. Close terminal and start database.

Start DB

13. Open Neo4j browser and browse your database. Run queries, build knowledge graphs. Have fun. Cheers🎉

Explore knowledge graph

For further reference:

Hire Me:

Are you seeking a proficient Neo4j Certified individual? I am available and eager to undertake the task at hand. I look forward to hearing from you in regard to potential opportunities.

About Author:

Asim is an applied research data engineer with a passion for developing impactful products. He possesses expertise in building data platforms and has a proven track record of success as a dual Kaggle expert. Asim has held leadership positions such as Google Developer Student Club (GDSC) Lead and AWS Educate Cloud Ambassador, which have allowed him to hone his skills in driving business success.

In addition to his technical skills, Asim is a strong communicator and team player. He enjoys connecting with like-minded professionals and is always open to networking opportunities. If you appreciate his work and would like to connect, please don’t hesitate to reach out.

--

--

Asim Zahid
Analytics Vidhya

I can brew up algorithms with a pinch of math, an ounce of Python and piles of data to power your business applications.