From 4e8050727aefb89ac3fcad7513781d97356bfeff Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 18 Jan 2023 10:07:04 +0000 Subject: [PATCH] refactor(backup): pass key and account to exec --- selfprivacy_api/restic_controller/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selfprivacy_api/restic_controller/__init__.py b/selfprivacy_api/restic_controller/__init__.py index 592b651..0f6ad61 100644 --- a/selfprivacy_api/restic_controller/__init__.py +++ b/selfprivacy_api/restic_controller/__init__.py @@ -126,7 +126,10 @@ class ResticController(metaclass=SingletonMetaclass): return f"rclone:backblaze:{self._repository_name}/sfbackup" def rclone_args(self): - return "rclone.args=serve restic --stdio" + return "rclone.args=serve restic --stdio" + self.backend_rclone_args() + + def backend_rclone_args(self): + return f"--b2-account {self._backblaze_account} --b2-key {self._backblaze_key}" def initialize_repository(self): """