![Huanxuan Ao](/assets/img/avatar_default.png)
Backup commands are used only in volume service now, but "backup" is too generic, users may not know the commands are used for volume from the commands name. By seeing the command name, users can only see the "backup" but do not know which object the backup commands work for. It may confuse users. I think rename "backup" to "volume backup" can depict resource relation and will be helpful for users to know the commands clearly. So add new commands ``volume backup create/delete/ list/show/restore`` to replace the old commands ``backup create/delete/list/show/restore``. And also deprecate old commands. Change-Id: I4f844d9bc48573eb4d17288ce6b8a90cea00d16a Implements: bp backup-snapshot-renamed-for-volume-resource Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
133 lines
2.1 KiB
ReStructuredText
133 lines
2.1 KiB
ReStructuredText
=============
|
|
volume backup
|
|
=============
|
|
|
|
Block Storage v1, v2
|
|
|
|
volume backup create
|
|
--------------------
|
|
|
|
Create new volume backup
|
|
|
|
.. program:: volume backup create
|
|
.. code:: bash
|
|
|
|
os volume backup create
|
|
[--container <container>]
|
|
[--name <name>]
|
|
[--description <description>]
|
|
[--snapshot <snapshot>]
|
|
[--force]
|
|
[--incremental]
|
|
<volume>
|
|
|
|
.. option:: --container <container>
|
|
|
|
Optional backup container name
|
|
|
|
.. option:: --name <name>
|
|
|
|
Name of the backup
|
|
|
|
.. option:: --description <description>
|
|
|
|
Description of the backup
|
|
|
|
.. option:: --snapshot <snapshot>
|
|
|
|
Snapshot to backup (name or ID)
|
|
|
|
*Volume version 2 only*
|
|
|
|
.. option:: --force
|
|
|
|
Allow to back up an in-use volume
|
|
|
|
*Volume version 2 only*
|
|
|
|
.. option:: --incremental
|
|
|
|
Perform an incremental backup
|
|
|
|
*Volume version 2 only*
|
|
|
|
.. _volume_backup_create-backup:
|
|
.. describe:: <volume>
|
|
|
|
Volume to backup (name or ID)
|
|
|
|
volume backup delete
|
|
--------------------
|
|
|
|
Delete volume backup(s)
|
|
|
|
.. program:: volume backup delete
|
|
.. code:: bash
|
|
|
|
os volume backup delete
|
|
[--force]
|
|
<backup> [<backup> ...]
|
|
|
|
.. option:: --force
|
|
|
|
Allow delete in state other than error or available
|
|
|
|
*Volume version 2 only*
|
|
|
|
.. _volume_backup_delete-backup:
|
|
.. describe:: <backup>
|
|
|
|
Backup(s) to delete (name or ID)
|
|
|
|
volume backup list
|
|
------------------
|
|
|
|
List volume backups
|
|
|
|
.. program:: volume backup list
|
|
.. code:: bash
|
|
|
|
os volume backup list
|
|
|
|
.. _volume_backup_list-backup:
|
|
.. option:: --long
|
|
|
|
List additional fields in output
|
|
|
|
volume backup restore
|
|
---------------------
|
|
|
|
Restore volume backup
|
|
|
|
.. program:: volume backup restore
|
|
.. code:: bash
|
|
|
|
os volume backup restore
|
|
<backup>
|
|
<volume>
|
|
|
|
.. _volume_backup_restore-backup:
|
|
.. describe:: <backup>
|
|
|
|
Backup to restore (name or ID)
|
|
|
|
.. describe:: <volume>
|
|
|
|
Volume to restore to (name or ID)
|
|
|
|
volume backup show
|
|
------------------
|
|
|
|
Display volume backup details
|
|
|
|
.. program:: volume backup show
|
|
.. code:: bash
|
|
|
|
os volume backup show
|
|
<backup>
|
|
|
|
.. _volume_backup_show-backup:
|
|
.. describe:: <backup>
|
|
|
|
Backup to display (name or ID)
|