# How to exclude a script for other backups?

**URL:** <https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581>\
**Category:** Features\
**Created:** [March 24, 2024, 3:11pm UTC](https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581 "2024-03-24T15:11:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![djeear](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@djeear](https://forum.duplicati.com/u/djeear)\
**Post date:** [March 24, 2024, 3:11pm UTC](https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581/1 "2024-03-24T15:11:43Z")

</div>

For a particular backup, I need to wake up my NAS with a script. I entered the script in the general settings. For other backups, I do not need this script. How can I exclude that script in other backups?

---

<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:** [March 24, 2024, 5:34pm UTC](https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581/2 "2024-03-24T17:34:45Z")

</div>

Welcome to the forum @djeear

Why not put that script in the particular backup that needs it, instead of on all the backups?  
Configuring some harmless script for each other backup could probably be done, but why?

---

<div class="post-metadata">

**Author:** ![djeear](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@djeear](https://forum.duplicati.com/u/djeear)\
**Post date:** [March 25, 2024, 9:11am UTC](https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581/3 "2024-03-25T09:11:55Z")

</div>

You must enter an advanced option by specifying it in the general settings. Then you need to neutralize the advanced option for each specific backup that does not need this advanced option. I did this by unfolding the details of the backup and going to the command line at “advanced” to neutralize the advanced option there. This was the wrong route. I need to go to “edit” and there I can neutralize the option by entering “” and clicking OK so the change is permanent. The problem is solved.

---

<div class="post-metadata">

**Author:** ![djeear](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@djeear](https://forum.duplicati.com/u/djeear)\
**Post date:** [March 25, 2024, 9:20am UTC](https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581/4 "2024-03-25T09:20:17Z")

</div>

To reach my NAS, I need to assign a drive letter for Duplicate to the folder where I want to store my backup on the NAS. Duplicate then can’t just find the folder despite the drive-letter. I discovered, that if I went to this folder via the file explorer, then Duplicate can find the folder. All my little script does is issue a change directory command to the folder where the backup should go. This solved the problem.

---

<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:** [March 25, 2024, 11:38am UTC](https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581/5 "2024-03-25T11:38:19Z")

</div>

> [@djeear](#):
>
> You must enter an advanced option by specifying it in the general settings.

Why? Each job Options screen has Advanced options. Wasn’t that your edit?

 ![image](https://forum.duplicati.com/uploads/default/original/2X/2/2e1820a621cda9cc6087f2c1cad8b27d45007d6b.png)

> [@djeear](#):
>
> I need to go to “edit” and there I can neutralize the option by entering “” and clicking OK so the change is permanent.

I’m glad it worked. I tried a similar but not identical trick. Got an error at backup.

Regardless, it’s your setup, so if you’re happy and good with neutralizing, great.

---

<div class="post-metadata">

**Author:** ![Krisco](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/k/b77776/32.png) [@Krisco](https://forum.duplicati.com/u/Krisco)\
**Post date:** [October 31, 2024, 7:24pm UTC](https://forum.duplicati.com/t/how-to-exclude-a-script-for-other-backups/17581/6 "2024-10-31T19:24:17Z")

</div>

You might want to set up your script to run only for that specific backup job. If your backup software has the option, you could add a condition to check if it’s the job that needs the NAS to wake up. I’ve done something similar before, where I created a separate profile for backups that required extra steps like waking up my NAS. It helps keep things organized and ensures that the script doesn’t interfere with other backups.
