Alternative to neo4j-admin copy for 3.5-enterprise

After a few 3rd party imports, our database grew a lot (from a dump of 75mb to 505mb)

After reading the article for space reuse, we tested it:

  1. By migrating our data from Neo4J 3.5 to 4.4 using neo4j-admin copy
  2. Doing a dump of the migrated data in 4.4 => from 505 mb we got to 84 mb - success! it's just perfect!

The issue is that we have a lot of code using 3.5 syntax, so the migration is a tech debt we are not yet ready to pay it.

What's the alternative of defragmentation / saving space in 3.5-enterprise of the neo4j-admin copy?

One of my ideas is to export the cleaned up data from 4.4 in JSON and import it in 3.5 instance, but I'm not sure if the schema works?

Here are the available commands in 3.5-enterprise:

available commands:

        Check the consistency of a database.
        This help text, or help for the command specified in <command>.
        Import from a collection of CSV files or a pre-3.0 database.
        Print Neo4j heap and pagecache memory settings recommendations.
        Produces a zip/tar of the most common information needed for remote assessments.
        Prints information about a Neo4j database store.

        Sets the default admin user when no roles are present.
        Sets the initial password of the initial admin user ('neo4j').

        Removes cluster state data for the specified database.

Offline backup
        Dump a database into a single-file archive.
        Load a database from an archive created with the dump command.

Online backup
        Perform an online backup from a running Neo4j enterprise server.
        Restore a backed up database.


See GitHub - jexp/store-utils: Utilities to compact, copy, fix, analyse Neo4j stores for a 3.5 equivalent and this was the predecessor to neo4j-admin copy and can be used where neo4j-admin copy is not available.


The issue is that we have a lot of code using 3.5 syntax, so the migration is a tech debt we are not yet ready to pay it.

and whereas Neo4j 3.5.0 was released November 2018 ( Neo4j 3.5.0 - Neo4j Graph Data Platform ) it is coming off patch support in 1 month, May 2022 and as such no further patches will be released for 3.5. So it would be in your best interest to upgrade