From 34812655a5b44623a04fc05f1a6c9110f4afbc25 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Fri, 8 Jul 2016 11:25:25 +0000 Subject: Add "--incremental" option to "backup create" command in volume v2 Cinder V2 API supports creating volume backup with "--incremental" option. However, OSC doesn't support this argument. So this patch adds the "--incremental" option to allow users to create incremental style backups. Change-Id: Iefac5f1a6c9ef006ad9c22d4250ae6df50504781 Closes-Bug: 1600196 --- openstackclient/volume/v2/backup.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openstackclient/volume') diff --git a/openstackclient/volume/v2/backup.py b/openstackclient/volume/v2/backup.py index fed5f09e..49226bcc 100644 --- a/openstackclient/volume/v2/backup.py +++ b/openstackclient/volume/v2/backup.py @@ -59,6 +59,12 @@ class CreateBackup(command.ShowOne): default=False, help=_("Allow to back up an in-use volume") ) + parser.add_argument( + '--incremental', + action='store_true', + default=False, + help=_("Perform an incremental backup") + ) return parser def take_action(self, parsed_args): @@ -75,6 +81,7 @@ class CreateBackup(command.ShowOne): name=parsed_args.name, description=parsed_args.description, force=parsed_args.force, + incremental=parsed_args.incremental, snapshot_id=snapshot_id, ) backup._info.pop("links", None) -- cgit v1.2.1