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