1

操作系统:Windows 2012
Neo4j 版本:1.8.2 Enterprise

我在使用 Neo4jBackup.bat 脚本备份 Neo4j 服务器时遇到问题。我正在从管理员命令提示符运行以下命令:

.\Neo4jBackup.bat -full -from single://127.0.0.1 -to E:\Neo4j-Backup

当我运行此命令时,我会收到以下输出和堆栈跟踪:

Performing full backup from 'single://127.0.0.1'
Exception in thread "main" java.lang.RuntimeException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexWriter(LuceneDataSource.java:685)
    at org.neo4j.index.impl.lucene.LuceneDataSource.syncGetIndexSearcher(LuceneDataSource.java:574)
    at org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSource.java:540)
    at org.neo4j.index.impl.lucene.LuceneDataSource.makeSureAllIndexesAreInstantiated(LuceneDataSource.java:893)
    at org.neo4j.index.impl.lucene.LuceneDataSource.listStoreFiles(LuceneDataSource.java:833)
    at org.neo4j.com.ServerUtil.rotateLogsAndStreamStoreFiles(ServerUtil.java:129)
    at org.neo4j.backup.BackupImpl.fullBackup(BackupImpl.java:41)
    at org.neo4j.backup.BackupClient$BackupRequestType$1.call(BackupClient.java:73)
    at org.neo4j.backup.BackupClient$BackupRequestType$1.call(BackupClient.java:69)
    at org.neo4j.com.Server$4.run(Server.java:427)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    at java.io.WinNTFileSystem.canonicalize0(Native Method)
    at java.io.Win32FileSystem.canonicalize(Unknown Source)
    at java.io.File.getCanonicalPath(Unknown Source)
    at org.apache.lucene.store.FSDirectory.getCanonicalPath(FSDirectory.java:129)
    at org.apache.lucene.store.FSDirectory.<init>(FSDirectory.java:143)
    at org.apache.lucene.store.MMapDirectory.<init>(MMapDirectory.java:93)
    at org.apache.lucene.store.FSDirectory.open(FSDirectory.java:180)
    at org.apache.lucene.store.FSDirectory.open(FSDirectory.java:172)
    at org.neo4j.index.impl.lucene.LuceneDataSource$DirectoryGetter$1.getDirectory(LuceneDataSource.java:914)
    at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexWriter(LuceneDataSource.java:664)
    ... 15 more

我究竟做错了什么?与备份相关的 Neo4j 设置设置为:

online_backup_enabled=true
online_backup_port=6362

感谢您的帮助。谢谢你。

阿米尔。

4

2 回答 2

0

尝试运行这样的命令

Neo4jBackup.bat -full -from single://127.0.0.1 -to E:/Neo4j-Backup
于 2013-06-18T08:31:14.893 回答
0

您能否尝试对备份位置使用有效的 URI 语法,例如

.\Neo4jBackup.bat -full -from single://127.0.0.1 -to /E:/Neo4j-Backup

那样有用吗?

于 2013-06-17T13:27:22.573 回答