百度智能云

All Product Document

          Object Storage

          Data Copy

          Basic Introduction

          Copying data refers to copying some data in a bucket to another bucket without changing the original data content. Among them, archive storage type files need to be retrieved before copying, and archive types do not support updating meta. You can copy data through Copyobject interface provided by BOS.

          Usage Scenarios

          • Backup object: When you need to save the specified object backup, you should copy the object to another bucket by calling the Copyobject interface.
          • Rename object: When you need to rename an object, by calling the Copyobject interface, you first copy the original object, rename and save it, and then delete the source object.
          • Modify object's metadata: When you only need to modify the metadata of an object, you can also copy the object and save it in the same location by calling the Copyobject interface, that is, copy the source data and the destination data in the same location, and modify the metadata at the same time, so BOS will only update the object metadata.

          Operation Method

          BOS supports the use of API and SDK for object copy. Details are as follows:

          Note

          • You need the read and write permission of source object and target object, or the operations cannot be completed.
          • It is not allowed to copy the object (appendObject) generated by additional uploading.
          • Files smaller than 5GB use simple copy and BOS API interface is Copyobject
          • Files larger than 5GB use chunked copy and BOS API interface is UploadPartCopy.
          Previous
          Delete Data
          Next
          View of File List