summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/backup/state.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-08-01 12:14:30 +0200
committertv <tv@krebsco.de>2023-08-01 12:14:30 +0200
commit7be9bfdc55d672de39dce98dae9c6d112404dfc6 (patch)
treee89a93ad96e6f35490ffbf6b6a337ca4dcc9a170 /makefu/2configs/backup/state.nix
parent5d1b0675cf179f863a5b34b67661a953197b6057 (diff)
parent6e63efa3645353bc0549f5f152ef811fff5d644c (diff)
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'makefu/2configs/backup/state.nix')
-rw-r--r--makefu/2configs/backup/state.nix25
1 files changed, 0 insertions, 25 deletions
diff --git a/makefu/2configs/backup/state.nix b/makefu/2configs/backup/state.nix
deleted file mode 100644
index 1143708bf..000000000
--- a/makefu/2configs/backup/state.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ config, ... }:
-# back up all state
-let
- sec = toString <secrets>;
- sshkey = sec + "/borg.priv";
- phrase = sec + "/borg.pw";
-in
-{
- services.borgbackup.jobs.state = {
- repo = "borg-${config.krebs.build.host.name}@backup.makefu.r:.";
- paths = config.state;
- encryption = {
- mode = "repokey";
- passCommand = "cat ${phrase}";
- };
- environment.BORG_RSH = "ssh -i ${sshkey}";
- prune.keep =
- { daily = 7;
- weekly = 4;
- monthly = -1; # Keep at least one archive for each month
- };
- compression = "auto,lzma";
- startAt = "daily";
- };
-}