diff --git a/cmd/restic/cmd_serve.go b/cmd/restic/cmd_serve.go index d101ec2c6..cfdf59d30 100644 --- a/cmd/restic/cmd_serve.go +++ b/cmd/restic/cmd_serve.go @@ -45,7 +45,7 @@ func runWebServer(ctx context.Context, opts ServeOptions, gopts GlobalOptions, a return errors.Fatal("this command does not accept additional arguments") } - ctx, repo, unlock, err := openWithExclusiveLock(ctx, gopts, gopts.NoLock) + ctx, repo, unlock, err := openWithReadLock(ctx, gopts, gopts.NoLock) if err != nil { return err }