Skip to content

Commit

Permalink
Use restic 0.9.5 (#789)
Browse files Browse the repository at this point in the history
* Use restic 0.9.5
* Fixed backup failure handing
  • Loading branch information
Md. Emruz Hossain authored and tamalsaha committed May 18, 2019
1 parent 85b21bf commit 3abe6f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions run_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmds
import (
"time"

"github.com/appscode/go/log"
"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/client-go/kubernetes"
Expand Down Expand Up @@ -52,9 +51,8 @@ func NewCmdRunBackup() *cobra.Command {
con.Recorder = eventer.NewEventRecorder(con.K8sClient, backup.BackupEventComponent)
con.Metrics.JobName = con.BackupConfigurationName
if err = con.RunBackup(); err != nil {
log.Errorln("failed to complete backup. Reason: ", err)
//set BackupSession status "Failed", write event and prometheus metrics
return con.HandleBackupFailure(err)
// send setup failure metrics and fail the container so it restart to re-try
con.HandleBackupSetupFailure(err)
}
return nil
},
Expand Down

0 comments on commit 3abe6f6

Please sign in to comment.