refactor(whitby): Move restic path configuration into modules

This lets each service declare their backup paths together with the
configuration for the service, which is a lot more sensible than what
we had before.

Fixes b/147

Change-Id: If76fe62639f4cc0e6fbb63a2959d584479d8f0fb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3583
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-09-18 17:44:40 +03:00 committed by tazjin
parent 86a114ac45
commit 0e3858b5e5
4 changed files with 8 additions and 7 deletions

View file

@ -331,16 +331,9 @@ in {
enable = true;
paths = [
"/var/backup/postgresql"
"/var/html/deploys.tvl.fyi"
"/var/lib/gerrit"
"/var/lib/grafana"
"/var/lib/josh"
"/var/lib/znc"
];
exclude = [
"/var/lib/gerrit/tmp"
];
};
};

View file

@ -50,5 +50,6 @@ in {
};
};
services.depot.restic.paths = [ "/var/lib/josh" ];
};
}

View file

@ -135,4 +135,9 @@ in {
Group = "git";
};
};
services.depot.restic = {
paths = [ "/var/lib/gerrit" ];
exclude = [ "/var/lib/gerrit/tmp" ];
};
}

View file

@ -16,5 +16,7 @@
forceSSL = true;
root = "/var/html/deploys.tvl.fyi";
};
services.depot.restic.paths = [ "/var/html/deploys.tvl.fyi" ];
};
}