# Folder not excluded

**URL:** <https://forum.duplicati.com/t/folder-not-excluded/22346>\
**Category:** Support\
**Created:** [April 30, 2026, 12:50pm UTC](https://forum.duplicati.com/t/folder-not-excluded/22346 "2026-04-30T12:50:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![smallla](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@smallla](https://forum.duplicati.com/u/smallla)\
**Post date:** [April 30, 2026, 12:50pm UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/1 "2026-04-30T12:50:33Z")

</div>

Hi!  
I’ve got a problem with my backup config : even if I unselect it, it is included in the backup process.  
I’ve got this in the filters section of the JSON:

```plaintext
  {
    "Order": 1,
    "Include": false,
    "Expression": "%HOME%/::::::::::::::: excluded/"
  },

```

But it’s backed up.  
Any hint please?

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [May 1, 2026, 10:05am UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/2 "2026-05-01T10:05:35Z")

</div>

Hi @smallla, welcome to the forum 👋

> [@smallla](#):
>
> I’ve got this in the filters section of the JSON:

I assume it is redacted in some way. Can you try to manually replace `%HOME%` with the real path in case this is causing issues?, so it becomes something like:

```plaintext
"Expression" : "/home/user/:::excluded/"

```

---

<div class="post-metadata">

**Author:** ![smallla](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@smallla](https://forum.duplicati.com/u/smallla)\
**Post date:** [May 1, 2026, 10:21am UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/3 "2026-05-01T10:21:44Z")

</div>

I just tried, but when I import the file, I have to go through the process of validating each step again, and I think it overwrites my changes, so… nothing changes, this folder is still backed up.

---

<div class="post-metadata">

**Author:** ![smallla](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@smallla](https://forum.duplicati.com/u/smallla)\
**Post date:** [May 1, 2026, 2:41pm UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/4 "2026-05-01T14:41:51Z")

</div>

If I rename this folder to “excluded” (without the dots and the space) and I unselect it in the config, everything is working as expected.  
So it’s a problem with the name. Some caracters are not escaped properly, I presume.

---

<div class="post-metadata">

**Author:** ![smallla](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@smallla](https://forum.duplicati.com/u/smallla)\
**Post date:** [July 16, 2026, 2:38pm UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/5 "2026-07-16T14:38:25Z")

</div>

So, no one cares about this bug?

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [July 18, 2026, 6:35am UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/6 "2026-07-18T06:35:37Z")

</div>

> [@smallla](#):
>
> I just tried, but when I import the file,

Not sure why you need to import anything to edit the filters?

> [@smallla](#):
>
> If I rename this folder to “excluded” (without the dots and the space) and I unselect it in the config, everything is working as expected.  
> So it’s a problem with the name. Some caracters are not escaped properly, I presume.

I realize the actual name may be sensitive, but can you give an example folder name where excludes do not work?

---

<div class="post-metadata">

**Author:** ![smallla](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@smallla](https://forum.duplicati.com/u/smallla)\
**Post date:** [July 18, 2026, 5:11pm UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/7 "2026-07-18T17:11:53Z")

</div>

The one I specified here:

> [@Folder not excluded](https://forum.duplicati.com/t/folder-not-excluded/22346/2):
>
> Hi @smallla, welcome to the forum waving_hand I assume it is redacted in some way. Can you try to manually replace %HOME% with the real path in case this is causing issues?, so it becomes something like: "Expression" : "/home/user/:::excluded/"

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [July 19, 2026, 9:23pm UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/8 "2026-07-19T21:23:23Z")

</div>

> [@smallla](#):
>
> Some caracters are not escaped properly, I presume.

I found the issue. Generally the `:` character is used as a path separator. So you can have something like:

```plaintext
export PATH=/tmp:/home/user:/bin/

```

This means that for some tools you cannot use them if you have a `:` in the folder name, so generally it is not a good idea to do so, even if it is technically possible.

For Duplicati, this is a similar issue where the filters can be passed with “multiple in one string”, and this is split on the `:` separator. I will see if we can work around it in some places, because not all inputs rely on multi-string filters, but generally I would recommend not using `:` in file or folder names.

---

<div class="post-metadata">

**Author:** ![smallla](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@smallla](https://forum.duplicati.com/u/smallla)\
**Post date:** [July 20, 2026, 6:43am UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/9 "2026-07-20T06:43:09Z")

</div>

Thanks for your research!  
If it’s possible to use “:” in filenames, people will use it, even if every dev doesn’t recommend it, so better fix it, don’t you think?

---

<div class="post-metadata">

**Author:** ![JamBalaya56562](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jambalaya56562/32/12993_2.png) [@JamBalaya56562](https://forum.duplicati.com/u/JamBalaya56562)\
**Post date:** [December 2, 2026, 10:15am UTC](https://forum.duplicati.com/t/folder-not-excluded/22346/10 "2026-12-02T10:15:16Z")

</div>

kenkendk fixed this in 2.4.0.0 ([Improve filter parsing · duplicati/duplicati@406903d · GitHub](https://github.com/duplicati/duplicati/commit/406903dddf9d3a985f8f7e0744f9b92f3199e4e8)): when a job runs from the server, each filter is kept as one entry and is no longer split at `:`, so a folder with `:` in its name can be excluded. Filters given on the command line or in scripts can still hold several filters joined with `:`, so those still cannot target such a folder.
