Skip to main content

Manage Filters

September 16, 2025

To manage filters, choose from the Operating System to be used below:


Windows

Create Backup Set with Filter

  1. To create a backup set, please refer to the Backup & Restore section.
  2. In the “Backup Source” window, under “Filter” slide the lever to the right to add a filter.

    Backup Source

  3. Click the Add new filter button.

    Filter

  4. The New Backup Filter screen that will be displayed will depend on the type of backup set selected.

    • File backup set

      New Backup Filter

    • Microsoft 365 backup set

      New Backup Filter

    • Google Workspace backup set

      New Backup Filter

    Enter the name for your filter.

  5. Choose whether the pattern you added will be included or excluded for the backup.

    • Only for File backup set,

      • if Include them is selected, you can check the box beside “Exclude all unmatched files/folders”.

        Include them

      • if Exclude them is selected, you can check the box beside “Include all unmatched files/folders”.

        Exclude them

    • Only for Microsoft 365 backup set,

      • if Include is selected, you can select from the drop-down list whether to include Users, Teams, SharePoint Sites, Public Folders or Standard Folder in Mailbox.

        Type

      • if Exclude is selected, you can select from the drop-down list whether to exclude Users, Teams, SharePoint Sites, Public Folders, Standard Folder in Mailbox or Folders.

        Type

    • Only for Google Workspace backup set,

      • if Include is selected, you can select from the drop-down list whether to include Users, Shared Drives or Gmail System Label.

        Type

      • if Exclude is selected, you can select from the drop-down list whether to exclude Users, Shared Drives, Gmail System Label or Files/Folders.

        Type

  6. Choose how the pattern will be compared, if it will be by Simple comparison or Regular expression.

    For Simple comparison, you have 3 choices:

    Simple Comparison

    • starts with, files/folders that begins with the pattern will be selected.
    • contains, files/folders that contains the pattern will be selected.
    • ends with, files/folders that ends with the pattern will be selected.

    The filter checks the whole filename including the filename extension. For example, you have a document with filename ‘employees’ so if ends with s is your filter then this file will not be included in the backup since its whole filename is ‘employees.doc’ or ‘employees.docx’ with both files not ending in s but c and x respectively.

    This will not be applicable for Standard Folder in Mailbox and Gmail System Label.

    For Standard Folder in Mailbox, these are the choices in the drop-down list: Inbox, Drafts, Sent Items, Deleted Items, Outbox, Junk Email, Contacts, Calendar, Tasks, Notes, Sync Issues, Search Folders, Journals, RSS Feeds and Archive Deleted Items.

    Standard Folder in Mailbox

    While for Gmail System Label, these are the choices in the drop-down list: Inbox, Starred, Important, Sent, Draft, Spam, Trash, Unread, Social, Updates, Forums, Promotions and Personal.

    Gmail System Label

  7. Specify the pattern then click the Add button. For example the letter a. Repeat adding patterns, until all the patterns has been added to this filter.

    Pattern

    The pattern is case sensitive only in Regular expression.

    This field will not be displayed if Standard Folder in Mailbox or Gmail System Label is selected as the "Type".

  8. Only for File backup set, choose how the filter will be applied, whether in All hard disk drives or for This folder only. If “This folder only” is selected, click the Change button to select the specific folder or input the local / network address.

    Apply filter to all folders in

    If “This share requires access credentials” is checked, enter the username and password of the local or network drive. This checkbox will only be enabled if a local or network address is detected.

    Access credentials

    For Microsoft 365 backup set and Google Workspace backup set, click the Browse button to select the files/folders.

    Apply to

    For Microsoft 365 backup set

    Microsoft 365 Folders

    This will only be displayed if Standard Folder in Mailbox or Folders is selected as the "Type".

    For Google Workspace backup set

    Google Workspace Folders

    This will only be displayed if Gmail System Label or Files/Folders is selected as the "Type".
  9. Select if the filter will be applied to “File”, “Folder” or both.

    Apply to

    This will only be available for File backup sets or if Files/Folders is selected as the "Type" in Google Workspace backup set.
  10. Click the OK button to save the filter. Repeat Steps 3-9 until all the filters you want to apply are created. Click Next.
  11. Follow the rest of the instructions as specified in the Backup and Restore section to finish creating the backup set.

