python-openstackclient/doc/source/command-objects/server-backup.rst
jichenjc 460846cef2 [compute] Add server backup function
Add server backup function

There is no return value for this command per following doc
http://developer.openstack.org/api-ref-compute-v2.1.html#createBackup,
also novaclient can't be updated now due to backward compatible issue
http://lists.openstack.org/pipermail/openstack-dev/2016-March/089376.html,
so we have to get the information ourselves.

The Image tests were not using warlock images, so that needed to be fixed
before we could completely test things like --wait.

Change-Id: I30159518c4d3fdec89f15963bda641a0b03962d1
2016-05-27 11:47:25 -05:00

890 B

server backup

A server backup is a disk image created in the Image store from a running server instance. The backup command manages the number of archival copies to retain.

Compute v2

server backup create

Create a server backup image

server create

os server backup create
    [--name <image-name>]
    [--type <backup-type>]
    [--rotate <count>]
    [--wait]
    <server>

--name <image-name>

Name of the backup image (default: server name)

--type <backup-type>

Used to populate the backup_type property of the backup image (default: empty)

--rotate <count>

Number of backup images to keep (default: 1)

--wait

Wait for operation to complete

<server>

Server to back up (name or ID)