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 {
|
||||
secrets.resticPassword.file = ./password.age;
|
||||
|
||||
services.restic.backups.varlib = {
|
||||
services.restic.backups.general = {
|
||||
passwordFile = config.secrets.resticPassword.path;
|
||||
initialize = true;
|
||||
|
||||
repository = "sftp:backup@disk:${config.networking.hostName}-varlib";
|
||||
|
||||
paths = [ "/var/lib" ];
|
||||
exclude = [ "/var/lib/postgresql" ]; # TODO
|
||||
paths = map (dir: "/var/lib/${dir}") [
|
||||
"dkim"
|
||||
"forgejo"
|
||||
"gitea-runner"
|
||||
"grafana"
|
||||
"mail"
|
||||
"matrix-sliding-sync"
|
||||
"matrix-synapse"
|
||||
"nextcloud"
|
||||
"postfix"
|
||||
];
|
||||
|
||||
timerConfig = {
|
||||
OnCalendar = "daily";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue