def get_backup_size(service):
 backup_files = get_snapshot_paths(service)
 total_size = sum((getsize(file) for file in backup_files))
 return total_size

def get_backup_size ( service ) : backup_files = get_snapshot_paths ( service ) total_size = sum ( ( getsize ( file ) for file in backup_files ) ) return total_size
sums up the size of the snapshot files that consist the backup for the given service .