aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/ba/backup
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-07 02:09:08 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-07 02:09:08 +0200
commit5713106d107bb5cce5b73468d2c5e69481988f2e (patch)
tree9076199d1dcfcf2f2dff49ae3607c762fa09bfec /modules/by-name/ba/backup
parentmodules/backup: Also make the cache for the admin storagebox presistent (diff)
downloadnixos-config-5713106d107bb5cce5b73468d2c5e69481988f2e.zip
modules/backup: Tune some of restic's arguments
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.