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) {