]> Git — Sourcephile - sourcephile-nix.git/blob - machines/losurdo/sanoid.nix
ssh: enable compression
[sourcephile-nix.git] / machines / losurdo / sanoid.nix
1 { pkgs, lib, config, machineName, ... }:
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 "${machineName}/home/julm/work" = {
23 use_template = [ "local" ];
24 daily = 31;
25 };
26 "${machineName}/backup/mermet/var/git" = {
27 use_template = [ "remote" ];
28 daily = 7;
29 };
30 "${machineName}/backup/mermet/var/mail" = {
31 use_template = [ "remote" ];
32 hourly = 12;
33 daily = 7;
34 monthly = 1;
35 };
36 "${machineName}/backup/mermet/var/public-inbox" = {
37 use_template = [ "remote" ];
38 daily = 7;
39 };
40 "${machineName}/backup/mermet/var/redis" = {
41 use_template = [ "remote" ];
42 hourly = 1;
43 daily = 7;
44 monthly = 0;
45 };
46 "${machineName}/backup/mermet/var/www" = {
47 use_template = [ "remote" ];
48 daily = 7;
49 };
50 "${machineName}/backup/mermet/home/julm/mail" = {
51 use_template = [ "remote" ];
52 hourly = 12;
53 daily = 7;
54 };
55 "${machineName}/backup/mermet/home/julm/log" = {
56 use_template = [ "remote" ];
57 hourly = 12;
58 daily = 7;
59 monthly = 1;
60 };
61 };
62 };
63 }