'List all backups.
List all backups (including ones in progress) and the host
on which the backup operation is running.'

def list(self):

    ctxt = context.get_admin_context()
    backups = objects.BackupList.get_all(ctxt)
    hdr = '%-32s DCTB %-32s DCTB %-32s DCTB %-24s DCTB %-24s DCTB %-12s DCTB %-12s DCTB %-12s DCTB %-12s'
    print((hdr % (_('ID'), _('User    ID'), _('Project    ID'), _('Host'), _('Name'), _('Container'), _('Status'), _('Size'), _('Object    Count'))))
    res = '%-32s DCTB %-32s DCTB %-32s DCTB %-24s DCTB %-24s DCTB %-12s DCTB %-12s DCTB %-12d DCTB %-12d'
    for backup in backups:
        object_count = 0
        if (backup['object_count'] is not None):
            object_count = backup['object_count']
        print((res % (backup['id'], backup['user_id'], backup['project_id'], backup['host'], backup['display_name'], backup['container'], backup['status'], backup['size'], object_count)))
