]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/losurdo/sanoid.nix
transmission: stop completely during daytime
[sourcephile-nix.git] / hosts / losurdo / sanoid.nix
1 { pkgs, lib, config, hostName, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 local = {
7 autosnap = true;
8 autoprune = true;
9 monthly = 3;
10 };
11 remote = {
12 autosnap = false;
13 autoprune = true;
14 monthly = 3;
15 };
16 };
17 extraArgs = [
18 "--verbose"
19 #"--debug"
20 ];
21 datasets = {
22 "${hostName}/home/julm/work" = {
23 use_template = [ "local" ];
24 daily = 31;
25 };
26 "${hostName}/backup/mermet/var/git" = {
27 use_template = [ "remote" ];
28 daily = 7;
29 };
30 "${hostName}/backup/mermet/var/mail" = {
31 use_template = [ "remote" ];
32 hourly = 12;
33 daily = 7;
34 monthly = 1;
35 };
36 "${hostName}/backup/mermet/var/public-inbox" = {
37 use_template = [ "remote" ];
38 daily = 7;
39 };
40 "${hostName}/backup/mermet/var/redis" = {
41 use_template = [ "remote" ];
42 hourly = 1;
43 daily = 7;
44 monthly = 0;
45 };
46 "${hostName}/backup/mermet/var/www" = {
47 use_template = [ "remote" ];
48 daily = 7;
49 };
50 "${hostName}/backup/mermet/home/julm/mail" = {
51 use_template = [ "remote" ];
52 hourly = 12;
53 daily = 7;
54 };
55 "${hostName}/backup/mermet/home/julm/log" = {
56 use_template = [ "remote" ];
57 hourly = 12;
58 daily = 7;
59 monthly = 1;
60 };
61 };
62 };
63 }