Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAILTO for backup cron errors #149

Open
jbothma opened this issue Apr 27, 2020 · 0 comments
Open

MAILTO for backup cron errors #149

jbothma opened this issue Apr 27, 2020 · 0 comments

Comments

@jbothma
Copy link

jbothma commented Apr 27, 2020

Description of problem

If an error occurs when the backup cron job runs, I would like to be informed so that I know backups are not working.

Expected Results

It would be nice to be able to set the MAILTO variable in the cron job so that error output from the job gets mailed to that email address if a message transfer agent (MTA) is configured on the system.

Right now, this creates a crontab file per instance in /etc/cron.d/dokku-postgres-dbname

I think you can add MAILTO to the top of that file to mail someone with output from the script.

As a workaround, you can possibly have a system-wide address in /etc/default/cron but sometimes specific people are responsible for specific apps

@josegonzalez josegonzalez transferred this issue from dokku/dokku-postgres Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants