Email job status option #17
tim-shortons
started this conversation in
Ideas
Replies: 3 comments 9 replies
-
|
Give me a week and I'll add support for emailing the log file. I'd use msmtp as most Linux distros include msmtp and I'm already familiar with using it in bash scripts to send emails. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Do you want to try this version https://github.com/007revad/Linux_Plex_Backup/releases/tag/v1.2.7-RC The readme for v1.2.7-RC is here https://github.com/007revad/Linux_Plex_Backup/tree/develop |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If possible, an option to send an email upon completion with the job status.
I am handling this in a rather inelegant way in crontab for the time being
/root/scripts/plex_backup/linux_plex_backup.sh; newest=$(ls -Art /share/plex_backup/*.log | tail -n 1); mutt -s "Plex Backup Complete" notreal@fake.com < "$newest"Initially I had a simple mutt output in crontab
/root/scripts/plex_backup/linux_plex_backup.sh | mutt -s "Plex Backup Complete" notreal@fake.comUnfortunately, cron will try and output the entire job even if you have logAll=no and the output is too large to email, in my case 90MB. Thus I had to retrieve the contents of the actual log file instead or relying on the job output. Then I ran into the issue of retrieving the correct log file contents, hence the newest logic.
I am going to take a stab at adding an email option to the script, but I am no scripter/programmer.
Beta Was this translation helpful? Give feedback.
All reactions