diff --git a/templates/restic-backup.service.j2 b/templates/restic-backup.service.j2 index 48301f3..9d53831 100644 --- a/templates/restic-backup.service.j2 +++ b/templates/restic-backup.service.j2 @@ -4,6 +4,9 @@ Description=Restic backup [Service] Type=oneshot User={{ restic_user }} + +CPUQuota={{ 25 * ansible_processor_vcpus }}% + {% if restic_ssh_enabled %} Environment="RESTIC_REPOSITORY=sftp:{{ restic_ssh_host }}:{{ restic_repository_name }}" {% else %}