| | |
| | | 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));
|
| | | }
|
| | |
| | | * @return
|
| | | */
|
| | | public static Date createNomalDate(Date time) {
|
| | | String time_str = Com.getDateTimeFormat(time, Com.DTF_YMD) + " 10:36:30";
|
| | | String time_str = Com.getDateTimeFormat(time, Com.DTF_YMD) + " 23:59:30";
|
| | | //System.out.println(time_str);
|
| | | return Com.getDateTimeFromStr(time_str, Com.DTF_YMDhms);
|
| | | }
|