mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Fix restic backups
This commit is contained in:
parent
9b73a0355d
commit
1f4056f357
1 changed files with 12 additions and 3 deletions
|
@ -3,14 +3,23 @@
|
||||||
systemConfiguration {
|
systemConfiguration {
|
||||||
secrets.resticPassword.file = ./password.age;
|
secrets.resticPassword.file = ./password.age;
|
||||||
|
|
||||||
services.restic.backups.varlib = {
|
services.restic.backups.general = {
|
||||||
passwordFile = config.secrets.resticPassword.path;
|
passwordFile = config.secrets.resticPassword.path;
|
||||||
initialize = true;
|
initialize = true;
|
||||||
|
|
||||||
repository = "sftp:backup@disk:${config.networking.hostName}-varlib";
|
repository = "sftp:backup@disk:${config.networking.hostName}-varlib";
|
||||||
|
|
||||||
paths = [ "/var/lib" ];
|
paths = map (dir: "/var/lib/${dir}") [
|
||||||
exclude = [ "/var/lib/postgresql" ]; # TODO
|
"dkim"
|
||||||
|
"forgejo"
|
||||||
|
"gitea-runner"
|
||||||
|
"grafana"
|
||||||
|
"mail"
|
||||||
|
"matrix-sliding-sync"
|
||||||
|
"matrix-synapse"
|
||||||
|
"nextcloud"
|
||||||
|
"postfix"
|
||||||
|
];
|
||||||
|
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue