Protect apps with snapshots and backups

Contributors netapp-bcammett

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 Control API to protect apps.

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.

A backup is stored on object storage in the cloud. A backup can be slower to take compared to the local snapshots. But they can be accessed across regions in the cloud to enable app migrations. 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 damages the cluster and its persistent storage, then you need a backup to recover. A snapshot wouldn’t enable you to recover.
Note If you perform a snapshot or backup, but the operation fails with the error "The resource wasn’t created because of an internal server issue", check to make sure the storage backend you are using has the correct drivers installed. Some storage backends need Container Storage Interface (CSI) drivers, while others need an external snapshot controller.

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 a managed 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 for the hourly, daily, weekly, and monthly schedules.

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

    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, daily, weekly, or monthly basis.

  5. Select Review.

  6. Select Configure.

    Here’s a video that shows each of these steps.

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. Select the drop-down list in the Actions column for the desired app.

  3. Select Snapshot.

  4. Customize the name of the snapshot and then select Review Information.

  5. Review the snapshot summary and select Snapshot App.

Result

Astra Control creates a snapshot of the apps.

Create a backup

You can also back up an app at any time.

Steps
  1. Select Applications.

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

  3. Select Backup.

  4. Customize the name of the backup, choose whether to back up the app from an existing snapshot, and then select Review Information.

  5. Review the backup summary and select Backup App.

Result

Astra Control creates a backup of the app.

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 a managed 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.

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

  2. Select Data Protection.

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

  4. Select Delete snapshot.

  5. Type the name of the snapshot 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 a Running state. You cannot cancel a backup that is in a 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 deletion and then select Yes, cancel backup.

Delete backups

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

  1. Select Applications and then select the name of a managed app.

  2. Select Data Protection.

  3. Select Backups.

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

  5. Select Delete backup.

  6. Type the name of the backup to confirm deletion and then select Yes, Delete backup.

Result

Astra Control deletes the backup.