Skip to content

Commit

Permalink
be
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Jan 24, 2025
1 parent 3ce6840 commit fc405d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public File backup(File backups) throws IOException {
log.warn("Cannot zip backup : {}", zip);
}

log.info("Backup succeeded : {} ({})", dest, FileUtils.byteCountToDisplaySize(dest.length()));
log.info("Backup database succeeded : {} ({})", dest, FileUtils.byteCountToDisplaySize(dest.length()));

// 恢复
// https://stackoverflow.com/questions/16735344/how-to-ignore-certain-mysql-tables-when-importing-a-database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
@Slf4j
public class DatafileBackup extends DatabaseBackup {

/**
* @return
* @throws IOException
*/
@Override
public File backup(File backups) throws IOException {
File rbdata = RebuildConfiguration.getFileOfData("");
Expand All @@ -41,7 +37,7 @@ public File backup(File backups) throws IOException {
return !("_backups".equals(name) || "_log".equals(name) || "temp".equals(name) || "rebuild.pid".equals(name));
});

log.info("Backup succeeded : {} ({})", destZip, FileUtils.byteCountToDisplaySize(destZip.length()));
log.info("Backup files succeeded : {} ({})", destZip, FileUtils.byteCountToDisplaySize(destZip.length()));

return destZip;
}
Expand Down

0 comments on commit fc405d1

Please sign in to comment.