Previous topic

The cinder.backup.rpcapi Module

Next topic

The cinder.common.sqlalchemyutils Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.backup.services.swift Module

Implementation of a backup service that uses Swift as the backend

Related Flags

backup_swift_url:
 The URL of the Swift endpoint (default: localhost:8080).
backup_swift_object_size:
 The size in bytes of the Swift objects used for volume backups (default: 52428800).
backup_swift_retry_attempts:
 The number of retries to make for Swift operations (default: 10).
backup_swift_retry_backoff:
 The backoff time in seconds between retrying failed Swift operations (default: 10).
backup_compression_algorithm:
 Compression algorithm to use for volume backups. Supported options are: None (to disable), zlib and bz2 (default: zlib)
class SwiftBackupService(context, db_driver=None)

Bases: cinder.db.base.Base

Provides backup, restore and delete of backup objects within Swift.

SERVICE_VERSION = '1.0.0'
SERVICE_VERSION_MAPPING = {'1.0.0': '_restore_v1'}
backup(backup, volume_file)

Backup the given volume to swift using the given backup metadata.

delete(backup)

Delete the given backup from swift.

restore(backup, volume_id, volume_file)

Restore the given volume backup from swift.

get_backup_service(context)