From ecfbe3dd5133b3db6145da8c961bc498f1378916 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sun, 1 Oct 2023 17:19:29 -0600 Subject: [PATCH] snapraid re-enabled --- server/configuration.org | 68 +++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/server/configuration.org b/server/configuration.org index 7ba19da..93e05a1 100644 --- a/server/configuration.org +++ b/server/configuration.org @@ -756,42 +756,38 @@ historic backup of your files, I am more concerned with the whole disk recovery in case of failure, as such a frequent sync fits my preferences. #+begin_src nix -# snapraid = { -# enable = true; -# touchBeforeSync = true; -# sync.interval = "02:00"; -# scrub = { -# plan = 10; -# olderThan = 15; -# interval = "4:00"; -# }; -# parityFiles = [ -# "/mnt/disks/parity/snapraid.parity" -# ]; -# extraConfig = '' -# autosave 5000 -# ''; -# exclude = [ -# "/tmp/" -# "/lost+found/" -# "/multimedia/downloads/" -# "/backups/" -# "/glue/Spankbank/unorganized/chaturbate/" -# "/nextcloud/nextcloud.log" -# "/.Trash-1000/" -# "/seeding/" -# ]; -# dataDisks = { -# d1 = "/mnt/disks/disk1/"; -# d2 = "/mnt/disks/disk2/"; -# d3 = "/mnt/disks/seedbox/"; -# }; -# contentFiles = [ -# "/var/snapraid.content" -# "/mnt/disks/disk1/snapraid.content" -# "/mnt/disks/disk2/snapraid.content" -# ]; -# }; +snapraid = { + enable = true; + touchBeforeSync = true; + sync.interval = "02:00"; + scrub.interval = "04:00"; + extraConfig = '' + autosave 5000 + ''; + parityFiles = [ + "/mnt/disks/parity/snapraid.parity" + ]; + dataDisks = { + d1 = "/mnt/disks/disk1/"; + d2 = "/mnt/disks/disk2/"; + d3 = "/mnt/disks/seedbox/"; + }; + exclude = [ + "/tmp/" + "/lost+found/" + "/multimedia/downloads/" + "/backups/" + "/glue/Spankbank/unorganized/chaturbate/" + "/nextcloud/nextcloud.log" + "/seeding/" + "/.Trash-1000/" + ]; + contentFiles = [ + "/var/snapraid.content" + "/mnt/snapraid/disk1/snapraid.content" + "/mnt/snapraid/disk2/snapraid.content" + ]; +}; #+end_src * PROGRAMS