backup: report restic progress, allow more open files

This commit is contained in:
Sandro - 2023-05-18 18:36:25 +02:00
parent efd124ac4f
commit fcdb823c5c
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 14 additions and 2 deletions

View File

@ -108,8 +108,20 @@ in
ln -fs {,/home}/root/.ssh/config
'';
systemd.timers = lib.mkIf config.services.postgresqlBackup.enable {
postgresqlBackup.timerConfig.RandomizedDelaySec = "5m";
systemd = {
services = {
restic-backups-server8.serviceConfig = {
Environment = "RESTIC_PROGRESS_FPS=0.016666";
LimitNOFile = 1024*32;
};
restic-backups-offsite.serviceConfig = {
Environment = "RESTIC_PROGRESS_FPS=0.016666";
LimitNOFile = 1024*32;
};
};
timers = lib.mkIf config.services.postgresqlBackup.enable {
postgresqlBackup.timerConfig.RandomizedDelaySec = "5m";
};
};
};
}