Managing compute backup quotas

By using the vinfra command-line tool, you can limit storage space provisioned for compute backups per domain and per project.

To set compute backup quotas for a domain

Use the following command:

vinfra service compute quotas update [--volumes-backups <volumes-backups-size>] <domain_id>
--volumes-backups <volumes-backups-size>
Volume backup size. To specify the size, use the following units: M or MiB for mebibytes, G or GiB for gibibytes, T or TiB for tebibytes, P or PiB for pebibytes, and E or EiB for exbibytes.
<domain_id>
Domain ID

For example, to update quotas for the domain with the ID 0ed0dac39ba14e89b7d2b8cb7d5337f7 to 200 GiB of the volume backup size, run:

# vinfra service compute quotas update --volumes-backups 200G 0ed0dac39ba14e89b7d2b8cb7d5337f7

You can view the updated quotas in the vinfra service compute quotas show output:

# vinfra service compute quotas show 0ed0dac39ba14e89b7d2b8cb7d5337f7
+----------------------------------------+----------+
| Field                                  | Value    |
+----------------------------------------+----------+
| compute.cores.limit                    | -1       |
| compute.ram.limit                      | -1       |
| compute.ram_quota.limit                | -1       |
| storage.gigabytes.default.limit        | -1       |
| storage.storage_policies.default.limit | -1       |
| storage.volumes_backups.limit          | 200.0GiB |
+----------------------------------------+----------+

To remove compute backup quotas for a domain

Use the following command:

vinfra service compute quotas update [--volumes-backups <volumes-backups-size>] <domain_id>
--volumes-backups <volumes-backups-size>
Volume backup size. Specify -1 to set the quota to the unlimited value.
<domain_id>
Domain ID

For example, to remove compute backup quotas for the domain with the ID 0ed0dac39ba14e89b7d2b8cb7d5337f7, run:

# vinfra service compute quotas update --volumes-backups -1 0ed0dac39ba14e89b7d2b8cb7d5337f7

To set compute backup quotas for a project

Use the following command:

vinfra service compute quotas update [--volumes-backups <volumes-backups-size>] <project-id>
--volumes-backups <volumes-backups-size>
Volume backup size. To specify the size, use the following units: M or MiB for mebibytes, G or GiB for gibibytes, T or TiB for tebibytes, P or PiB for pebibytes, and E or EiB for exbibytes.
<project-id>
Project ID

For example, to update quotas for the project with the ID 6ef6f48f01b640ccb8ff53117b830fa3 to 100 GiB of the volume backup size, run:

# vinfra service compute quotas update --volumes-backups 100G 6ef6f48f01b640ccb8ff53117b830fa3

You can view the updated quotas in the vinfra service compute quotas show output:

# vinfra service compute quotas show 79830e3c64c74ded9bac6bffde5d26e4
+----------------------------------------+----------+
| Field                                  | Value    |
+----------------------------------------+----------+
| compute.cores.limit                    | -1       |
| compute.ram.limit                      | -1       |
| compute.ram_quota.limit                | -1       |
| network.floatingip.limit               | -1       |
| network.ipsec_site_connection.limit    | -1       |
| storage.gigabytes.default.limit        | -1       |
| storage.storage_policies.default.limit | -1       |
| storage.volumes_backups.limit          | 100.0GiB |
+----------------------------------------+----------+

To remove compute backup quotas for a project

Use the following command:

vinfra service compute quotas update [--volumes-backups <volumes-backups-size>] <project-id>
--volumes-backups <volumes-backups-size>
Volume backup size. Specify -1 to set the quota to the unlimited value.
<project-id>
Project ID

For example, to remove compute backup quotas for the project with the ID 6ef6f48f01b640ccb8ff53117b830fa3, run:

# vinfra service compute quotas update --volumes-backups -1 6ef6f48f01b640ccb8ff53117b830fa3