Documentation ¶
Index ¶
- Constants
- Variables
- func GetDescBackupDstAndLinks(tmpBackupFile, ofs, bakPath string, retention Retention) (dst string, links map[string]string, err error)
- func GetDescBackupDstList(tmpBackupFile, ofs, bakPath string, retention Retention) (dst []string)
- func GetIncBackupDstAndLinks(tmpBackupFile, ofs, bakPath string) (bakDst, mtdDst string, links map[string]string, err error)
- func GetIncBackupDstList(tmpBackupFile, ofs, bakPath string) (bakDst, mtdDst []string)
- func GetRetention(p retentionPeriod, r Retention) (retentionCount int, retentionDate time.Time)
- func IsNeedToBackup(day, week, month int) bool
- type Params
- type Retention
Constants ¶
View Source
const ( Daily retentionPeriod = "daily" Weekly retentionPeriod = "weekly" Monthly retentionPeriod = "monthly" )
Variables ¶
View Source
var RetentionPeriodsList = []retentionPeriod{Monthly, Weekly, Daily}
Functions ¶
func GetDescBackupDstList ¶
func GetIncBackupDstAndLinks ¶
func GetIncBackupDstList ¶
func GetRetention ¶
func IsNeedToBackup ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.