diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 1065e78bc..3994620ab 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -152,7 +152,7 @@ func runPrune(ctx context.Context, opts PruneOptions, gopts GlobalOptions) error return err } - if repo.Backend().Connections() < 2 { + if repo.Connections() < 2 { return errors.Fatal("prune requires a backend connection limit of at least two") }