blob: d56f7fef10d3c43b7be3594a17c32640c6c51eb9 (
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
|
{ config, ... }:
{
systemd.services.backups-maintenance-fcuny = {
Unit = {
Description = "maintenance for fcuny backups";
Documentation = "man:restic(1)";
};
Service = {
Type = "oneshot";
User = "restic";
ReadWritePaths = "/data/slow/backups/users/fcuny";
Environment = [
"RESTIC_REPOSITORY=/data/slow/backups/users/fcuny"
"RESTIC_PASSWORD_FILE="
];
ExecStart = [
"${pkgs.restic}/bin/restic --verbose rebuild-index"
"${pkgs.restic}/bin/restic --verbose prune"
"${pkgs.restic}/bin/restic --verbose forget --prune --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 3"
];
};
};
}
|