]> Git — Sourcephile - julm/julm-nix.git/blob - hosts/aubergine/backup.nix
julm: blackberry: mpv: limit cache-secs
[julm/julm-nix.git] / hosts / aubergine / backup.nix
1 { hostName, ... }:
2 with builtins;
3 {
4 services.sanoid = {
5 enable = true;
6 extraArgs = [ "--verbose" ];
7 datasets = {
8 "${hostName}/home" = {
9 autosnap = true;
10 autoprune = true;
11 hourly = 12;
12 daily = 3;
13 monthly = 0;
14 yearly = 0;
15 recursive = true;
16 };
17 "${hostName}/var" = {
18 autosnap = true;
19 autoprune = true;
20 hourly = 12;
21 daily = 1;
22 monthly = 0;
23 yearly = 0;
24 recursive = true;
25 };
26 "off2/julm/perso" = {
27 autosnap = true;
28 autoprune = true;
29 frequently = 0;
30 hourly = 1;
31 daily = 7;
32 monthly = 0;
33 yearly = 0;
34 recursive = true;
35 };
36 "off2/julm/public" = {
37 autosnap = true;
38 autoprune = true;
39 frequently = 0;
40 hourly = 1;
41 daily = 7;
42 monthly = 0;
43 yearly = 0;
44 recursive = true;
45 };
46 "off2/julm/virt" = {
47 autosnap = true;
48 autoprune = true;
49 frequently = 0;
50 hourly = 1;
51 daily = 2;
52 monthly = 2;
53 yearly = 0;
54 recursive = true;
55 };
56 "off2/julm/backup/das1/julm/perso" = {
57 autosnap = false;
58 autoprune = true;
59 frequently = 1;
60 hourly = 12;
61 daily = 7;
62 monthly = 3;
63 yearly = 0;
64 recursive = true;
65 };
66 "off2/julm/backup/das1/julm/public" = {
67 autosnap = false;
68 autoprune = true;
69 frequently = 1;
70 hourly = 0;
71 daily = 1;
72 monthly = 3;
73 yearly = 0;
74 recursive = true;
75 };
76 "off2/julm/backup/losurdo" = {
77 autosnap = false;
78 autoprune = true;
79 frequently = 1;
80 hourly = 1;
81 daily = 7;
82 monthly = 1;
83 yearly = 0;
84 recursive = true;
85 };
86 "off2/julm/backup/mermet" = {
87 autosnap = false;
88 autoprune = true;
89 frequently = 1;
90 hourly = 1;
91 daily = 7;
92 monthly = 1;
93 yearly = 0;
94 recursive = true;
95 };
96 "off2/julm/backup/oignon" = {
97 autosnap = false;
98 autoprune = true;
99 hourly = 0;
100 daily = 7;
101 monthly = 3;
102 yearly = 0;
103 recursive = true;
104 };
105 };
106 };
107 }