]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/production/sanoid.nix
syncoid: sanoid: ajout d'autres sauvegardes
[sourcephile-nix.git] / servers / mermet / production / sanoid.nix
1 { pkgs, lib, config, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 git = {
7 hourly = 0;
8 daily = 7;
9 monthly = 0;
10 yearly = 0;
11 autosnap = true;
12 autoprune = true;
13 settings = {
14 };
15 };
16 mail = {
17 hourly = 12;
18 daily = 7;
19 monthly = 0;
20 yearly = 0;
21 autosnap = true;
22 autoprune = true;
23 settings = {
24 };
25 };
26 www = {
27 hourly = 0;
28 daily = 7;
29 monthly = 0;
30 yearly = 0;
31 autosnap = true;
32 autoprune = true;
33 settings = {
34 };
35 };
36 default = {
37 hourly = 12;
38 daily = 1;
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 useTemplate = [ "git" ];
54 #recursive = true;
55 };
56 "rpool/var/mail" = {
57 useTemplate = [ "mail" ];
58 #recursive = true;
59 };
60 "rpool/var/www" = {
61 useTemplate = [ "www" ];
62 #recursive = true;
63 };
64 "rpool/var/redis" = {
65 useTemplate = [ "default" ];
66 #recursive = true;
67 };
68 "rpool/home/julm/mail" = {
69 useTemplate = [ "mail" ];
70 #recursive = true;
71 };
72 };
73 };
74 }