Batch Managing Object
What batch operation does BOS support?
Baidu AI Cloud Object Storage (BOS) offers multiple methods to access and manage files (objects). This document explains how to manage objects in batches.
Batch upload
You can use the following methods to upload files in batches:
| Method | Description |
|---|---|
| BOS console | Use the BOS Management Console to select and upload multiple files to BOS at once. For details, please refer to Upload Files. |
| BOS desktop tool | Use the official graphical management tool BOS Browser to upload objects in batches, supporting selection or drag-and-drop upload. For details, please refer to File/Folder Upload. |
| BOS CMD/CLI | Use BOS CMD/CLI to upload objects in batches. For details, please refer to BOS CMD - Upload Object and BOS CLI - Upload Object. |
Batch download
You can use the following methods to download files in batches:
| Method | Description |
|---|---|
| BOS desktop tool | Use BOS Browser to check multiple files or folders and download them to your local device in batches. For details, please refer to File/Folder Download. |
| BOS CMD/CLI | Use BOS CMD/CLI to download objects in batches. For details, please refer to BOS CMD - Download Object and BOS CLI - Download Object. |
Batch sharing
You can use the following methods to share files in batches:
| Method | Description |
|---|---|
| BOS console |
Batch export file URLs: Use the BOS Management Console, check multiple files, and then choose Batch Operation > Export File URL to generate a CSV file containing the URLs of the selected files. These URLs can be shared with third parties for preview or download. For details, please refer to Share Files - Get File URLs. |
|
Batch sharing via Baidu Netdisk (allow list function): Use the BOS Management Console, check multiple files, and then choose Batch Operation > Netdisk Sharing to sync files to Baidu Netdisk in batches. After setting, a sharing link can be generated. For details, please refer to Linkage with Baidu Netdisk Sharing. |
Batch data replication
You can use the following methods to copy files in batches:
| Method | Description |
|---|---|
| Data synchronization | The data synchronization function can meet the needs of cross-region, cross-account, or other data replication for buckets. Currently, BOS supports cross-region replication via console, API, and SDK. For details, please refer to Data Synchronization. |
| BOS Browser | Use BOS Browser to check multiple files for batch replication. For details, please refer to File Copy. |
| BOS CMD/CLI | Use BOS CMD/CLI to achieve batch file replication. For details, please refer to BOS CMD-Copy Object, BOS CLI-Copy Object. |
Batch delete
Note: Deleted files cannot be recovered. Please proceed with caution.
You can use the following methods to delete files in batches:
| Method | Description |
|---|---|
| BOS console | Using BOS Management Console, check multiple objects And then choose Batch Operations > Delete to delete multiple objects. For details, please refer to Delete Files. |
| Use the part management function in the BOS console to delete part files in batches. For details, please refer to Part Management. | |
| Use lifecycle management to automatically delete files in batches. For details, please refer to Manage Lifecycle. | |
| BOS desktop tool | Use BOS Browser to check multiple files or folders for batch deletion. For details, please refer to File Deletion. |
| BOS API | Use the DeleteMultipleObjects API of BOS to delete files in batches. For details, please refer to DeleteMultipleObjects. |
| BOS SDK | Use BOS SDK to delete files in batches. For SDK examples in more languages, please refer to SDK Overview. |
| BOS CMD/CLI | Use BOS CMD/CLI to delete objects in batches. For details, please refer to BOS CMD-Delete Object, BOS CLI-Delete Object. |
| BOS-Util Batch Operation Tool | BOS-Util It is a command-line interface for managing BOS data, written in Java, providing batch operations for BOS data. Use Use the DELETE_OBJECTS command of BOS-Util to delete objects in batches. For details, please refer to DELETE_OBJECTS Command . |
Batch conversion of file storage classes
You can use the following methods to modify the storage class of files in batches:
| Method | Description |
|---|---|
| BOS console | Using the BOS management console, check multiple files or folders and choose Batch Operation > Convert Storage Class to perform batch conversion of file storage classes. For details, please refer to Convert File Storage Class. |
Modify file access permissions in batches (ACL)
You can use the following methods to modify file ACLs in batches:
| Method | Description |
|---|---|
| BOS-Util Batch Operation Tool | Using the SET_OBJECTS_ACL command in BOS-Util, you can set the ACL of objects in batches. For details, please refer to SET_OBJECTS_ACL. |
Restore archive storage class files in batches
You can use the following methods to restore archive storage class files in batches. After restoration, the files will be thawed from a frozen state to readable:
| Method | Description |
|---|---|
| BOS console | In the BOS management console, select multiple archive storage objects and choose Batch Operation > Restore to perform batch restoration. |
Set file Meta information in batches
You can use the following methods to modify file Meta information in batches:
| Method | Description |
|---|---|
| BOS-Util Batch Operation Tool | Using the SET_OBJECTS_META command in BOS-Util, you can modify the meta information of objects in batches. For details, please refer to SET_OBJECTS_META Command. |
