Hello everyone. I use the scale. How do I remove decimals from the source code? I want to add a number value without decimals. I hope to find help here.
Auto Backup zip
.
Where is this code placed File zipFile = new File(backupDir, fileName + ".zip"); try (FileOutputStream fos = new FileOutputStream(zipFile); java.util.zip.ZipOutputStream zos = new java.util.zip.ZipOutputStream(fos)) { try (FileInputStream fis = new FileInputStream(sqlFile)) { java.util.zip.ZipEntry zipEntry = new java.util.zip.ZipEntry(sqlFile.getName()); zos.putNextEntry(zipEntry); byte[] buffer = new byte[4096]; int len; while ((len = fis.read(buffer)) > 0) { zos.write(buffer, 0, len); } zos.closeEntry();...
This code automatically Backup database. I want to Backup the database to a zip file. public static void autoBackup() { try { if (getExistedFile()) { PropertyUtils props = new PropertyUtils(); String path = AppConfig.getInstance().getProperty("mysql.path"); String userDirectory = AppConfig.getInstance().getProperty("backup.path"); String db_Type = AppConfig.getInstance().getProperty("db.engine"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH_mm"); String datetime = sdf.format(new Date());...
This code automatically Backup database. I want to Backup the database to a zip file. public static void autoBackup() { try { if (getExistedFile()) { PropertyUtils props = new PropertyUtils(); String path = AppConfig.getInstance().getProperty("mysql.path"); String userDirectory = AppConfig.getInstance().getProperty("backup.path"); String db_Type = AppConfig.getInstance().getProperty("db.engine"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH_mm"); String datetime = sdf.format(new Date());...
This will cost you money.