restic/system: Include /root and /etc

This commit is contained in:
Simon Bruder 2021-04-06 10:47:05 +02:00
parent a102f691a6
commit 41f8d468b6
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -26,6 +26,9 @@ let
# Docker (state should be kept somewhere else)
"/var/lib/docker/"
# Static configuration (generated from this repository)
"/etc/static/"
] ++ cfg.extraExcludes;
excludesFile = pkgs.writeText "excludes.txt" (lib.concatStringsSep "\n" excludes);
@ -75,7 +78,9 @@ in
passwordFile = config.krops.secrets.restic-password.path;
s3CredentialsFile = config.krops.secrets.restic-s3.path;
paths = [
"/etc"
"/home"
"/root"
"/srv"
"/var"
] ++ cfg.extraPaths;