Hello gentlewomen and gentlemen,
big thanks for this cool application. I have one problem I am not able to track down on my own currently:
I am using a pre-script that collects data to be backed up from various locations before the actual backup starts. This is stuff like dumping a MySQL database to files, cloning GitHub repos etc.
Every now and then the duplicati backup job issues some warnings like this:
Warnings: [
2020-05-03 17:15:27 +02 - [Warning-Duplicati.Library.Modules.Builtin.RunScript-StdErrorNotEmpty]: The script "C:\\MyPath\\duplicati_pre_post.cmd" reported error messages: Systemfehler 5 aufgetreten.
Zugriff verweigert
]
This is “System error 5 occured - Access denied”. So as the messages state this happens either in my pre or in my post script. But I have no idea which actual line or command in my script fails there.
My script prints quite some status log lines using a regular “echo” command so if I could just see the stdout (or also stderr) from my script then I could probably get an idea what is going on.
I could not reproduce the error yet running the script manually.
I tried several options like log-file, run-script-log-level, log-file-log-level. I configured a separate log file using “log-file” and also I looked into the sqlite-DB accossiated with my backup job. I still could not find any output of my pre-post-script.
So, please, is there a way to get the full ouput of the pre-post-scripts including stdout/stderror? Or is there another best practice on how to debug those scripts?