OSS provides multiple methods to access and manage objects. This topic describes how to manage multiple objects at a time.

Upload multiple objects at a time

You can use the following methods to upload multiple objects at a time:
  • Use ossimport

    You can use ossimport to migrate data to OSS from data sources such as local servers, third-party cloud storage services such as S3, Azure Blob, and Tencent COS, and OSS. ossimport is especially suitable for scenarios with large amounts of data. For more information, see Architectures and configurations.

  • Use ossutil

    You can upload multiple objects to OSS at a time by adding the -r(--recursive) option to the cp command of ossutil. For more information, see Upload objects.

  • Use ossbrowser

    You can use ossbrowser to select multiple objects at a time and upload them to OSS. For more information, see Upload objects.

  • Use the OSS console

    You can use the OSS console to select multiple objects at a time and upload them to OSS. For more information, see Upload objects.

Download multiple objects at a time

You can use the following methods to download multiple objects at a time:
  • Use ossutil

    You can download multiple objects at a time from the specified directory to your local device by adding the -r(--recursive) option to the cp command of ossutil. For more information, see Download objects.

  • Use ossbrowser

    Use ossbrowser to select multiple objects or directories and download them to your local device at a time. For more information, see Download objects.

  • Use the OSS console

    You can use the OSS console to select multiple objects and download them to your local device at a time. For more information, see Download objects.

Copy multiple objects at a time

You can use the following methods to copy multiple objects at a time:
  • Use cross-region replication (CRR)

    You can use CRR to copy objects whose names contain a specific prefix at a time. You can also choose whether to synchronize historical data and whether to synchronize the delete operations. For more information, see Configure CRR.

  • Use ossutil

    You can copy multiple objects at a time from the specified directory to another directory or to another bucket under the same account by adding the -r(--recursive) option to the cp command of ossutil. For more information, see Copy objects.

  • Use ossbrowser

    You can use ossbrowser to select multiple folders or objects, and copy one or more objects to another directory or another bucket in the same account. For more information, see Copy objects.

Delete multiple objects at a time

You can use the following methods to delete multiple objects at a time:
Warning You cannot recover deleted objects. Exercise caution when you perform this operation.
  • Use OSS SDKs

    You can use SDKs to delete multiple objects at a time.

    For the SDK examples for other programming languages, see Introduction.
  • Use OSS APIs

    You can call the DeleteMultipleObjects operation to delete multiple objects at a time. For more information, see DeleteMultipleObjects.

  • Use ossutil

    You can delete multiple objects whose names contain a specific prefix by adding the -r(--recursive) option to the rm command of ossutil. For more information, see Delete objects.

  • Use ossbrowser

    You can use ossbrowser to select multiple objects or folders and delete them at a time. For more information, see Delete objects.

  • Use the OSS console
    • You can use the OSS console to select multiple objects and delete them at a time. For more information, see Delete objects.

      You can also directly delete a folder. All objects in the folder are deleted at the same time.

    • You can use the fragment management function of the OSS console to delete multiple parts at a time. For more information, see Manage parts.
  • Configure lifecycle rules

    You can configure lifecycle rules to automatically delete multiple objects at a time based on the lifecycle rules. For more information, see Manage object lifecycle.

Modify the storage classes of multiple objects at a time

You can use the following methods to modify the storage classes of multiple objects at a time:
  • Use ossutil

    You can modify the storage classes of specified objects at a time by adding the -r(--recursive) option to the set-meta command of ossutil. For more information, see set-meta.

  • Configure lifecycle rules

    You can configure lifecycle rules to automatically convert the storage classes of multiple objects at a time. For more information, see Manage object lifecycle.

Modify the access control lists (ACL) of multiple objects at a time

You can use ossutil to modify the ACLs of multiple objects at a time.
  • You can modify the ACLs of multiple objects at a time by adding the -r(--recursive) option to the set-acl command of ossutil. For more information, see set-acl.
  • You can modify the ACLs of multiple objects at a time by modifying the metadata of the specified objects by adding the -r(--recursive) option to the set-meta command of ossutil. For more information, see set-meta.

Restore multiple objects at a time

You can use the following methods to restore multiple archives from the frozen state to the readable state at a time:
  • Use ossutil

    You can restore multiple objects from the frozen state to the readable state at a time by adding the-r(--recursive) option to the restore command of ossutil. For more information, see restore.

  • Use ossbrowser

    You can use ossbrowser to select the objects to be restored and restore them at a time.

Configure the metadata of multiple objects at a time

You can use the following methods to modify the metadata of multiple objects at a time:
  • Use ossutil

    You can modify the metadata of the specified objects at a time by adding the -r(--recursive) option to the set-meta command of ossutil. For more information, see set-meta.

    You can use this command to modify the storage classes and ACLs of multiple objects at a time.

  • Use the OSS console

    You can modify the metadata of multiple objects at a time by selecting the objects for which you want to modify the information about HTTP headers. For more information, see Configure object HTTP headers.