Create an incremental backup

You can create an incremental backup to only store the changes made to the volume since the last full or incremental backup.

Before you begin

  • At least one full backup of the volume. For more information, see Create a full volume backup.
  • Only volume owners and project administrators can backup volumes.
  • Your backup repository must have the necessary space.
  • The backup quotas specified for your project have not been exceeded.

Procedure

  1. Access the remote shell for the OpenStackClient pod from your workstation:
    $ oc rsh -n openstack openstackclient
  2. List the volumes to obtain the ID or name of the volume you want to back up:
    $ openstack volume list
  3. Back up the volume and use the --incremental option:
    $ openstack volume backup create --incremental [--name <backup_name>] <volume>
    • Replace <volume> with the ID or name of the volume you want to back up.
    • Optional: replace <backup_name> with the name of this backup.

      This command immediately provides the ID of this backup but the volume is backed up asynchronously, in the background. For example:

      $ openstack volume backup create --name vol3incbu1 --incremental vol_3
      +-------+--------------------------------------+
      | Field | Value                                |
      +-------+--------------------------------------+
      | id    | f1681313-b5ed-4520-9b63-5b533f7cdc11 |
      | name  | vol3incbu1                           |
      +-------+--------------------------------------+

Results

  • List the backups:
    $ openstack volume backup list

    The volume backup is created when this backup has an available status. For example:

    +--------------------------------------+---------+-------------+-----------+------+
    | ID                                   | Name    | Description | Status    | Size |
    +--------------------------------------+---------+-------------+-----------+------+
    | f1681313-b5ed-4520-9b63-5b533f7cdc11 | vol3incbu1 | None        | available |    1 |
    | f0e9ba67-67e1-4c2c-96ce-221df75bf2c2 | vol3bu1    | None        | available |    1 |
    +--------------------------------------+---------+-------------+-----------+------+
    1. Exit the openstackclient pod:
      $ exit