The copy store utilities is a set of tools to compact, copy, fix and analyse Neo4j stores. You might already know this but if not, you can read more about it here.
You will notice that the execution is done by running a linux script. While we do not have any Windows batch file or Powershell script but we can run the copy store tool on Windows by following these easy steps:
You need to be running the correct version of the copy store tool for your Neo4j version. If you are running Neo4j 3.3.x, you should use the copy store version 3.3.4 for example.
- Open a command window, browse to GitHub repository contents on your local hard-drive and run the following command:
You’ll need to set both the source and destination path by changing:
-Dexec.args="<SOURCE PATH> <DESTINATION PATH>". Also, you can
-Ddbms.pagecache.memory.source=1G to change the memory consumption of this tool. You can
get more information on the actual tool in its GitHub repo
This will compile and run the copy store utility on a Windows command line window.