# Help with filters

**URL:** https://forum.duplicati.com/t/help-with-filters/2225
**Category:** Support
**Created:** [January 25, 2018, 11:05am UTC](https://forum.duplicati.com/t/help-with-filters/2225 "2018-01-25T11:05:06Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [January 26, 2018, 1:31am UTC](https://forum.duplicati.com/t/help-with-filters/2225/2 "2018-01-26T01:31:15Z")

</div>

Good call on reading through the Filters link - unfortunately, working with filters can be complicated so I fully understand your confusion.

> [@thommyX](#):
>
> I tried the variations with test-filters but folder1 was never excluded.

I believe there is a bug in the `test-filters` command via the GUI (but possibly not the CLI), but I don’t know that it has ever been confirmed:

> [@Exclude filters not working](https://forum.duplicati.com/t/exclude-filters-not-working/582/11):
>
> mohak, yes - the test-filters command including items that the GUI says should be excluded is similar to what I commented on in another topic However in reviewing my actual backups I’m not finding any of the items that I excluded - so it looks like the filters during backups are working as expected and that it’s likely just a bug with the test-filters command that we’re seeing. Note, however, that this has not yet been confirmed. If you have the time / ability I’d suggest doing a backup t…

> [@thommyX](#):
>
> How can I exclude a top-level directory without excluding the same directory in subdirectories?

Are you backing up a UNC connection or just not sharing drive letters (C:) in your example top-level folders?

If it’s a UNC connection, then the problem is likely that the UNC starts with a slash so ends up including matching subfolders since they also start with a slash.

---

_[View the full topic](https://forum.duplicati.com/t/help-with-filters/2225)._
