]> Git — Sourcephile - sourcephile-nix.git/blob - servers/losurdo/production/sanoid.nix
nginx: covid19: fix access_log
[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_www = {
47 hourly = 0;
48 daily = 7;
49 monthly = 0;
50 yearly = 0;
51 autosnap = false;
52 autoprune = true;
53 settings = {
54 };
55 };
56 };
57 extraArgs = [
58 "--verbose"
59 #"--debug"
60 ];
61 datasets = {
62 "losurdo_nvme/home/julm/work" = {
63 use_template = [ "work" ];
64 #recursive = true;
65 };
66 "losurdo_nvme/backup/mermet/var/git" = {
67 use_template = [ "backup_git" ];
68 #recursive = true;
69 };
70 "losurdo_nvme/backup/mermet/var/mail" = {
71 use_template = [ "backup_mail" ];
72 #recursive = true;
73 };
74 "losurdo_nvme/backup/mermet/var/www" = {
75 use_template = [ "backup_www" ];
76 #recursive = true;
77 };
78 "losurdo_nvme/backup/mermet/var/redis" = {
79 use_template = [ "backup_database" ];
80 #recursive = true;
81 };
82 "losurdo_nvme/backup/mermet/home/julm/mail" = {
83 use_template = [ "backup_mail" ];
84 #recursive = true;
85 };
86 };
87 };
88 }