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:
parent
86a114ac45
commit
0e3858b5e5
4 changed files with 8 additions and 7 deletions
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -50,5 +50,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.depot.restic.paths = [ "/var/lib/josh" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -135,4 +135,9 @@ in {
|
|||
Group = "git";
|
||||
};
|
||||
};
|
||||
|
||||
services.depot.restic = {
|
||||
paths = [ "/var/lib/gerrit" ];
|
||||
exclude = [ "/var/lib/gerrit/tmp" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,5 +16,7 @@
|
|||
forceSSL = true;
|
||||
root = "/var/html/deploys.tvl.fyi";
|
||||
};
|
||||
|
||||
services.depot.restic.paths = [ "/var/html/deploys.tvl.fyi" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue