# Valid Values for Script ENV variables?

**URL:** https://forum.duplicati.com/t/valid-values-for-script-env-variables/12058
**Category:** Support
**Created:** [March 26, 2021, 10:24am UTC](https://forum.duplicati.com/t/valid-values-for-script-env-variables/12058 "2021-03-26T10:24:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kahomono](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kahomono](https://forum.duplicati.com/u/Kahomono)
#### Post date: [March 26, 2021, 10:24am UTC](https://forum.duplicati.com/t/valid-values-for-script-env-variables/12058/1 "2021-03-26T10:24:57Z")

</div>

Is there a table of all the possible values these:

```
DUPLICATI__EVENTNAME=
DUPLICATI__OPERATIONNAME=
DUPLICATI__PARSED_RESULT=

```

can take?

I am looking at possibly writing a universal before/after script.

---

<div class="post-metadata">

### Author: ![warwickmm](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/w/5e9695/32.png) [@warwickmm](https://forum.duplicati.com/u/warwickmm)
#### Post date: [March 26, 2021, 11:58pm UTC](https://forum.duplicati.com/t/valid-values-for-script-env-variables/12058/2 "2021-03-26T23:58:35Z")

</div>

This isn’t documented anywhere. Looking at the current (2.0.5.114) code, it looks like

`DUPLICATI__EVENTNAME` can be either `BEFORE` or `AFTER`

`DUPLICATI__OPERATIONNAME` can be one of the following:

> <https://github.com/duplicati/duplicati/blob/beaf03562fdcf4425e962085bdf7175d6a465f49/Duplicati/Library/Main/Enums.cs#L31-L52>

`DUPLICATI__PARSED_RESULT` can be one of the following:

> <https://github.com/duplicati/duplicati/blob/beaf03562fdcf4425e962085bdf7175d6a465f49/Duplicati/Library/Interface/ResultInterfaces.cs#L23-L30>

---

<div class="post-metadata">

### Author: ![Kahomono](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kahomono](https://forum.duplicati.com/u/Kahomono)
#### Post date: [March 27, 2021, 10:33am UTC](https://forum.duplicati.com/t/valid-values-for-script-env-variables/12058/3 "2021-03-27T10:33:47Z")

</div>

Thank you so much, @warwickmm !!
