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