Fix restic to hide files instead of deleting

pull/6/head
Inex Code 2021-12-08 07:45:27 +03:00
parent 710925f3ea
commit f24323606f
1 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,8 @@ class ResticController:
""" """
backup_listing_command = [ backup_listing_command = [
"restic", "restic",
"-o",
"rclone.args=serve restic --stdio",
"-r", "-r",
f"rclone:backblaze:{self._repository_name}/sfbackup", f"rclone:backblaze:{self._repository_name}/sfbackup",
"snapshots", "snapshots",
@ -141,6 +143,8 @@ class ResticController:
""" """
initialize_repository_command = [ initialize_repository_command = [
"restic", "restic",
"-o",
"rclone.args=serve restic --stdio",
"-r", "-r",
f"rclone:backblaze:{self._repository_name}/sfbackup", f"rclone:backblaze:{self._repository_name}/sfbackup",
"init", "init",
@ -168,6 +172,8 @@ class ResticController:
""" """
backup_command = [ backup_command = [
"restic", "restic",
"-o",
"rclone.args=serve restic --stdio",
"-r", "-r",
f"rclone:backblaze:{self._repository_name}/sfbackup", f"rclone:backblaze:{self._repository_name}/sfbackup",
"--verbose", "--verbose",
@ -238,6 +244,8 @@ class ResticController:
""" """
backup_restoration_command = [ backup_restoration_command = [
"restic", "restic",
"-o",
"rclone.args=serve restic --stdio",
"-r", "-r",
f"rclone:backblaze:{self._repository_name}/sfbackup", f"rclone:backblaze:{self._repository_name}/sfbackup",
"restore", "restore",