summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-01-25 19:24:34 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-01-25 19:25:14 -0500
commitc54df87766c72851fb7133ac762932288cada4b3 (patch)
tree9bcb5e598f14420d29ec0e3f9fbd9c2b57c5feb0 /modules
parente156e90348d36e7991364ba387b27f179f2c315b (diff)
Add borg backup for break
Diffstat (limited to 'modules')
-rw-r--r--modules/backup-server.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/backup-server.nix b/modules/backup-server.nix
index f66b0b9..acc5553 100644
--- a/modules/backup-server.nix
+++ b/modules/backup-server.nix
@@ -18,7 +18,7 @@ let
backups.dragon = {
paths = [ "/home" "/opt" "/var" ];
- exclude = [ "/var/lib/lxd" ];
+ exclude = [ "/var/lib/lxd" "/var/lib/borg" ];
doInit = true;
repo = "borg@www.breakds.org:.";
encryption = {
@@ -59,6 +59,10 @@ in
authorizedKeys = [ (builtins.readFile ../secrets/dragon-borg-ssh-key.pub) ];
path = [ "/var/lib/dragon" ];
};
+ breakds = {
+ authorizedKeys = [ (builtins.readFile ../data/breakds.pub) ];
+ path = [ "/var/lib/borg/breakds" ];
+ };
pincer = {
authorizedKeys = [ (builtins.readFile ../secrets/pincer-borg-ssh-key.pub) ];
path = [ "/var/lib/borg-pincer" ];