How to Add Log Message in APP online

Hello!

I run a script before the backup and I want to generate some messages when necessary on the duplicati online APP screen, as shown in the image below, how do I register messages there?

[image]

Hi @dbo.oliveira welcome to the forum!

The log messages are collected from inside Duplicati, so it is not directly possible to add messages to the log from a script.

If you have a good use-case for it, I would love to hear it, and maybe we can add the option somehow.

Hello, thank you for the welcome!

It turns out that I use the script executed before the backup to generate backups of the Databases before the Duplicat backup is executed so that the SQL is also part of the saved files. However, errors may occur in this process, but even with errors I want the other available files to be saved, and through the monitoring panel I would like to have this information that the backup was carried out but a problem occurred in a certain process.

I believe it is a very useful resource, including marking the backup with an alert that attention should be paid to a situation in this backup.

Thank you for your attention.

might be one method, but I forget how ugly it is. It might make a warning, which might fit – here.

You can test it and see what you think.

I had forgotten about that! Yes, it will check if stderr is empty, and if not write a warning message to the log. This should make it all the way into the reports send to monitoring.

I have added an issue for implementing a better way to report log messages.