From e3351332375dcf1565dab5d6b842215be18ba91c Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 29 Oct 2025 19:16:20 +0100 Subject: [PATCH] fix(restic): unlock repo before trying to backup --- apps/server/src/utils/restic.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/server/src/utils/restic.ts b/apps/server/src/utils/restic.ts index 1c29a36..70bc913 100644 --- a/apps/server/src/utils/restic.ts +++ b/apps/server/src/utils/restic.ts @@ -135,6 +135,7 @@ const backup = async ( args.push("--json"); + await $`restic unlock --repo ${repoUrl}`.env(env).nothrow(); const res = await $`restic ${args}`.env(env).nothrow(); if (res.exitCode !== 0) {