|
|
@ -33,7 +33,7 @@ public class MysqlRestoreService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void restore(String obsKey) {
|
|
|
|
public void restore(String obsKey) {
|
|
|
|
String tempDir = System.getProperty("java.io.tmpdir");
|
|
|
|
String tempDir = System.getProperty("java.io.tmpdir");
|
|
|
|
String zipFile = tempDir + File.separator + new File(obsKey).getName();
|
|
|
|
String zipFile = tempDir + obsKey;
|
|
|
|
String sqlFile = null;
|
|
|
|
String sqlFile = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
// 1. 从OBS下载ZIP文件
|
|
|
|
// 1. 从OBS下载ZIP文件
|
|
|
|