borgmatic-collective / docker-borgmatic

Borgmatic in Docker
GNU General Public License v3.0
313 stars 88 forks source link

Disable frequent execution of borgmatic config validate #327

Closed Waotest closed 1 month ago

Waotest commented 1 month ago

Hello,

I am using a Docker container to run borgmatic for backups. I expected the container to remain completely idle when no backups are in progress. However, I noticed that it consistently uses about 1-2% CPU. This seems to be due to the frequent execution of the command /usr/local/bin/python3 /usr/local/bin/borgmatic config validate.

Is there a way to disable this frequent configuration validation to reduce CPU usage?

Thank you for your help.

Waotest commented 1 month ago

Ah. its a container heealthcheck. It can be disabled in docker compose with healthcheck: disable: true