# After run script - log files missing

**URL:** <https://forum.duplicati.com/t/after-run-script-log-files-missing/21568>\
**Category:** Uncategorized\
**Created:** [November 7, 2025, 10:00am UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568 "2025-11-07T10:00:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaphod1988-2](https://forum.duplicati.com/user_avatar/forum.duplicati.com/zaphod1988-2/32/11916_2.png) [@zaphod1988-2](https://forum.duplicati.com/u/zaphod1988-2)\
**Post date:** [November 7, 2025, 10:00am UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568/1 "2025-11-07T10:00:59Z")

</div>

Hello all,

I am running a bash script after my backup jobs. It notifies me via [ntfy.sh](http://ntfy.sh) (resp. my own instance of it). What I haven’t got yet is how to pass a log of each job to my curl script to attach it to my POST or to inspect it in bash.

I already tried using DUPLICATI\_\_RESULTFILE and got something like _/tmp/dup-ec8c287f-9dd4-4d18-9a00-4f53c81074d7_, but the file given by the variable is never there (and I looked for it in the docker container of course).

I don’t think it matters but I am running Duplicati as a docker container on an Ubuntu host.

Any ideas?

---

<div class="post-metadata">

**Author:** ![zaphod1988-2](https://forum.duplicati.com/user_avatar/forum.duplicati.com/zaphod1988-2/32/11916_2.png) [@zaphod1988-2](https://forum.duplicati.com/u/zaphod1988-2)\
**Post date:** [November 10, 2025, 8:45am UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568/2 "2025-11-10T08:45:44Z")

</div>

If someone needs it: I found a solution or a workaround by using Duplistatus on the same docker host and network:  
[https://hub.docker.com/r/wsjbr/duplistatus](https://hub.docker.com/r/wsjbr/duplistatus)

> [@rocket New Tool Release: duplistatus – A Self-Hosted Duplicati Dashboard with API Support](https://forum.duplicati.com/t/new-tool-release-duplistatus-a-self-hosted-duplicati-dashboard-with-api-support/20731/6):
>
> I’m not sure the machine stats are coping very well with multiple back jobs on a single machine:

It has built-in ntfy support and I don’t have to fiddle around with bash scripts anymore.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [November 10, 2025, 12:28pm UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568/3 "2025-11-10T12:28:27Z")

</div>

Welcome to the forum @zaphod1988-2

> [@zaphod1988-2](#):
>
> I don’t have to fiddle around with bash scripts anymore.

I’m glad you found a solution, and my comment is script-oriented, but when and how is this:

> [@zaphod1988-2](#):
>
> (and I looked for it in the docker container of course).

I don’t use Docker, but I didn’t think `run-script-after` could look anywhere but in container.  
If you’re looking manually, you’re probably too late but how do you know file name to look for?

Regardless, Windows `run-script-after` gives the expected result. A result file is temporary:

```plaintext
echo %DUPLICATI__RESULTFILE% > C:\tmp\resultfile_name.txt
copy %DUPLICATI__RESULTFILE% C:\tmp\resultfile.txt

```

---

<div class="post-metadata">

**Author:** ![zaphod1988-2](https://forum.duplicati.com/user_avatar/forum.duplicati.com/zaphod1988-2/32/11916_2.png) [@zaphod1988-2](https://forum.duplicati.com/u/zaphod1988-2)\
**Post date:** [November 10, 2025, 1:01pm UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568/4 "2025-11-10T13:01:53Z")

</div>

Hi, the variable DUPLICATI\_\_RESULTFILE contains the file path for the log file AFAIK. If I run my script, a path like /_tmp/dup-ec8c287f-9dd4-4d18-9a00-4f53c81074d7_ is given, but the file isn’t there in the container’s /tmp directory. As the whole duplicati application is running in the docker container, the file can certainly not be created in the host’s /tmp (where I looked for it nevertheless just to be sure). Copying it in the script also failed as the file was not found, I tried that already.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [November 10, 2025, 1:22pm UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568/5 "2025-11-10T13:22:38Z")

</div>

> [@zaphod1988-2](#):
>
> If I run my script,

You’re still not saying when and how. Is this a manual run or a run by `run-script-after`?  
Environment variables provided to `run-script-after` script are meant for use in that run.

> [@zaphod1988-2](#):
>
> Copying it in the script also failed as the file was not found, I tried that already.

If you can confirm that this was [run-script-after option](https://docs.duplicati.com/community-docs/community-docs-advanced-options#run-script-after), I guess I can try Linux but not Docker.

---

<div class="post-metadata">

**Author:** ![zaphod1988-2](https://forum.duplicati.com/user_avatar/forum.duplicati.com/zaphod1988-2/32/11916_2.png) [@zaphod1988-2](https://forum.duplicati.com/u/zaphod1988-2)\
**Post date:** [November 11, 2025, 7:01am UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568/6 "2025-11-11T07:01:39Z")

</div>

Ah sorry. Yes, it is/was run by `run-script-after`.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [November 11, 2025, 12:48pm UTC](https://forum.duplicati.com/t/after-run-script-log-files-missing/21568/7 "2025-11-11T12:48:52Z")

</div>

Tested equivalent script on 2.2.0.0 on Linux Mint 21.3 (a Ubuntu derivative).  
It works. My `cp` during script got results file. Afterwards, results file is gone.

If I break the script by asking to copy a known missing file, I get the warning:

> Warning while running test1  
> 2025-11-11 07:33:13 -05 - [Warning-Duplicati.Library.Modules.Builtin.RunScript-StdErrorNotEmpty]: The script “/tmp/resultfile.bash” reported error messages: cp: cannot stat ‘/truly\_missing’: No such file or directory

On old UI, this is a yellow popup. On new UI, open Notifications in bottom right.  
As message describes, this is just reporting whatever stderr got, here from `cp`.

Is this the style of warning you saw, except with plausible result file /tmp/dup\_\*?

What Docker image is used here? LinuxServer chose an odd temp file location.
