From 4d21e0f4c1d31625e08313664bbef0128614a6f3 Mon Sep 17 00:00:00 2001 From: Felix Andersen Date: Wed, 3 Jan 2024 18:32:15 +0000 Subject: [PATCH] call restic backup script with nice --- templates/restic.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/restic.service.j2 b/templates/restic.service.j2 index 924381b..b47d276 100644 --- a/templates/restic.service.j2 +++ b/templates/restic.service.j2 @@ -10,6 +10,6 @@ Type=oneshot {% if item.lvm is defined %} PrivateMounts=on {% endif %} -ExecStart={{ restic_script_dir }}/backup-{{ item.name }}.sh +ExecStart=/usr/bin/nice {{ restic_script_dir }}/backup-{{ item.name }}.sh TimeoutStartSec=0 Environment="CRON=true"