Command doc: backup
Change-Id: Iecd4dbddea637bd6540d94b37253a9ba434c9db3
This commit is contained in:
parent
55b8540374
commit
79d0e21a45
104
doc/source/command-objects/backup.rst
Normal file
104
doc/source/command-objects/backup.rst
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
======
|
||||||
|
backup
|
||||||
|
======
|
||||||
|
|
||||||
|
Volume v1
|
||||||
|
|
||||||
|
backup create
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Create new backup
|
||||||
|
|
||||||
|
.. program:: backup create
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os backup create
|
||||||
|
[--container <container>]
|
||||||
|
[--name <name>]
|
||||||
|
[--description <description>]
|
||||||
|
<volume>
|
||||||
|
|
||||||
|
.. option:: --container <container>
|
||||||
|
|
||||||
|
Optional backup container name
|
||||||
|
|
||||||
|
.. option:: --name <name>
|
||||||
|
|
||||||
|
Name of the backup
|
||||||
|
|
||||||
|
.. option:: --description <description>
|
||||||
|
|
||||||
|
Description of the backup
|
||||||
|
|
||||||
|
.. _backup_create-backup:
|
||||||
|
.. describe:: <volume>
|
||||||
|
|
||||||
|
Volume to backup (name or ID)
|
||||||
|
|
||||||
|
backup delete
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Delete backup(s)
|
||||||
|
|
||||||
|
.. program:: backup delete
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os backup delete
|
||||||
|
<backup> [<backup> ...]
|
||||||
|
|
||||||
|
.. _backup_delete-backup:
|
||||||
|
.. describe:: <backup>
|
||||||
|
|
||||||
|
Backup(s) to delete (ID only)
|
||||||
|
|
||||||
|
backup list
|
||||||
|
-----------
|
||||||
|
|
||||||
|
List backups
|
||||||
|
|
||||||
|
.. program:: backup list
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os backup list
|
||||||
|
|
||||||
|
.. _backup_list-backup:
|
||||||
|
.. option:: --long
|
||||||
|
|
||||||
|
List additional fields in output
|
||||||
|
|
||||||
|
backup restore
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Restore backup
|
||||||
|
|
||||||
|
.. program:: backup restore
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os backup restore
|
||||||
|
<backup>
|
||||||
|
<volume>
|
||||||
|
|
||||||
|
.. _backup_restore-backup:
|
||||||
|
.. describe:: <backup>
|
||||||
|
|
||||||
|
Backup to restore (ID only)
|
||||||
|
|
||||||
|
.. describe:: <volume>
|
||||||
|
|
||||||
|
Volume to restore to (name or ID)
|
||||||
|
|
||||||
|
backup show
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Display backup details
|
||||||
|
|
||||||
|
.. program:: backup show
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os backup show
|
||||||
|
<backup>
|
||||||
|
|
||||||
|
.. _backup_show-backup:
|
||||||
|
.. describe:: <backup>
|
||||||
|
|
||||||
|
Backup to display (ID only)
|
@ -72,7 +72,7 @@ referring to both Compute and Volume quotas.
|
|||||||
* ``access token``: Identity - long-lived OAuth-based token
|
* ``access token``: Identity - long-lived OAuth-based token
|
||||||
* ``availability zone``: (**Compute**) a logical partition of hosts or volume services
|
* ``availability zone``: (**Compute**) a logical partition of hosts or volume services
|
||||||
* ``aggregate``: (**Compute**) a grouping of servers
|
* ``aggregate``: (**Compute**) a grouping of servers
|
||||||
* ``backup``: Volume - a volume copy
|
* ``backup``: (**Volume**) a volume copy
|
||||||
* ``catalog``: (**Identity**) service catalog
|
* ``catalog``: (**Identity**) service catalog
|
||||||
* ``console log``: (**Compute**) server console text dump
|
* ``console log``: (**Compute**) server console text dump
|
||||||
* ``console url``: (**Compute**) server remote console URL
|
* ``console url``: (**Compute**) server remote console URL
|
||||||
|
@ -27,7 +27,7 @@ from openstackclient.common import utils
|
|||||||
|
|
||||||
|
|
||||||
class CreateBackup(show.ShowOne):
|
class CreateBackup(show.ShowOne):
|
||||||
"""Create backup command"""
|
"""Create new backup"""
|
||||||
|
|
||||||
log = logging.getLogger(__name__ + '.CreateBackup')
|
log = logging.getLogger(__name__ + '.CreateBackup')
|
||||||
|
|
||||||
@ -36,13 +36,13 @@ class CreateBackup(show.ShowOne):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'volume',
|
'volume',
|
||||||
metavar='<volume>',
|
metavar='<volume>',
|
||||||
help='The name or ID of the volume to backup',
|
help='Volume to backup (name or ID)',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--container',
|
'--container',
|
||||||
metavar='<container>',
|
metavar='<container>',
|
||||||
required=False,
|
required=False,
|
||||||
help='Optional backup container name.',
|
help='Optional backup container name',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--name',
|
'--name',
|
||||||
@ -84,7 +84,7 @@ class DeleteBackup(command.Command):
|
|||||||
'backups',
|
'backups',
|
||||||
metavar='<backup>',
|
metavar='<backup>',
|
||||||
nargs="+",
|
nargs="+",
|
||||||
help='Backup(s) to delete (name or ID)',
|
help='Backup(s) to delete (ID only)',
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ class DeleteBackup(command.Command):
|
|||||||
|
|
||||||
|
|
||||||
class ListBackup(lister.Lister):
|
class ListBackup(lister.Lister):
|
||||||
"""List backup command"""
|
"""List backups"""
|
||||||
|
|
||||||
log = logging.getLogger(__name__ + '.ListBackup')
|
log = logging.getLogger(__name__ + '.ListBackup')
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ class ListBackup(lister.Lister):
|
|||||||
|
|
||||||
|
|
||||||
class RestoreBackup(command.Command):
|
class RestoreBackup(command.Command):
|
||||||
"""Restore backup command"""
|
"""Restore backup"""
|
||||||
|
|
||||||
log = logging.getLogger(__name__ + '.RestoreBackup')
|
log = logging.getLogger(__name__ + '.RestoreBackup')
|
||||||
|
|
||||||
@ -165,11 +165,11 @@ class RestoreBackup(command.Command):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'backup',
|
'backup',
|
||||||
metavar='<backup>',
|
metavar='<backup>',
|
||||||
help='ID of backup to restore')
|
help='Backup to restore (ID only)')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'volume',
|
'volume',
|
||||||
metavar='<dest-volume>',
|
metavar='<volume>',
|
||||||
help='ID of volume to restore to')
|
help='Volume to restore to (name or ID)')
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
@ -184,7 +184,7 @@ class RestoreBackup(command.Command):
|
|||||||
|
|
||||||
|
|
||||||
class ShowBackup(show.ShowOne):
|
class ShowBackup(show.ShowOne):
|
||||||
"""Show backup command"""
|
"""Display backup details"""
|
||||||
|
|
||||||
log = logging.getLogger(__name__ + '.ShowBackup')
|
log = logging.getLogger(__name__ + '.ShowBackup')
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ class ShowBackup(show.ShowOne):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'backup',
|
'backup',
|
||||||
metavar='<backup>',
|
metavar='<backup>',
|
||||||
help='Name or ID of backup to display')
|
help='Backup to display (ID only)')
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user