]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add support to incremental backups in cinder
authorXing Yang <xing.yang@emc.com>
Mon, 12 Jan 2015 19:16:28 +0000 (14:16 -0500)
committerXing Yang <xing.yang@emc.com>
Fri, 6 Mar 2015 02:14:44 +0000 (21:14 -0500)
commite7f592df7b1a272255abd387150394a37a5c4da8
tree7f50cd6d50c7a70529d3e3407760e4f257a87a24
parentb3e86455f88385848376e9855be0167844e2f46d
Add support to incremental backups in cinder

1. Added a new option to create backup to support incremental backups.
   New CLI option added for "cinder backup": --incremental or --incr
   By default, it is full backup.
   Add the following to API: 'incremental': True or False
   (False is the default)
2. swift.py creates sha256file for every backup to calculate deltas

DocImpact
APIImpact
Co-Authored-By: Xing Yang <xing.yang@emc.com>
Implements: blueprint incremental-backup
Change-Id: I98f3765f7afa47bda6a8c7004f809c3cc4d1bd4b
16 files changed:
cinder/api/contrib/backups.py
cinder/backup/api.py
cinder/backup/drivers/swift.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/db/sqlalchemy/migrate_repo/versions/039_add_parent_id_to_backups.py [new file with mode: 0644]
cinder/db/sqlalchemy/models.py
cinder/tests/api/contrib/test_backups.py
cinder/tests/backup/fake_swift_client.py
cinder/tests/backup/fake_swift_client2.py [new file with mode: 0644]
cinder/tests/test_backup.py
cinder/tests/test_backup_swift.py
cinder/tests/test_db_api.py
cinder/tests/test_migrations.py
cinder/tests/test_quota.py
cinder/tests/test_volume.py