add H2BackupService class
@@ -5,27 +5,19 @@ import cn.hutool.core.lang.Console;
import cn.hutool.db.ds.DSFactory;
import cn.hutool.db.sql.SqlLog;
import cn.hutool.setting.Setting;
-import cn.jiangzeyin.common.spring.SpringUtil;
import io.jpom.ApplicationStartTest;
import io.jpom.JpomApplication;
-import io.jpom.JpomServerApplication;
-import io.jpom.common.JpomManifest;
import io.jpom.system.ExtConfigBean;
import io.jpom.system.ServerExtConfigBean;
import io.jpom.system.db.DbConfig;
-import io.jpom.system.init.InitDb;
-import org.h2.command.dml.RunScriptCommand;
-import org.h2.engine.Database;
-import org.h2.tools.Restore;
import org.h2.tools.RunScript;
-import org.h2.tools.Script;
import org.h2.tools.Shell;
import org.junit.jupiter.api.Test;
-import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
-import org.springframework.boot.test.context.SpringBootTest;
import javax.sql.DataSource;
-import java.io.*;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
import java.sql.Connection;
import java.sql.SQLException;
