]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/losurdo/sanoid.nix
nix: update input julm-nix
[sourcephile-nix.git] / hosts / losurdo / sanoid.nix
1 { hostName, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 snap = {
7 autosnap = true;
8 autoprune = true;
9 yearly = 0;
10 monthly = 3;
11 daily = 31;
12 hourly = 0;
13 frequently = 0;
14 };
15 prune = {
16 autosnap = false;
17 autoprune = true;
18 yearly = 0;
19 monthly = 3;
20 daily = 31;
21 hourly = 24;
22 frequently = 0;
23 };
24 };
25 extraArgs = [
26 "--verbose"
27 #"--debug"
28 ];
29 datasets = {
30 "das1/julm/virt" = {
31 use_template = [ "snap" ];
32 monthly = 0;
33 daily = 7;
34 hourly = 1;
35 frequently = 0;
36 recursive = true;
37 };
38 "${hostName}/home/julm/work" = {
39 use_template = [ "snap" ];
40 recursive = true;
41 };
42 "${hostName}/backup/mermet" = {
43 use_template = [ "prune" ];
44 recursive = true;
45 process_children_only = true;
46 };
47 "${hostName}/backup/mermet/var/redis-rspamd" = {
48 use_template = [ "prune" ];
49 monthly = 0;
50 daily = 1;
51 hourly = 1;
52 };
53 "${hostName}/backup/mermet/var/mail" = {
54 use_template = [ "prune" ];
55 daily = 31;
56 hourly = 12;
57 };
58 };
59 };
60 }