Back up Neo4j Community Edition on windows

I am currently using Neo4j Community version 1.8.2 with Windows 8. Is it possible to back up the db version of the neo4j community on Windows?

+6
source share
3 answers

As Pangea said, the official backup tool is only available in Enterprise Edition.

His suggestion to use Windows backup tools is not a good option unless you know other things about Neo4j. Neo4j does not clear information immediately, and Lucene, so if you use something like Windows Backup, you will not get the database in a stable backup. You need to either use the Neo4j backup tool, or you need to close the Graph database so that everything is reset / closed and then backed up using Windows.

+8
source

Here are my Powershell scripts for the community version

#http://stackoverflow.com/questions/1153126/how-to-create-a-zip-archive-with-powershell function zipFiles() { param( [Parameter(Mandatory=$true,Position=0)]$zipfilename ,[Parameter(Mandatory=$true,Position=1)]$sourcedir ) Add-Type -Assembly System.IO.Compression.FileSystem $compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal [System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir, $zipfilename, $compressionLevel, $false) } #http://stackoverflow.com/questions/18612294 function BackupNeo4jCommunity { param( [Parameter(Mandatory=$true,Position=0)]$serviceName ,[Parameter(Mandatory=$true,Position=1)]$sourceNeoFolder ,[Parameter(Mandatory=$true,Position=2)]$zipFilename ) Stop-Service $serviceName zipFiles $zipfilename $sourceNeoFolder Start-Service $serviceName } BackupNeo4jCommunity -serviceName neoWindowsServiceName -sourceNeoFolder "D:\neo4j\myapp\data\graph.db" -zipFilename "D:\Downloads\neo-data.zip" 
+2
source

Backup service is available only in the corporate version. You can schedule a regular backup of Neo4j data files using the tools that come with the window .

0
source

Source: https://habr.com/ru/post/953146/


All Articles