0
我試圖創建我的HSQLDB的脫機備份(使用HSQLDB 2.2.6.jar)作爲HSQLDB用戶指南中解釋說:http://hsqldb.org/doc/2.0/guide/management-chapt.html#N1400AHSQLDB DBBACKUP DBPATH
java -cp path/to/hsqldb.jar org.hsqldb.lib.tar.DbBackup --save \
tar/path.tar db/base/path
但我不能找到db/base /路徑應該指向的地方。這是用戶指南中的一句話:
db/base/path is the file path to the catalog file base name (in same fashion as in server.database.* settings and JDBC URLs with catalog type file:.
而這是錯誤消息我得到:
Exception in thread "main" java.io.FileNotFoundException: File not found:
path\to\hsqldb.jar.properties
at org.hsqldb.lib.tar.DbBackup.write(Unknown Source)
at org.hsqldb.lib.tar.DbBackup.main(Unknown Source)
非常感謝!現在它可以工作。 只是因爲這是另一個我遇到的下一個問題:您必須使用SHUTDOWN SQL語句正確關閉數據庫才能生成備份。如下所示,屬性File中的Modified屬性設置爲「no」:http://hsqldb.org/doc/guide/apc.html – 2012-01-11 23:05:14