diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 195b2554d..9447f8145 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -132,6 +132,10 @@ func runPrune(opts PruneOptions, gopts GlobalOptions) error { return err } + if repo.Backend().Connections() < 2 { + return errors.Fatal("prune requires a backend connection limit of at least two") + } + lock, err := lockRepoExclusive(gopts.ctx, repo) defer unlockRepo(lock) if err != nil {