add slow option

This commit is contained in:
shoopea
2021-11-04 21:33:44 +08:00
parent 95d4fce73d
commit 0f4fca35f3
2 changed files with 4 additions and 1 deletions

4
app.go
View File

@@ -622,7 +622,7 @@ func (a AppConfig) RunAppBackup() error {
return err
}
if schedule != "" {
if schedule != "" || *slowFlag {
err = a.CheckZFS()
if err != nil {
if *debugFlag {
@@ -630,7 +630,9 @@ func (a AppConfig) RunAppBackup() error {
}
return err
}
}
if schedule != "" {
err = a.ExecBefore(schedule)
if err != nil {
if *debugFlag {