Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ for Cloud Object Store Administrator's Guide
  3. Protecting Cloud object store assets
  4. Examples of conditions and tag conditions
NetBackup™ for Cloud Object Store Administrator's Guide

Examples of conditions and tag conditions

Here is an example to illustrate the use of conditions and tag conditions.

Consider the container/bucket has the following files/directories:

  • The following blobs are tagged with "Project": "HR" tag

    • OrganizationData/Hr/resumes/resume1_selected.pdf

    • OrganizationData/Hr/resumes/resume2_rejected.pdf

    • OrganizationData/Hr/resumes/resume3_noupdate.pdf

  • The following blobs are tagged with "Project": "Finance" tag value

    • OrganizationData/Fin/accounts/account1/records1.txt

    • OrganizationData/Fin/accounts/account2/records2.txt

    • OrganizationData/Fin/accounts/account3/records3.txt

    • OrganizationData/Fin/accounts/monthly_expenses/Jul2022.rec

    • OrganizationData/Fin/accounts/monthly_expenses/Aug2022.rec

  • The following blobs are tagged with "Project": "Security"

    • The blob Getepass.pdf: Has one more tag with "TypeOfData":"ID_Cards" so this is tagged with two tags (that is: Security and ID_Cards)

    • OrganizationData/newJoinees/tempPassesList.xls

  • The following blobs are tagged with "Project": "Environment"

    • EnvironmentContribution.xls

    • NewPlantedTrees.xls

Example prefix conditions:

  • Case 1: To backup all resumes irrespective of their status (like, selected or rejected) from OrganizationData add the query:

    prefix Equal to OrganizationData/Hr/resumes/resume

    Result: All records that start with OrganizationData/Hr/resumes/resume are backed up.

  • Case 2: To backup all resumes and records from Fin and HR, add any of the following queries:

    prefix Equal to OrganizationData/Hr/resumes/resume

    Or

    prefix Equal to OrganizationData/Fin/accounts/account1/rec

    Note:

    You can add multiple prefixes with OR conditions.

Result: All records starting with OrganizationData/Hr/resumes/resume or OrganizationData/Fin/accounts/account1/rec are backed up.

Example object conditions:

To backup a specific object/blob add the following query:

object Equal to OrganizationData/Fin/accounts/monthly_expenses/Jul2022.rec

Result: Only the blob with the name Jul2022.rec is selected.

Example tag conditions:

  • Case 1: To back up all blobs tagged with "Project": "Finance", add the following query:

    tagKey Equal to 'Project' and tagVal Equal to 'Finance'

    Result: All objects/blobs tagged with "Project" = "Finance" are selected.

  • Case 2: To back up data that matches with project Finance or Security, add the query:

    tagKey Equal to 'Project' and tagValue eq 'Finance' OR tagKey Equal to 'Project' and tagValue eq 'Security'

    Result: All object/blobs tagged with "Project": "Finance" or "Project":"Security" are selected.

  • Case 3: To back up data from "Project":"Security" and "TypeOfData":"ID_Cards" add the queries:

    (tagKey Equal to 'Project' and tagValue Equal to 'Security') AND (tagKey Equal to 'TypeOfData' and tagValue Equal to 'ID_Cards')

    Result: Data with tag "Project":" Security" and "TypeOfData": "ID_Cards" are selected.

Feedback

Was this page helpful?
Previous

Adding tag conditions

Next

Managing Cloud object store policies

Feedback

Was this page helpful?