A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.
fix: resolves broken backup plans with disabled encryption
towfiqi342b97cbac88
diff --git a/backend/src/utils/restic/restic.ts b/backend/src/utils/restic/restic.tsindex 5ecc6dc..3a5c38d 100644--- a/backend/src/utils/restic/restic.ts+++ b/backend/src/utils/restic/restic.ts@@ -56,6 +56,11 @@ export function runResticCommand(path.join(appPaths.getTempDir(), 'restic-cache'),];+ // if an empty password is passed, it means encryption is disabled, so we avoid restic prompting for a password+ if ((envVars as Record<string, string>)?.RESTIC_PASSWORD === '') {+ finalArgs.push('--insecure-no-password');+ }+const resticProcess = spawn(resticBinary, finalArgs, { env: envVars });if (onProcess) {