Managing volumes in backup plans

You can manage compute volumes that you want to back up by adding them to or removing them from your backup plans. After removing a volume from a backup plan, all backups that have been already created remain intact.

Prerequisites

To add volumes to a backup plan

Admin panel

  1. On the Compute > Backup > Backup plans tab, click the required backup plan.
  2. On the plan right pane, navigate to the Volumes to back up tab. All the compute volumes included in the backup plan will be shown here.
  3. Click Manage above the list of volumes.
  4. In the Manage volumes window, select volumes that you want to back up, and then click Save.

Command-line interface

Use the following command:

vinfra service compute backup-plan volume add <backup-plan> [<backup-plan-volume> ...]
<backup-plan>
Backup plan ID or name
<backup-plan-volume>
Volume ID

For example, to add the volume with the ID 3b12cb5b-ce30-4ce4-97a5-4535b03fe43b to the backup plan myplan, run:

# vinfra service compute backup-plan volume add myplan 3b12cb5b-ce30-4ce4-97a5-4535b03fe43b

The added volume will appear in the vinfra service compute backup-plan volume list output:

# vinfra service compute backup-plan volume list myplan
+-------------+------------------------+------+--------+----------------------------------+---------------------+
| id          | name                   | size | status | project_id                       | storage_policy_name |
+-------------+------------------------+------+--------+----------------------------------+---------------------+
| 3b12cb5b<…> | volume1                | 100  | in-use | 70eff98528054d0b95a8936bfa4aa2a3 | default             |
| 5a66c317<…> | vm1/cirros/Boot volume | 1    | in-use | d0460058ccc04936b81b0653e490a121 | default             |
+-------------+------------------------+------+--------+----------------------------------+---------------------+

To remove volumes from a backup plan

Admin panel

  1. On the Compute > Backup > Backup plans tab, click the required backup plan.
  2. On the plan right pane, navigate to the Volumes to back up tab. All the compute volumes included in the backup plan will be shown here.
  3. Click Manage above the list of volumes.
  4. In the Manage volumes window, remove the selection from volumes that you do not want to back up. To see only the volumes assigned to the backup plan, select Show only selected items next to the Search field. Then, click Save.

Command-line interface

Use the following command:

vinfra service compute backup-plan volume remove <backup-plan> [<backup-plan-volume-id> ...]
<backup-plan>
Backup plan ID or name
<backup-plan-volume>
Volume ID

For example, to remove the volume with the ID 3b12cb5b-ce30-4ce4-97a5-4535b03fe43b from the backup plan myplan, run:

# vinfra service compute backup-plan volume remove myplan 3b12cb5b-ce30-4ce4-97a5-4535b03fe43b

The removed volume will disappear in the vinfra service compute backup-plan volume list output.