aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/ba/backup/module.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/ba/backup/module.nix22
1 files changed, 16 insertions, 6 deletions
diff --git a/modules/by-name/ba/backup/module.nix b/modules/by-name/ba/backup/module.nix
index 0e2630f3..eab1281b 100644
--- a/modules/by-name/ba/backup/module.nix
+++ b/modules/by-name/ba/backup/module.nix
@@ -171,6 +171,11 @@ in {
"${homeDir}/soispha/.local/share/Steam/steamapps/common"
];
extraBackupArgs = [
+ # Don't scan the filesystem to determine an estimate.
+ "--no-scan"
+ ];
+ defaultExtraOptions = [
+ "--compression=max"
"--verbose=2"
];
in {
@@ -181,6 +186,7 @@ in {
inherit paths exclude extraBackupArgs;
passwordFile = config.age.secrets.resticLocalRepositoryPassword.path;
+ extraOptions = defaultExtraOptions;
repository = "${cfg.local.backupMountPoint}/restic-backup-data/";
@@ -195,9 +201,11 @@ in {
inherit paths exclude extraBackupArgs;
passwordFile = config.age.secrets.resticStorageboxRepositoryPassword.path;
- extraOptions = [
- "rclone.program='ssh -p 23 ${cfg.storagebox.user}@${cfg.storagebox.user}.your-storagebox.de -i ${config.age.secrets.resticStorageboxSshKey.path} command_forced_on_remote'"
- ];
+ extraOptions =
+ defaultExtraOptions
+ ++ [
+ "rclone.program='ssh -p 23 ${cfg.storagebox.user}@${cfg.storagebox.user}.your-storagebox.de -i ${config.age.secrets.resticStorageboxSshKey.path} command_forced_on_remote'"
+ ];
# This setting is normally passed to rclone, but we force
# the command on the remote.
@@ -222,9 +230,11 @@ in {
inherit paths exclude extraBackupArgs;
passwordFile = config.age.secrets.resticStorageboxRepositoryPassword.path;
- extraOptions = [
- "rclone.program='ssh -p 23 ${cfg.storagebox.user}@${cfg.storagebox.user}.your-storagebox.de command_forced_on_remote'"
- ];
+ extraOptions =
+ defaultExtraOptions
+ ++ [
+ "rclone.program='ssh -p 23 ${cfg.storagebox.user}@${cfg.storagebox.user}.your-storagebox.de command_forced_on_remote'"
+ ];
# This setting is normally passed to rclone, but we force
# the command on the remote.