Protect apps with snapshots and backups

Contributors netapp-mwallis netapp-dbagwell amgrissino Download PDF of this page

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

Note 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.

Snapshots and backups

A snapshot is a point-in-time copy of an app that’s stored on the same provisioned volume as the app. They are usually fast. Local snapshots are used to restore the application to an earlier point in time. Snapshots are useful for fast clones; snapshots include all of the Kubernetes objects for the app, including configuration files.

A backup is stored in the external object store. A backup can be slower to take compared to local snapshots. You can migrate an app by restoring its backup to a different cluster. You can also choose a longer retention period for backups.

Caution You can’t be fully protected until you have a recent backup. This is important because backups are stored in an object store away from the persistent volumes. If a failure or accident wipes out the cluster and it’s persistent storage, then you need a backup to recover. A snapshot wouldn’t enable you to recover.

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.

Steps
  1. Click Apps and then click the name of an app.

  2. Click Data Protection.

  3. Click 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.

    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. Click Review.

  6. Click Set Protection Policy.

Result

Astra Control Center 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. Click Apps.

  2. Click the drop-down list in the Actions column for the desired app.

  3. Click Snapshot.

  4. Customize the name of the snapshot and then click Review.

  5. Review the snapshot summary and click Snapshot.

Result

The snapshot process begins. A snapshot is successful when the status is Available in the Actions 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. Click Apps.

  2. Click the drop-down list in the Actions column for the desired app.

  3. Click Backup.

  4. Customize the name of the backup.

  5. 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.

  6. Choose a destination for the backup by selecting from the list of storage buckets.

  7. Click Review.

  8. Review the backup summary and click Backup.

Result

Astra Control Center 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 There is no way to stop a running backup. If you need to delete the backup, wait until it has completed and then use the instructions in Delete backups. To delete a failed backup, use the Astra API.
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. Click Apps and then click the name of an app.

  2. Click Data Protection.

    The snapshots display by default.

  3. Click Backups to see the list of backups.

Delete snapshots

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

Steps
  1. Click Apps and then click the name of an app.

  2. Click Data Protection.

  3. Click the drop-down list in the Actions column for the desired snapshot.

  4. Click Delete snapshot.

  5. Type the word "delete" to confirm deletion and then click Yes, Delete snapshot.

Result

Astra Control Center deletes the snapshot.

Delete backups

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

Note There is no way to stop a running backup. If you need to delete the backup, wait until it has completed and then use these instructions. To delete a failed backup, use the Astra API.
  1. Click Apps and then click the name of an app.

  2. Click Data Protection.

  3. Click Backups.

  4. Click the drop-down list in the Actions column for the desired backup.

  5. Click Delete backup.

  6. Type the word "delete" to confirm deletion and then click Yes, Delete backup.

Result

Astra Control Center deletes the backup.