mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	!100 定时清理数据库备份数据
* feat: 优化数据库 BINLOG 同步机制 * feat: 删除数据库实例前需删除关联的数据库备份与恢复任务 * refactor: 重构数据库备份与恢复模块 * feat: 定时清理数据库备份历史和本地 Binlog 文件 * feat: 压缩数据库备份文件
This commit is contained in:
		@@ -11,14 +11,16 @@ const (
 | 
			
		||||
 | 
			
		||||
// BinlogFile is the metadata of the MySQL binlog file.
 | 
			
		||||
type BinlogFile struct {
 | 
			
		||||
	Name string
 | 
			
		||||
	Size int64
 | 
			
		||||
	Name       string
 | 
			
		||||
	RemoteSize int64
 | 
			
		||||
	LocalSize  int64
 | 
			
		||||
 | 
			
		||||
	// Sequence is parsed from Name and is for the sorting purpose.
 | 
			
		||||
	Sequence       int64
 | 
			
		||||
	FirstEventTime time.Time
 | 
			
		||||
	LastEventTime  time.Time
 | 
			
		||||
	Downloaded     bool
 | 
			
		||||
 | 
			
		||||
	Downloaded bool
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _ DbJob = (*DbBinlog)(nil)
 | 
			
		||||
@@ -76,10 +78,6 @@ func (b *DbBinlog) GetJobType() DbJobType {
 | 
			
		||||
	return DbJobTypeBinlog
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (b *DbBinlog) SetLastStatus(status DbJobStatus, err error) {
 | 
			
		||||
	b.setLastStatus(b.GetJobType(), status, err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (b *DbBinlog) GetKey() DbJobKey {
 | 
			
		||||
	return b.getKey(b.GetJobType())
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user