# Run-script-before/after

**URL:** https://forum.duplicati.com/t/run-script-before-after/7924
**Category:** Support
**Created:** [September 2, 2019, 5:35pm UTC](https://forum.duplicati.com/t/run-script-before-after/7924 "2019-09-02T17:35:52Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![DarkSlave](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/a698b9/32.png) [@DarkSlave](https://forum.duplicati.com/u/DarkSlave)
#### Post date: [November 17, 2019, 7:21pm UTC](https://forum.duplicati.com/t/run-script-before-after/7924/5 "2019-11-17T19:21:06Z")

</div>

> [@DarkSlave](#):
>
> In need of stopping selected Docker containers before running Duplicati backup, as some database files might be open at the time of backup and will end up with corrupt database files.
> 
> I am able to run **./shared/docker-stop.sh** and **./shared/docker-start.sh** under the Duplicati docker console **docker exec -it duplicati /bin/bash** so, the bash is doing what I am expecting.
> 
> Duplicati is showing the following error:  
> The script “/shared/docker-stop.sh” returned with exit code 1  
> _please use the link below to see the verbose error at the bottom of the link_

As Docker containers require paths to be added or allowed, I have that /shared path for ALL my containers; thus the reason why /shared/docker-stop.sh usage. What is your example?

---

_[View the full topic](https://forum.duplicati.com/t/run-script-before-after/7924)._
