# Call a .bat script before and after backup

**URL:** https://forum.duplicati.com/t/call-a-bat-script-before-and-after-backup/4774
**Category:** Uncategorized
**Created:** [September 28, 2018, 2:11am UTC](https://forum.duplicati.com/t/call-a-bat-script-before-and-after-backup/4774 "2018-09-28T02:11:46Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [September 28, 2018, 10:25am UTC](https://forum.duplicati.com/t/call-a-bat-script-before-and-after-backup/4774/3 "2018-09-28T10:25:39Z")

</div>

Thanks for that pointer @saul. Documentation useful to script writers seems scarce.

If reading the example script documentation closely, please note that [some exit code documentation](https://github.com/duplicati/duplicati/commit/494fccd9316da42c0e65ad8527902ced4f7733af#diff-f83ec220518399c268dd34f54eab1e45) from that script is not in beta just yet (only in canary). See [Improvements for –run-script-before/after options](https://forum.duplicati.com/t/improvements-for-run-script-before-after-options/519) for history and some other links to scripting information.

---

_[View the full topic](https://forum.duplicati.com/t/call-a-bat-script-before-and-after-backup/4774)._
