Create backup rules
-
From the home page, select Settings, Rules to open the cloud settings page:

-
Select Add new:

-
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 = postgresuses the app label to select pods runningpostgres. 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)

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

-
Select the Add button to create the rule:

Once you have created a rule, you are ready to associate it with a backup.
Add cloud accounts
4 items
Add backup locations
2 items
Add clusters
Add clusters in Portworx Backup and configure them for use with Portworx Backup.
Create backup rules
1. From the home page, select Settings, Rules to open the cloud settings page:
Create schedule policies
1. From the home page, select Settings, Schedule Policies:
Create and restore backups
5 items
Backup and restore VMs with KubeVirt
2 items
Backup stateful applications
how to use pre- and post-backup rules with Portworx Backup
Enable object lock
4 items
Share backups with users and groups
how to share single backups and all backups of a cluster with users and groups
Label backups and resources
How backup, namespace, and resource labels work in Portworx Backup
Delete stranded resources
4 items