add slow option
This commit is contained in:
4
app.go
4
app.go
@@ -622,7 +622,7 @@ func (a AppConfig) RunAppBackup() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if schedule != "" {
|
if schedule != "" || *slowFlag {
|
||||||
err = a.CheckZFS()
|
err = a.CheckZFS()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if *debugFlag {
|
if *debugFlag {
|
||||||
@@ -630,7 +630,9 @@ func (a AppConfig) RunAppBackup() error {
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if schedule != "" {
|
||||||
err = a.ExecBefore(schedule)
|
err = a.ExecBefore(schedule)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if *debugFlag {
|
if *debugFlag {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ var (
|
|||||||
appFlag = flag.String("app", "", "run specific app")
|
appFlag = flag.String("app", "", "run specific app")
|
||||||
cfgFile = flag.String("config", "config.json", "config file")
|
cfgFile = flag.String("config", "config.json", "config file")
|
||||||
schedFlag = flag.String("schedule", "", "specific schedule")
|
schedFlag = flag.String("schedule", "", "specific schedule")
|
||||||
|
slowFlag = flag.Bool("slow", false, "slow process")
|
||||||
testFlag = flag.Bool("test", false, "test run")
|
testFlag = flag.Bool("test", false, "test run")
|
||||||
debugFlag = flag.Bool("debug", false, "debug")
|
debugFlag = flag.Bool("debug", false, "debug")
|
||||||
cfg Config
|
cfg Config
|
||||||
|
|||||||
Reference in New Issue
Block a user