]> Git — Sourcephile - sourcephile-nix.git/blob - servers/losurdo/production/sanoid.nix
nix: remove upstreamed PR patches
[sourcephile-nix.git] / servers / losurdo / production / sanoid.nix
1 { pkgs, lib, config, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 work = {
7 hourly = 0;
8 daily = 7;
9 monthly = 0;
10 yearly = 0;
11 autosnap = true;
12 autoprune = true;
13 settings = {
14 };
15 };
16 backup_database = {
17 hourly = 0;
18 daily = 7;
19 monthly = 0;
20 yearly = 0;
21 autosnap = false;
22 autoprune = true;
23 settings = {
24 };
25 };
26 backup_git = {
27 hourly = 0;
28 daily = 7;
29 monthly = 0;
30 yearly = 0;
31 autosnap = false;
32 autoprune = true;
33 settings = {
34 };
35 };
36 backup_mail = {
37 hourly = 12;
38 daily = 7;
39 monthly = 0;
40 yearly = 0;
41 autosnap = false;
42 autoprune = true;
43 settings = {
44 };
45 };
46 backup_log = {
47 hourly = 12;
48 daily = 7;
49 monthly = 1;
50 yearly = 0;
51 autosnap = false;
52 autoprune = true;
53 settings = {
54 };
55 };
56 backup_www = {
57 hourly = 0;
58 daily = 7;
59 monthly = 0;
60 yearly = 0;
61 autosnap = false;
62 autoprune = true;
63 settings = {
64 };
65 };
66 };
67 extraArgs = [
68 "--verbose"
69 #"--debug"
70 ];
71 datasets = {
72 "losurdo_nvme/home/julm/work" = {
73 use_template = [ "work" ];
74 #recursive = true;
75 };
76 "losurdo_nvme/backup/mermet/var/git" = {
77 use_template = [ "backup_git" ];
78 #recursive = true;
79 };
80 "losurdo_nvme/backup/mermet/var/mail" = {
81 use_template = [ "backup_mail" ];
82 #recursive = true;
83 };
84 "losurdo_nvme/backup/mermet/var/www" = {
85 use_template = [ "backup_www" ];
86 #recursive = true;
87 };
88 "losurdo_nvme/backup/mermet/var/redis" = {
89 use_template = [ "backup_database" ];
90 #recursive = true;
91 };
92 "losurdo_nvme/backup/mermet/home/julm/mail" = {
93 use_template = [ "backup_mail" ];
94 #recursive = true;
95 };
96 "losurdo_nvme/backup/mermet/home/julm/log" = {
97 use_template = [ "backup_log" ];
98 #recursive = true;
99 };
100 };
101 };
102 }