Comments (1)
Hi @binaryfire , thanks for the suggestion.
I have thought several times about adding this very feature, but have never done so for the following reason. Enabling such a feature would mean that you would only get email if one (or more) of your jobs fail. However, not getting an email would not be a guarantee that everything was working properly. For example:
- The backup job could have crashed before completing
- Duplicati could have failed or crashed without running the backup job
- dupReport could have failed or crashed before completing
All of these would mean you would not receive an email about a failed backup job, but that would not be a good thing. You would never know that something was wrong with your system(s). For this reason, dupReport always sends an email, even if everything worked properly. Not receiving an email from dupReport is a sign that something is wrong and needs to be checked out.
However, there is a way to get close to what you are looking for. There is an option in the [report] section of the .rc file:
failedonly = false
If this is set to "true" it instructs dupReport to only include backup jobs in the report that have a "warning" or "failed" result status. So, you would still get an emailed report, but it would be a short one that only included failed jobs. There is a sample report section in the dupreport.rc.EXAMPLE file called [failedonly] that does just that.
This would allow you to get the best of both worlds: the email letting you know that dupReport ran successfully but the report would show only failed jobs.
I hope this helps. Thanks for using dupReport.
HG
from dupreport.
Related Issues (20)
- Add OS Name & Version to Log File HOT 1
- dupReport.py installer changes folder name HOT 2
- Error crash when target destination is unavailable HOT 1
- smtplib.SMTPDataError: (501, b'Syntax error - line too long') HOT 18
- Typo in [report] section HOT 1
- Change description of -verbose command line option HOT 1
- Program crashes when can't connect to SMTP server HOT 1
- Fix Typos in docs/WhatIsDupreport.md HOT 1
- Indicate Warning or Error in subject line of the mail report HOT 16
- Parsing failures HOT 4
- Enabling "Less secure apps" is required for Gmail access HOT 2
- "Nonetype has no attribute groups" - dupreport crash HOT 7
- Add an Ignore option to the Source-Destination Section of the .RC file HOT 1
- Need more flexibility in defining Subject Line and S-D regex in .rc file (Was: RegEx suddenly does not match anymore) HOT 16
- dupReport is ignoring Backup Warning Threshold HOT 1
- Typo in the docs for the-b option HOT 1
- Syslog output crashes ELK Logstash 8.1.2 HOT 1
- Ignored S/D Pairs still show up in LastSeen Report
- Error in SafeConfigParser HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dupreport.