about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2025-04-12 20:35:25 +0200
committerEmile <git@emile.space>2025-04-12 20:35:25 +0200
commite7ed63a37304cba88e9ecd15ad271b70684dc51b (patch)
treed816c2744fc8c232e8a08577990fe2a8f9770dd4
parent1fbf1db449943a424f0afd388aa5fff52ef7c959 (diff)
(corrino) hedgedoc: now with backups HEAD main
-rw-r--r--nix/hosts/corrino/www/md.emile.space.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nix/hosts/corrino/www/md.emile.space.nix b/nix/hosts/corrino/www/md.emile.space.nix
index d9db013..d94c06c 100644
--- a/nix/hosts/corrino/www/md.emile.space.nix
+++ b/nix/hosts/corrino/www/md.emile.space.nix
@@ -85,6 +85,20 @@
     };
   };
 
+  services.restic.backups."hedgedoc" = {
+    repository = "/mnt/storagebox-bx11/hedgedoc";
+    paths = [ "/var/lib/hedgedoc" ];
+    timerConfig = null;
+    passwordFile = config.age.secrets.restic_password.path;
+    initialize = true;
+    pruneOpts = [
+      "--keep-daily 7"
+      "--keep-weekly 5"
+      "--keep-monthly 12"
+      "--keep-yearly 75"
+    ];
+  };
+
   # backups
   # services.restic.backups."hedgedoc" = {
   #   user = "u331921";