INNER CODE UNIT · Go
doPrune
k8up-io/k8up · cmd/restic/main.go:224
func doPrune(resticCLI *resticCli.Restic) error {
if cfg.Config.DoPrune {
if err := resticCLI.Prune(cfg.Config.Tags); err != nil {
return fmt.Errorf("prune job failed: %w", err)
}
}
return nil
}
func doCheck(resticCLI *resticCli.Restic) error {
if cfg.Config.DoCheck {
if err := resticCLI.Check(); err != nil {
return fmt.Errorf("check job failed: %w", err)
}
}
return nil
}