From 9c821400729dc042dc850d53c9b6d13f5b44cbe7 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Mon, 2 Feb 2026 18:17:19 +0100 Subject: [PATCH] fix: add restic --host to repo init command --- app/server/utils/restic.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/server/utils/restic.ts b/app/server/utils/restic.ts index 0d91d2ae..e8e1d9b1 100644 --- a/app/server/utils/restic.ts +++ b/app/server/utils/restic.ts @@ -252,6 +252,8 @@ const init = async (config: RepositoryConfig, organizationId: string, options?: const env = await buildEnv(config, organizationId); const args = ["init", "--repo", repoUrl]; + + args.push("--host", appConfig.resticHostname); addCommonArgs(args, env, config); const res = await exec({ command: "restic", args, env, timeout: options?.timeoutMs ?? 20000 }); @@ -303,9 +305,7 @@ const backup = async ( args.push("--one-file-system"); } - if (appConfig.resticHostname) { - args.push("--host", appConfig.resticHostname); - } + args.push("--host", appConfig.resticHostname); if (options?.tags && options.tags.length > 0) { for (const tag of options.tags) {