| | |
| | | File zipFile = zipUtil.createZip(zipName, new File(path)); //压缩数据库文件
|
| | |
|
| | |
|
| | | HzipSocket SocketClient = new HzipSocket();
|
| | | SocketClient.init(zipName); //发送数据库备份文件到远程服务器
|
| | | System.out.println("远程备份数据库完成" + Com.getDateTimeFormat(new Date(), Com.DTF_YMDhms));
|
| | | //HzipSocket SocketClient = new HzipSocket();
|
| | | //SocketClient.init(zipName); //发送数据库备份文件到远程服务器
|
| | | //System.out.println("远程备份数据库完成" + Com.getDateTimeFormat(new Date(), Com.DTF_YMDhms));
|
| | | if(zipFile.exists() && zipFile.length() > 1*1024 && new File(path).exists()) {
|
| | | deleteDir(new File(path));
|
| | | }
|