Add Filter to Existing Backup Set

  1. Go to Backup Sets

    Backup Sets

  2. Select the backup set you want to add a filter.

    Backup Sets

  3. Go to Source then slide the lever to the right under “Filter”. Click the Add new filter button.

    Source

  4. Follow Steps 4-9 from the previous section.

Check if Filter is Correct

You can check which files will be included in the backup before the actual backup occurs. To check if the filter is correct:

  1. Go to your backup set then go to Source. Click I would like to choose the files to backup.

    Source

  2. Tick the Show files checkbox, you can check here if the files that will be included in the backup is correct. Files that match the filter criteria are greyed out.

    Advanced Backup Source

    Only files not included in the filter may be added for backup. Once filter is applied to a file it cannot be changed. You will see a message like the one below if you try to check/uncheck a filtered file.

    Error message


Filtering in Continuous Backup

Filtering in continuous backup is only supported by AhsayOBM on Windows Operating System. For continuous backup you can only specify filters that would exclude files from the backup. After turning on continuous backup, you must run a full backup first. This is to ensure that all the files are backed up. If you do not run a full backup first then only files that were changed or added will be backed up by AhsayOBM.

  1. Choose the backup set that you want to set a continuous backup for.

    Backup Sets

  2. Go to Continuous Backup and slide the lever to the right to turn it on.

    Continuous Backup

  3. Tick the “Do not backup files defined as system files” checkbox if you do not want to backup files defined as system files which is enabled by default. Please refer to System Files for Continuous Backup Exclusion on Windows OS for a list of system files that will be excluded from the backup. Set how often backup will run in minutes/hours. Also specify the size limit of the file that will be backed up.

    Continuous Backup

  4. Click the Add new exclude filter to specify the criteria for the filter. Click OK once done.

    New Continuous Backup Exclude Filter

    1. Enter the filter name.
    2. You can match the file/folder names either by Simple comparison or Regular expression (UNIX-style). For simple comparison you can match it by ends with, contains or starts with.
    3. Enter the pattern that will be used for the filter. If there are more than one pattern, click the Add button to enter another pattern. Keep doing this until all the patterns are added.
    4. Specify the location of the files/folder whether in all selected sources or just a specific folder. By default All selected sources is selected.
    5. Choose whether to apply the filter to a file, folder of both.

Linux/FreeBSD

