mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
refactor(backup): pass key and account to exec
This commit is contained in:
parent
6bf5ee4b64
commit
f65c0522b0
|
@ -126,7 +126,10 @@ class ResticController(metaclass=SingletonMetaclass):
|
||||||
return f"rclone:backblaze:{self._repository_name}/sfbackup"
|
return f"rclone:backblaze:{self._repository_name}/sfbackup"
|
||||||
|
|
||||||
def rclone_args(self):
|
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):
|
def initialize_repository(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue