aboutsummaryrefslogtreecommitdiff
path: root/systems/eldiron/borg_backup.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-06-16 11:59:53 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2024-06-16 12:02:06 +0200
commitfbf4b741b3b064c65a1b22cc1334b035c54793ee (patch)
treef3a66412dcbd146fd3aeeb58878513e6e5972926 /systems/eldiron/borg_backup.nix
parent9c0cd0922a84ec9945072bd8fbd0e72bf3c3fa65 (diff)
downloadNix-fbf4b741b3b064c65a1b22cc1334b035c54793ee.tar.gz
Nix-fbf4b741b3b064c65a1b22cc1334b035c54793ee.tar.zst
Nix-fbf4b741b3b064c65a1b22cc1334b035c54793ee.zip
Move backup directory to host subdir
Diffstat (limited to 'systems/eldiron/borg_backup.nix')
-rw-r--r--systems/eldiron/borg_backup.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/systems/eldiron/borg_backup.nix b/systems/eldiron/borg_backup.nix
index 9956a46..f83594a 100644
--- a/systems/eldiron/borg_backup.nix
+++ b/systems/eldiron/borg_backup.nix
@@ -76,7 +76,7 @@ let
76 location = { 76 location = {
77 source_directories = map (p: "${profile.rootDir}/${p}") profile.includedPaths; 77 source_directories = map (p: "${profile.rootDir}/${p}") profile.includedPaths;
78 repositories = [ 78 repositories = [
79 { path = cfg.remotes.${remote}.remote bucket; label = "backupserver"; } 79 { path = cfg.remotes.${remote}.remote name bucket; label = "backupserver"; }
80 ]; 80 ];
81 one_file_system = false; 81 one_file_system = false;
82 exclude_if_present = [".duplicity-ignore"]; 82 exclude_if_present = [".duplicity-ignore"];
@@ -88,6 +88,7 @@ let
88 ssh_command = "ssh -i ${config.secrets.fullPaths."borg_backup/identity"}"; 88 ssh_command = "ssh -i ${config.secrets.fullPaths."borg_backup/identity"}";
89 compression = "zlib"; 89 compression = "zlib";
90 borg_base_directory = "${varDir}/${profile.bucket}"; 90 borg_base_directory = "${varDir}/${profile.bucket}";
91 relocated_repo_access_is_ok = true;
91 }; 92 };
92 retention = { 93 retention = {
93 keep_within = "10d"; 94 keep_within = "10d";