|
|
|
@ -5,7 +5,7 @@ import com.obs.services.ObsClient;
|
|
|
|
|
import java.io.*;
|
|
|
|
|
import java.util.zip.*;
|
|
|
|
|
|
|
|
|
|
public class DatabaseRestore {
|
|
|
|
|
public class MysqlRestoreUtil {
|
|
|
|
|
private final String obsEndpoint;
|
|
|
|
|
private final String obsAccessKey;
|
|
|
|
|
private final String obsSecretKey;
|
|
|
|
@ -18,7 +18,7 @@ public class DatabaseRestore {
|
|
|
|
|
private final String dbPassword;
|
|
|
|
|
private final String dbName;
|
|
|
|
|
|
|
|
|
|
public DatabaseRestore() {
|
|
|
|
|
public MysqlRestoreUtil() {
|
|
|
|
|
// 从配置文件读取配置
|
|
|
|
|
this.obsEndpoint = PropKit.get("obs.endPoint");
|
|
|
|
|
this.obsAccessKey = PropKit.get("obs.accessKey");
|