use of io.jpom.model.enums.BackupTypeEnum in project Jpom by dromara.
the class BackupInfoService method backupToSql.
/**
* 备份数据库 SQL 文件
*
* @param tableNameList 需要备份的表名称列表,如果是全库备份,则不需要
*/
public void backupToSql(final List<String> tableNameList) {
// 判断备份类型
BackupTypeEnum backupType = BackupTypeEnum.ALL;
if (!CollectionUtils.isEmpty(tableNameList)) {
backupType = BackupTypeEnum.PART;
}
this.backupToSql(tableNameList, backupType);
}
Aggregations