only one go proc for restic on vpsfree, to see if it helps with memory usage

This commit is contained in:
Cyryl Płotnicki 2023-05-06 08:27:43 +01:00
parent 296e0a4483
commit 13e70c1757

View file

@ -1,8 +1,5 @@
{
config,
pkgs,
...
}: let
{ config, pkgs, ... }:
let
genericBackupPath = "/var/lib/backups/";
containersBackupPath = "${genericBackupPath}/oci-containers/";
in rec {
@ -31,12 +28,16 @@ in rec {
${pkgs.podman}/bin/podman volume export woodpecker-server-data -o ${containersBackupPath}/woodpecker.tar
'';
timerConfig = { OnCalendar = "hourly"; };
environmentFile = "${config.sops.secrets.restic-backups-b2-environment.path}";
environmentFile =
"${config.sops.secrets.restic-backups-b2-environment.path}";
};
};
systemd.services.restic-backups-b2.serviceConfig = {
systemd.services.restic-backups-b2 = {
environment = { GOMAXPROCS = "1"; };
serviceConfig = {
Nice = 19;
IOSchedulingClass = "idle";
};
};
}