]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/production/sanoid.nix
sanoid: syncoid: backup my work on losurdo to mermet
[sourcephile-nix.git] / servers / mermet / production / sanoid.nix
1 { pkgs, lib, config, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 database = {
7 hourly = 0;
8 daily = 7;
9 monthly = 0;
10 yearly = 0;
11 autosnap = true;
12 autoprune = true;
13 settings = {
14 };
15 };
16 git = {
17 hourly = 0;
18 daily = 7;
19 monthly = 0;
20 yearly = 0;
21 autosnap = true;
22 autoprune = true;
23 settings = {
24 };
25 };
26 mail = {
27 hourly = 12;
28 daily = 7;
29 monthly = 0;
30 yearly = 0;
31 autosnap = true;
32 autoprune = true;
33 settings = {
34 };
35 };
36 www = {
37 hourly = 0;
38 daily = 7;
39 monthly = 0;
40 yearly = 0;
41 autosnap = true;
42 autoprune = true;
43 settings = {
44 };
45 };
46 };
47 extraArgs = [
48 "--verbose"
49 #"--debug"
50 ];
51 datasets = {
52 "rpool/var/git" = {
53 use_template = [ "git" ];
54 #recursive = true;
55 };
56 "rpool/var/mail" = {
57 use_template = [ "mail" ];
58 #recursive = true;
59 };
60 "rpool/var/www" = {
61 use_template = [ "www" ];
62 #recursive = true;
63 };
64 "rpool/var/redis" = {
65 use_template = [ "database" ];
66 #recursive = true;
67 };
68 "rpool/home/julm/mail" = {
69 use_template = [ "mail" ];
70 #recursive = true;
71 };
72 };
73 };
74 }