You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this role to configure backup for hosts in a Proxmox cluster. Proxmox is debian based and includes postfix out of the box to send cron notifications.
I want to leave cron notifications enabled generally, but for the borgmatic job I want to disable them (as I have healthchecks alerting me to failed runs). The proper way to do this is to either append >/dev/null 2>&1 to the command so no output is generated, or pass --verbosity=-1 to borgmatic, or to define MAILTO="" in the crontab file.
The first and second is more portable, while the third might depend on the cron implementation.
Passing the --verbosity=-1 flag will supress output in the happy-path, but if there is an error it still produces output.
Personally, I'd rather no emails be sent and instead rely on healthchecks to notify me.
I propose borgmatic_cron_supress_output boolean variable to conditionally append the /dev/null redirect to the command.
The text was updated successfully, but these errors were encountered:
I'm using this role to configure backup for hosts in a Proxmox cluster. Proxmox is debian based and includes postfix out of the box to send cron notifications.
I want to leave cron notifications enabled generally, but for the borgmatic job I want to disable them (as I have healthchecks alerting me to failed runs). The proper way to do this is to either append
>/dev/null 2>&1
to the command so no output is generated, or pass--verbosity=-1
to borgmatic, or to defineMAILTO=""
in the crontab file.The first and second is more portable, while the third might depend on the cron implementation.
Passing the
--verbosity=-1
flag will supress output in the happy-path, but if there is an error it still produces output.Personally, I'd rather no emails be sent and instead rely on healthchecks to notify me.
I propose
borgmatic_cron_supress_output
boolean variable to conditionally append the /dev/null redirect to the command.The text was updated successfully, but these errors were encountered: