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