Skip to main content
Astra Control Center
A newer release of this product is available.

Protect apps with snapshots and backups

Contributors netapp-mwallis

Protect all apps by taking snapshots and backups using an automated protection policy or on an ad-hoc basis. You can use the Astra Control Center UI or the Astra Control API to protect apps.

About this task
  • Helm deployed apps: If you use Helm to deploy apps, Astra Control Center requires Helm version 3. Managing and cloning apps deployed with Helm 3 (or upgraded from Helm 2 to Helm 3) are fully supported. Apps deployed with Helm 2 are not supported.

  • (Openshift clusters only) Add policies: When you create a project for hosting an app on an OpenShift cluster, the project (or Kubernetes namespace) is assigned a SecurityContext UID. To enable Astra Control Center to protect your app and move the app to another cluster or project in OpenShift, you need to add policies that enable the app to run as any UID. As an example, the following OpenShift CLI commands grant the appropriate policies to a WordPress app.

    oc new-project wordpress
    oc adm policy add-scc-to-group anyuid system:serviceaccounts:wordpress
    oc adm policy add-scc-to-user privileged -z default -n wordpress

You can do the following tasks related to protecting your app data:

Configure a protection policy

A protection policy protects an app by creating snapshots, backups, or both at a defined schedule. You can choose to create snapshots and backups hourly, daily, weekly, and monthly, and you can specify the number of copies to retain.

If you need backups or snapshots to run more frequently than once per hour, you can use the Astra Control REST API to create snapshots and backups.

Steps
  1. Select Applications and then select the name of an app.

  2. Select Data Protection.

  3. Select Configure Protection Policy.

  4. Define a protection schedule by choosing the number of snapshots and backups to keep hourly, daily, weekly, and monthly.

    You can define the hourly, daily, weekly, and monthly schedules concurrently. A schedule won't turn active until you set a retention level.

    When you set a retention level for backups, you can choose the bucket where you'd like to store the backups.

    The following example sets four protection schedules: hourly, daily, weekly, and monthly for snapshots and backups.

    A screenshot of a sample configuration policy where you can choose to take snapshots and backups on an hourly

  5. Select Review.

  6. Select Set Protection Policy.

Result

Astra Control implements the data protection policy by creating and retaining snapshots and backups using the schedule and retention policy that you defined.

Create a snapshot

You can create an on-demand snapshot at any time.

Steps
  1. Select Applications.

  2. From the Options menu in the Actions column for the desired app, select Snapshot.

  3. Customize the name of the snapshot and then select Next.

  4. Review the snapshot summary and select Snapshot.

Result

The snapshot process begins. A snapshot is successful when the status is Healthy in the State column on the Data protection > Snapshots page.

Create a backup

You can also back up an app at any time.

Note S3 buckets in Astra Control Center do not report available capacity. Before backing up or cloning apps managed by Astra Control Center, check bucket information in the ONTAP or StorageGRID management system.
Steps
  1. Select Applications.

  2. From the Options menu in the Actions column for the desired app, select Back up.

  3. Customize the name of the backup.

  4. Choose whether to back up the app from an existing snapshot. If you select this option, you can choose from a list of existing snapshots.

  5. Choose a destination bucket for the backup from the list of storage buckets.

  6. Select Next.

  7. Review the backup summary and select Back up.

Result

Astra Control creates a backup of the app.

Note If your network has an outage or is abnormally slow, a backup operation might time out. This causes the backup to fail.
Note If you need to cancel a running backup, use the instructions in Cancel backups. To delete the backup, wait until it has completed and then use the instructions in Delete backups.
Note After a data protection operation (clone, backup, restore) and subsequent persistent volume resize, there is up to a twenty-minute delay before the new volume size is shown in the UI. The data protection operation is successful within minutes, and you can use the management software for the storage backend to confirm the change in volume size.

View snapshots and backups

You can view the snapshots and backups of an app from the Data Protection tab.

Steps
  1. Select Applications and then select the name of an app.

  2. Select Data Protection.

    The snapshots display by default.

  3. Select Backups to see the list of backups.

Delete snapshots

Delete the scheduled or on-demand snapshots that you no longer need.

Note You cannot delete a snapshot that currently is being replicated.
Steps
  1. Select Applications and then select the name of a managed app.

  2. Select Data Protection.

  3. From the Options menu in the Actions column for the desired snapshot, select Delete snapshot.

  4. Type the word "delete" to confirm deletion and then select Yes, Delete snapshot.

Result

Astra Control deletes the snapshot.

Cancel backups

You can cancel a backup that is in progress.

Tip To cancel a backup, the backup must be in Running state. You cannot cancel a backup that is in Pending state.
Steps
  1. Select Applications and then select the name of an app.

  2. Select Data Protection.

  3. Select Backups.

  4. From the Options menu in the Actions column for the desired backup, select Cancel.

  5. Type the word "cancel" to confirm the operation and then select Yes, cancel backup.

Delete backups

Delete the scheduled or on-demand backups that you no longer need.

Note If you need to cancel a running backup, use the instructions in Cancel backups. To delete the backup, wait until it has completed and then use these instructions.
Steps
  1. Select Applications and then select the name of an app.

  2. Select Data Protection.

  3. Select Backups.

  4. From the Options menu in the Actions column for the desired backup, select Delete backup.

  5. Type the word "delete" to confirm deletion and then select Yes, Delete backup.

Result

Astra Control deletes the backup.