blob: 46f06316ea710f60d6761bba7aaecdc4bfd8891d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
services.restic.backups = {
periodic = {
initialize = true;
environmentFile = "/root/.config/restic/env";
repositoryFile = "/root/.config/restic/repository";
passwordFile = "/root/.config/restic/password";
timerConfig = {
OnCalendar = "0/4:00";
};
exclude = [
"lost+found"
];
paths = [
"/home"
"/root"
];
pruneOpts = [
"--keep-hourly 6"
"--keep-daily 7"
"--keep-weekly 2"
"--keep-monthly 12"
"--keep-yearly 1"
];
};
};
}
|