PHPackages                             liutec/neo4jtransfer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. liutec/neo4jtransfer

ActiveApplication[Debugging &amp; Profiling](/categories/debugging)

liutec/neo4jtransfer
====================

Neo4j Transfer

0.0.7(9y ago)184MITPHPPHP &gt;=5.3.2

Since Jun 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/liutec/neo4jtransfer)[ Packagist](https://packagist.org/packages/liutec/neo4jtransfer)[ RSS](/packages/liutec-neo4jtransfer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Neo4j Transfer
==============

[](#neo4j-transfer)

Directly transfer nodes and relations between Neo4j servers or backup/restore entire databases to/from files.

Building
--------

[](#building)

This tool may be built as a stand-alone phar file by using the following commands:

```
git clone https://github.com/liutec/neo4jtransfer.git
cd neo4jtransfer
composer install
./bin/build
./neo4jtransfer.phar help

```

Commands and arguments
----------------------

[](#commands-and-arguments)

The following commands are available:

### The dump command

[](#the-dump-command)

Dump all nodes and relations from a Neo4j database into a cypher file.

#### Dump command example

[](#dump-command-example)

The following command will dump all nodes and relations from `neo4j1-prod` into a file. (eg. dump-neo4j1-prod-20160615-233212.cypher)

```
./neo4jtransfer.phar dump --output=default --source-host=neo4j1-prod

```

#### Dump command arguments

[](#dump-command-arguments)

ArgumentDefault valueDescription`--source-host``localhost`Neo4j source server hostname.`--source-port``7474`Neo4j source server port.`--source-user``neo4j`Neo4j source server username.`--source-password``neo4j`Neo4j source server password.`--output``STDOUT`Cypher output filename. If unspecified, will use STDOUT. Set to `default` to use `dump-[source-host]-[yyyyMMdd]-[hhmmss].cypher``--read-batch-size``300`The number of nodes and relations to read at once.`--node-batch-size``100`The number of nodes to write as part of a single cypher query or batch.`--relation-batch-size``150`The number of relations to write as part of a single cypher query or batch.`--ignore-relation-properties``none`Comma separated values of properties to be ignored for relations. . (eg. creationDate,modificationDate)`--preserve-ids``none`Comma separated list of label attributes to treat as Node IDs. (eg. Job.ownerId,Action.userId)`--clean``true`Set to `false` not to clean target database before importing. By default all nodes and relations will be removed.`--transactional``false`Set to `true` to wrap all cyphers in a transaction. Non-transactional by default.`--import-label``_ilb`The name of the label set on imported nodes to create a temporary index with which to quicker identify nodes when transferring relations. This label and the index on it will be removed after the import.`--import-id-key``_iid`The name of the key used to hold the node IDs as imported. This attribute and the index on it will be removed after the import.### The import command

[](#the-import-command)

Run cypher queries from a file.

#### Import command example

[](#import-command-example)

The following command will look for the latest dump corresponding to the `neo4j1-prod` host (eg. dump-neo4j1-prod-20160615-233212.cypher) and execute the cypher queries within onto the Neo4j database on `localhost`.

```
./neo4jtransfer.phar import --input=last:neo4j1-prod

```

#### Import command arguments

[](#import-command-arguments)

ArgumentDefault valueDescription`--input``STDIN`Cypher input filename. If unspecified, will use STDIN. Set to `last:[hostname]` to use `dump-[hostname]-[yyyyMMdd]-[hhmmss].cypher` with the latest timestamp.`--target-host``localhost`Neo4j target server hostname.`--target-port``7474`Neo4j target server port.`--target-user``neo4j`Neo4j target server username.`--target-password``neo4j`Neo4j target server password.### The direct transfer command

[](#the-direct-transfer-command)

Transfer nodes and relations from one Neo4j database into another without an intermediary dump file.

#### Direct transfer command example

[](#direct-transfer-command-example)

The following command will transfer all nodes and relations from `neo4j1-prod` into `app1-dev` within a single transaction.

```
./neo4jtransfer.phar direct --source-host=neo4j1-prod --target-host=app1-dev --transactional

```

#### Direct transfer command arguments

[](#direct-transfer-command-arguments)

ArgumentDefault valueDescription`--source-host``localhost`Neo4j source server hostname.`--source-port``7474`Neo4j source server port.`--source-user``neo4j`Neo4j source server username.`--source-password``neo4j`Neo4j source server password.`--target-host``localhost`Neo4j target server hostname.`--target-port``7474`Neo4j target server port.`--target-user``neo4j`Neo4j target server username.`--target-password``neo4j`Neo4j target server password.`--read-batch-size``300`The number of nodes and relations to read at once.`--node-batch-size``100`The number of nodes to write as part of a single cypher query or batch.`--relation-batch-size``150`The number of relations to write as part of a single cypher query or batch.`--ignore-relation-properties``none`Comma separated values of properties to be ignored for relations. . (eg. creationDate,modificationDate)`--preserve-ids``none`Comma separated list of label attributes to treat as Node IDs. (eg. Job.ownerId,Action.userId)`--clean``true`Set to `false` not to clean target database before importing. By default all nodes and relations will be removed.`--transactional``false`Set to `true` to wrap all cyphers in a transaction. Non-transactional by default.### The transfer command

[](#the-transfer-command)

Transfer nodes and relations from one Neo4j database into another and save all cypher queries to a dump file.

#### Transfer command example

[](#transfer-command-example)

The following command will transfer all nodes and relations from `neo4j1-prod` into `app1-dev` within a single transaction and create a dump file for backup. (eg. dump-neo4j1-prod-20160615-233212.cypher)

```
./neo4jtransfer.phar transfer --output=default --source-host=neo4j1-prod --target-host=app1-dev

```

#### Transfer command arguments

[](#transfer-command-arguments)

ArgumentDefault valueDescription`--source-host``localhost`Neo4j source server hostname.`--source-port``7474`Neo4j source server port.`--source-user``neo4j`Neo4j source server username.`--source-password``neo4j`Neo4j source server password.`--output``STDOUT`Cypher output filename. If unspecified, will use STDOUT. Set to `default` to use `dump-[source-host]-[yyyyMMdd]-[hhmmss].cypher``--target-host``localhost`Neo4j target server hostname.`--target-port``7474`Neo4j target server port.`--target-user``neo4j`Neo4j target server username.`--target-password``neo4j`Neo4j target server password.`--read-batch-size``300`The number of nodes and relations to read at once.`--node-batch-size``100`The number of nodes to write as part of a single cypher query or batch.`--relation-batch-size``150`The number of relations to write as part of a single cypher query or batch.`--ignore-relation-properties``none`Comma separated values of properties to be ignored for relations. . (eg. creationDate,modificationDate)`--preserve-ids``none`Comma separated list of label attributes to treat as Node IDs. (eg. Job.ownerId,Action.userId)`--clean``true`Set to `false` not to clean target database before importing. By default all nodes and relations will be removed.`--transactional``false`Set to `true` to wrap all cyphers in a transaction. Non-transactional by default.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Total

2

Last Release

3601d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d43c65c9ab0cb462f4f484bed2930cc56a234bcab08a82f9ed891556621aa8ec?d=identicon)[liutec](/maintainers/liutec)

---

Top Contributors

[![liutec](https://avatars.githubusercontent.com/u/3606208?v=4)](https://github.com/liutec "liutec (1 commits)")

---

Tags

backupdumpneo4jtransfer

### Embed Badge

![Health badge](/badges/liutec-neo4jtransfer/health.svg)

```
[![Health](https://phpackages.com/badges/liutec-neo4jtransfer/health.svg)](https://phpackages.com/packages/liutec-neo4jtransfer)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[laradumps/laradumps-core

LaraDumps is a friendly app designed to boost your Laravel / PHP coding and debugging experience.

261.2M13](/packages/laradumps-laradumps-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
