Skip to main content
Version: 2.8

Delete backups

Portworx Backup allows you to either delete single backup or multiple backups to provide flexibility in managing storage resources and keeping backup environments clean.

Deletion of single backup

When a specific backup is no longer needed, you can delete it individually. This is particularly useful for removing outdated or unnecessary backups while retaining others, saving storage space and costs without disrupting your backup strategy.

Deletion of multiple backups

When you want to delete multiple backups or perform a batch deletion task, Portworx Backup's concurrent or parallel deletion process enables efficient and simultaneous deletion of multiple backups and their associated volume and resources content. This enhancement ensures that dependencies, like incremental backups, are managed correctly, allowing for a streamlined and reliable cleanup process.

Parallel deletion of multiple backups with their volumes and resources reduces overall deletion time. Thread configurations allow users to tune the deletion process to suit their environment and resource availability. In environments where large numbers of backups need to be deleted quickly, this functionality allows for concurrent processing, saving time.

You can delete multiple backups in parallel, improving the efficiency of the deletion process. By default, five backups are selected for deletion at a time, with each backup deletion process spawning five threads for the deletion of associated volumes and resources.

Workflow

  • A user requests the deletion of backups from the web console

  • The backups transition into the Deleting state.

  • A maximum of 5 backups are selected for deletion, with each backup processing up to 5 volume threads concurrently.

  • Once the deletion threads begin processing, the system checks if the volumes and resources belong to Portworx. If there are dependent incremental backups, these backups are moved to the Delete Pending state.

  • Once the dependencies are resolved and no incremental backups are relying on the backup, the deletion process proceeds, and the backup gets deleted.

Thread configuration

Users can adjust the number of concurrent deletion jobs or volume threads by editing two parameters in the Portworx Backup deployment specification. The number of backups being processed concurrently and the threads assigned for each backup can be adjusted with the following parameters in the px-backup deployment spec:

- name: BACKUP_DELETE_WORKER
value: "5"
- name: VOL_DELETE_WORKER
value: "5"
  • BACKUP_DELETE_WORKER: defines the maximum number of backups to be processed concurrently for deletion with a default value of 5
  • VOL_DELETE_WORKER: defines the maximum number of threads assigned per backup to handle volume and resources deletion (default value is 5).
note

Ensure that you have properly configured the BACKUP_DELETE_WORKER and VOL_DELETE_WORKER values based on your cluster's performance and resources.

Deletion states

Deleting state: Once a user initiates a deletion action (either through the web console or API), the backup enters the Deleting state. This state signals that the deletion process has been requested and that the backup is now eligible for further processing by the delete threads. The Deleting state indicates that the backup is in the queue for deletion.

Delete Pending state: After a delete thread picks up a backup for deletion, if any volumes and resources associated with the backup belong to Portworx (PXE), the system performs a check for dependent incremental backups. If such dependencies are found (for example, incremental backups that rely on the backup being deleted), these dependent backups are moved to the Delete Pending state. This state indicates that there are other backups that must be deleted before the primary backup can be deleted. This ensures that the system maintains the integrity of incremental backup chains, preventing data loss from accidental or early deletions.

Dependency management

The system automatically scans for dependent backups, particularly in the case of incremental backups, ensuring that backup chains remain intact. A backup which is being deleted goes to Delete Pending state, if there exists another incremental backup which is dependent on the current backup being deleted.

For example, consider an incremental backup (IB) with incr =5, which means 5 incremental backups are created between each full backup (FB) and retain = 6, where 6 backups (1 full + 5 incremental) are retained before deletion is triggered.


After FB2 (Full backup 2) is successfully created, FB1 is marked for deletion, and after IB6 (Incremental backup 6) is successful, IB1 can be deleted. After IB10 is successful, IB5 is also marked for deletion, with the strategy to retain the most recent backups and deleting the older ones.

note
  • Dependency management is applicable only for Portworx volumes and not for other storage provisioners.
  • Parallel deletes are not supported for NFS-backups. In other words, backups taken on NFS backup locations should be deleted serially (one-by-one).

How to delete backup(s)

Perform the following steps to delete backup(s) through Portworx Backup web console:

  1. Access Portworx Backup web console with valid and active user credentials.

  2. From the home page, click Clusters.

  3. On the Clusters page, select the cluster that contains the backups you wish to delete.

  4. Navigate to Backups tab and select the backups you want to delete:

    • To delete a single backup, select the backup and move the cursor towards the Vertical ellipsis (vertically aligned three dots) next to the backup entry and choose Remove.

    • In case you want to delete multiple backups in a page, select the required backups, move the cursor towards the Vertical ellipsis next to any backup entry and choose Remove.

    • If you want to delete all backups of the page, click the Select All check box in the header row (under NS) tab to select all displayed backups. Click the Vertical ellipsis (three dots) next to any backup entry and choose Remove.

    Result: The selected backup(s) will get deleted after some time.

Was this page helpful?