# Filtering (Basic or Advanced)

Allows users to easily manage and organize their data movement workflows by filtering files based on specific criteria.  Handle different time - date threshold in the filter module such as : creation date, last access date, ...

Two different types of filtering are available:

* basic mode
* Advanced mode: it provides an embedded scripting editor.

### Based on File Name

The file name and path can be used in the filtering module.

<figure><img src="https://1946775891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgzbGsZqZH8Ro8zxRYgwn%2Fuploads%2FtISOJubZeH5oVfXCThFS%2Fimage.png?alt=media&#x26;token=bfceeaad-23e1-4a71-87d7-1697439e3bb4" alt=""><figcaption></figcaption></figure>

### Based on File Extension

<figure><img src="https://1946775891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgzbGsZqZH8Ro8zxRYgwn%2Fuploads%2FzwdVoYFyCHtf8mPRGpv1%2Fimage.png?alt=media&#x26;token=10f89d57-258e-446d-9758-5823d6d8f4b9" alt=""><figcaption></figcaption></figure>

### Based on File Size

<figure><img src="https://1946775891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgzbGsZqZH8Ro8zxRYgwn%2Fuploads%2F3TAUiI2KdpS5VOa2DtG4%2Fimage.png?alt=media&#x26;token=fd8891d9-de8c-4df7-8d94-b254422f8ec1" alt=""><figcaption></figcaption></figure>

### Based on Boolean Operators

&#x20;Boolean operators are available. Default operator is inclusive OR, different operators can be set.

<figure><img src="https://1946775891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgzbGsZqZH8Ro8zxRYgwn%2Fuploads%2FmMRTOi1hnePGI7Rtn9CX%2Fimage.png?alt=media&#x26;token=d63d4c1f-d6e6-4116-b44a-9ad15cedd4e2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1946775891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgzbGsZqZH8Ro8zxRYgwn%2Fuploads%2FT7bCunJzUY6LBcIkJY3q%2Fimage.png?alt=media&#x26;token=6d55a309-cf74-4bfe-9fcf-ef4d53342a7e" alt=""><figcaption></figcaption></figure>

### Based on Metadata

A attribute ‘ship’ is defined for the file ‘mytestext’, and set to ‘boat 1’

```bash
$ ~# getfattr mytestext -d
# file: mytestext
user.ship="boat 1"
```

Then we can use a filter to request to copy only file which has this attribute set to `boat 1`.

<figure><img src="https://1946775891-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgzbGsZqZH8Ro8zxRYgwn%2Fuploads%2FuXIlqWAoLZPt21Kt7k8f%2Fimage.png?alt=media&#x26;token=2c6079e4-313a-4d77-8269-55fe1769ae51" alt=""><figcaption></figcaption></figure>
