Skip to main content
Version: 2.7

Create backup rules

  1. In the home page, from the left navigation pane, click Clusters.

  2. At the upper-right corner, click Settings > Rules.

Rules home page

  1. In the Backup Rules, click on the + icon or Add new:

    Add backup rule

  2. Build your rule by populating the following fields:

    • Rule Name: enter a descriptive name for your rule

    • Pod selector: enter any label selectors based on your pod’s labels. For example, app = postgres uses the app label to select pods running postgres. Use any of the equality-based selector operators

    • Container (Optional): enter the optional name of the container to which Portworx Backup will apply the rule

    • Action: enter any commands you want to execute when the rule is triggered

    • Background: enable this if you want the rule to run in the background. Rule runs as a background process, can be used to backup crash consistent applications. (For example, mySQL)

    • Run in single pod: run this rule in a single pod. Kubernetes scheduler chooses the pod here and can be used to take a backup of your elective lead based applications (for example, mongoDB).

    Add more sub-rules

  1. (Optional): Select the + Add icon to add more sub-rules:

    Populate backup rule

  2. Click Add to create the rule:

Once you have created a rule, you are ready to associate it with a backup.

Was this page helpful?