transfer_batch
Submit multiple file transfers in a single task by pairing source and destination paths to batch copy or sync files between Globus endpoints.
Instructions
Submit a batch transfer with multiple file pairs.
Transfers multiple source/destination pairs in a single task. More efficient than multiple individual transfers.
Args: source_endpoint: UUID of the source endpoint. dest_endpoint: UUID of the destination endpoint. items: List of transfer items. Each item is a dict with: - 'source_path': Path on source endpoint (required) - 'dest_path': Path on destination endpoint (required) - 'recursive': If True, transfer directory recursively (optional) sync_level: Sync strategy for existing files (see transfer()). label: Optional label for the transfer task. verify_checksum: If True, verify checksums after transfer. preserve_timestamp: If True, preserve modification times. encrypt_data: If True, encrypt data in transit.
Returns: Dict with 'task_id' and other task details.
Examples: # Transfer multiple files transfer_batch( source_endpoint="uuid1", dest_endpoint="uuid2", items=[ {'source_path': '/data/file1.txt', 'dest_path': '/backup/file1.txt'}, {'source_path': '/data/file2.txt', 'dest_path': '/backup/file2.txt'}, {'source_path': '/data/subdir', 'dest_path': '/backup/subdir', 'recursive': True}, ], label="Batch backup" )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_endpoint | Yes | ||
| dest_endpoint | Yes | ||
| items | Yes | ||
| sync_level | No | ||
| label | No | ||
| verify_checksum | No | ||
| preserve_timestamp | No | ||
| encrypt_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||