From f24323606f80b2dbc98915fdbc757b8b3ca6092c Mon Sep 17 00:00:00 2001 From: Inex Code Date: Wed, 8 Dec 2021 07:45:27 +0300 Subject: [PATCH] Fix restic to hide files instead of deleting --- selfprivacy_api/restic_controller/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/selfprivacy_api/restic_controller/__init__.py b/selfprivacy_api/restic_controller/__init__.py index 6e3e5a5..cefef53 100644 --- a/selfprivacy_api/restic_controller/__init__.py +++ b/selfprivacy_api/restic_controller/__init__.py @@ -99,6 +99,8 @@ class ResticController: """ backup_listing_command = [ "restic", + "-o", + "rclone.args=serve restic --stdio", "-r", f"rclone:backblaze:{self._repository_name}/sfbackup", "snapshots", @@ -141,6 +143,8 @@ class ResticController: """ initialize_repository_command = [ "restic", + "-o", + "rclone.args=serve restic --stdio", "-r", f"rclone:backblaze:{self._repository_name}/sfbackup", "init", @@ -168,6 +172,8 @@ class ResticController: """ backup_command = [ "restic", + "-o", + "rclone.args=serve restic --stdio", "-r", f"rclone:backblaze:{self._repository_name}/sfbackup", "--verbose", @@ -238,6 +244,8 @@ class ResticController: """ backup_restoration_command = [ "restic", + "-o", + "rclone.args=serve restic --stdio", "-r", f"rclone:backblaze:{self._repository_name}/sfbackup", "restore",