]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/production/sanoid.nix
sanoid: syncoid: crate new datasets for more fine grained backups
[sourcephile-nix.git] / servers / mermet / production / sanoid.nix
1 { pkgs, lib, config, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 mail = {
7 hourly = 12;
8 daily = 7;
9 monthly = 0;
10 yearly = 0;
11 autosnap = true;
12 autoprune = true;
13 settings = {
14 };
15 };
16 www = {
17 hourly = 0;
18 daily = 7;
19 monthly = 0;
20 yearly = 0;
21 autosnap = true;
22 autoprune = true;
23 settings = {
24 };
25 };
26 default = {
27 hourly = 12;
28 daily = 1;
29 monthly = 0;
30 yearly = 0;
31 autosnap = true;
32 autoprune = true;
33 settings = {
34 };
35 };
36 };
37 extraArgs = [
38 "--verbose"
39 #"--debug"
40 ];
41 datasets = {
42 "rpool/var/mail" = {
43 useTemplate = [ "mail" ];
44 #recursive = true;
45 };
46 "rpool/var/www" = {
47 useTemplate = [ "www" ];
48 #recursive = true;
49 };
50 "rpool/var/redis" = {
51 useTemplate = [ "default" ];
52 #recursive = true;
53 };
54 "rpool/home/julm/mail" = {
55 useTemplate = [ "mail" ];
56 #recursive = true;
57 };
58 };
59 };
60 }