only one go proc for restic on vpsfree, to see if it helps with memory usage
This commit is contained in:
parent
296e0a4483
commit
13e70c1757
1 changed files with 12 additions and 11 deletions
|
@ -1,12 +1,9 @@
|
||||||
{
|
{ config, pkgs, ... }:
|
||||||
config,
|
let
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
genericBackupPath = "/var/lib/backups/";
|
genericBackupPath = "/var/lib/backups/";
|
||||||
containersBackupPath = "${genericBackupPath}/oci-containers/";
|
containersBackupPath = "${genericBackupPath}/oci-containers/";
|
||||||
in rec {
|
in rec {
|
||||||
environment.systemPackages = with pkgs; [restic];
|
environment.systemPackages = with pkgs; [ restic ];
|
||||||
|
|
||||||
sops.secrets."restic-backups-b2-repo-password" = {
|
sops.secrets."restic-backups-b2-repo-password" = {
|
||||||
sopsFile = ./restic.sops.yaml;
|
sopsFile = ./restic.sops.yaml;
|
||||||
|
@ -30,13 +27,17 @@ in rec {
|
||||||
mkdir -p ${containersBackupPath}/
|
mkdir -p ${containersBackupPath}/
|
||||||
${pkgs.podman}/bin/podman volume export woodpecker-server-data -o ${containersBackupPath}/woodpecker.tar
|
${pkgs.podman}/bin/podman volume export woodpecker-server-data -o ${containersBackupPath}/woodpecker.tar
|
||||||
'';
|
'';
|
||||||
timerConfig = {OnCalendar = "hourly";};
|
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;
|
Nice = 19;
|
||||||
IOSchedulingClass = "idle";
|
IOSchedulingClass = "idle";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue