Permit to add a high limit on memory usage of the restic executed processes
When the backup is done, restic
can be greedy in memory usage.
https://github.com/restic/restic/issues/979
It should be possible to add a parameter to limit on memory usage. Le restic backup command is launched by cron. And so it is possible to use this command :
systemd-run -p MemoryHigh="2M" /opt/restic/bin/backupwrapper-<label> >> /var/log/restic/<label>.log 2>&1
https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html#MemoryHigh=
Perhaps a goland method exists to limit memory usage.