Create Backup Set with Filter

  1. To create a backup set, please refer to AhsayCBS Run on Server Backup and Restore.
  2. In the “Backup Source” window, enable “Apply filters to the backup source” by sliding the lever to the right.

    Backup Source

  3. To add a filter to the backup set, click the "+" button. You can add as many as you want just make sure it won’t conflict with other existing filter configuration of the backup.

    Apply filters to backup source

  4. The next screen that will be displayed will depend on the type of backup set selected.

    • File backup set

      Filter

    • Microsoft 365 backup set

      New Backup Filter

    • Google Workspace backup set

      New Backup Filter

    Enter the filter name. Ensure that the filter name will correspond to the filter configuration you want so that you will not have a hard time amending the backup set from time to time.

  5. To add pattern to your filter, click the "+" button. Enter the pattern then click + to add. You can add various patterns that depends on your desired filter result.

    Pattern

    Matching Pattern

    These are some examples of matching patterns:

    • Pattern No. 1: "A"
    • Pattern No. 2: "b"
    • Pattern No. 3: ".docx"
    • Pattern No. 4: "Backup"

    The matching patterns above are just examples.

    The matching patterns are only case sensitive for Regular Expression.

    This field will not be displayed if Standard Folder in Mailbox or Gmail System Label is selected as the "Type".

  6. Choose whether the pattern you added will be included or excluded for the backup.

    • Only for File backup set,

      • if Include them is selected, you have the option to exclude all the unmatched files/folders by checking the box beside “Exclude all unmatched files/folders”.

        Include them

      • if Exclude them is selected, you have the option to include all the unmatched files/folders by checking the box beside “Include all unmatched files/folders”.

        Exclude them

    • Only for Microsoft 365 backup set,

      • if Include is selected, you can choose to include Users, Teams, SharePoint Sites, Public Folders or Standard Folder in Mailbox.

        Include

      • if Exclude is selected, you can choose to exclude Users, Teams, SharePoint Sites, Public Folders, Standard Folder in Mailbox or Folders.

        Exclude

    • Only for Google Workspace backup set,

      • if Include is selected, you can choose to include Users, Shared Drives or Gmail System Label.

        Include

      • if Exclude is selected, you can choose to exclude Users, Shared Drives, Gmail System Label or Files/Folders.

        Exclude

  7. Select how the pattern will be compared, if it will be by Simple comparison or Regular expression.

    For Simple comparison you have 3 choices:

    Simple Comparison

    • starts with, files/folders that begins with the pattern will be selected.
    • ends with, files/folders that ends with the pattern will be selected.
    • contain, files/folders that contains the pattern will be selected.

    For Standard Folder in Mailbox, click the Create button. Select the folder which will be included/excluded from the backup then click the Add button. Several folders may be added by repeating these steps.

    Standard Folder in Mailbox

    Standard Folder in Mailbox

    For Gmail System Label, click the Create button. Select the folder which will be included/excluded from the backup then click the Add button. Several folders may be added by repeating these steps.

    Gmail System Label

    Gmail System Label

  8. Only for File backup set, select how the filter will be applied, whether in All hard disk drives or for This folder only.

    How to apply filter

    If All hard disk drives is selected, then the filter will be applied to all available hard disk drives in your computer.

    If This folder only is selected, then the filter will only be applied to a specific directory.

    If “This share requires access credentials” is ticked, enter the username and password of the local or network drive. This checkbox will only be enabled if a local or network address is detected.

    Access credentials

    For Microsoft 365 and Google Workspace backup sets, click the Browse button to select the files/folders where the filter will be applied. Once done with the selection, click OK.

    How to Apply Filter

    • Microsoft 365

      How to Apply Filter

    • Google Workspace

      How to Apply Filter

  9. Select if the filter will be applied to File, Folder, or both.

    Apply to

    This will only be available for File backup sets and if the Type selected in Google Workspace backup set is Files/Folders.
  10. Click the "+" button to save the filter. Repeat Steps 3-9 until all the filters you want to apply are created. Click the Right arrow button to proceed.
  11. Follow the rest of the instructions in the Run on Server Backup and Restore for AhsayCBS to finish creating the backup set.

Edit Existing Backup Set to Add Filter

  1. Under "Backup/Restore", click User.

    User

  2. Click Backup Set located on the left side of the screen.

    Backup Set

  3. Double click the backup set where you want to add the filter. Click Source on the left.

    Source

  4. Follow Steps 3-9 in the previous section to finish.

Verify the Backup Report and Logs

There are two (2) ways to check the report. First, by checking the report file on the AhsayCBS Web Console and the second way is via Command Line Interface (CLI).


Backup Report via Web Console

Access the report via the web console by going to Backup/Restore > User > Report. Select the report that you wanted to check and download the PDF. Note that the PDF will only be available 15 minutes after the completion of backup.


Backup Logs via Command Line Interface (CLI)

Access the log file via the CLI by going to this directory, #cd /root/.obm/log. The logs in the .obm directory is where all the backup logs are located. Select the backup report you wanted to check. Unlike in the AhsayCBS Web Console, the log files are available right after the completion of backup.

For additional reference on the location of the application logs, access the link below:

Where are the backup client application logs stored at?