Giter Site home page Giter Site logo

Only send on failure about dupreport HOT 1 CLOSED

binaryfire avatar binaryfire commented on July 2, 2024
Only send on failure

from dupreport.

Comments (1)

HandyGuySoftware avatar HandyGuySoftware commented on July 2, 2024

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:

  1. The backup job could have crashed before completing
  2. Duplicati could have failed or crashed without running the backup job
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.