The cinder.backup.drivers.tsm Module

Backup driver for IBM Tivoli Storage Manager (TSM).

Implementation of a backup service that uses IBM Tivoli Storage Manager (TSM) as the backend. The driver uses TSM command line dsmc utility to run the backup and restore operations. This version supports backup of block devices, e.g, FC, iSCSI, local as well as regular files.

A prerequisite for using the IBM TSM backup service is configuring the Cinder host for using TSM.

class TSMBackupDriver(context, db_driver=None)

Bases: cinder.backup.driver.BackupDriver

Provides backup, restore and delete of volumes backup for TSM.

DRIVER_VERSION = '1.0.0'
backup(backup, volume_file, backup_metadata=False)

Backup the given volume to TSM.

TSM performs a backup of a volume. The volume_file is used to determine the path of the block device that TSM will back-up.

Parameters:
  • backup – backup information for volume
  • volume_file – file object representing the volume
  • backup_metadata – whether or not to backup volume metadata

:raises InvalidBackup

delete(backup)

Delete the given backup from TSM server.

Parameters:backup – backup information for volume
Raises:InvalidBackup
restore(backup, volume_id, volume_file)

Restore the given volume backup from TSM server.

Parameters:
  • backup – backup information for volume
  • volume_id – volume id
  • volume_file – file object representing the volume
Raises:

InvalidBackup

get_backup_driver(context)

Previous topic

The cinder.backup.drivers.swift Module

Next topic

The cinder.backup.manager Module

Project Source

This Page