diff --git a/docs/obs/tool-obsutil/ALL_META.TXT.json b/docs/obs/tool-obsutil/ALL_META.TXT.json new file mode 100644 index 000000000..be1688fc5 --- /dev/null +++ b/docs/obs/tool-obsutil/ALL_META.TXT.json @@ -0,0 +1,1410 @@ +[ + { + "dockw":"OBS Client Guide (obsutil)" + }, + { + "uri":"obs_11_0001.html", + "node_id":"obs_11_0001.xml", + "product_code":"obs", + "code":"1", + "des":"obsutil is a command line tool for accessing and managing OBS. You can use this tool to create buckets and upload, download, or delete files/folders. If you are familiar ", + "doc_type":"utiltg", + "kw":"obsutil Introduction,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"obsutil Introduction", + "githuburl":"" + }, + { + "uri":"obs_11_0003.html", + "node_id":"obs_11_0003.xml", + "product_code":"obs", + "code":"2", + "des":"Table 1 lists the download links of obsutil for different OSs.Download links of obsutilOSSoftware PackageManual Verification Signature FileAutomatic Verification Signatur", + "doc_type":"utiltg", + "kw":"obsutil,OBS,Downloading and Installing obsutil,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Downloading and Installing obsutil", + "githuburl":"" + }, + { + "uri":"obs_11_0002.html", + "node_id":"obs_11_0002.xml", + "product_code":"obs", + "code":"3", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Getting Started", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Getting Started", + "githuburl":"" + }, + { + "uri":"obs_11_0061.html", + "node_id":"obs_11_0061.xml", + "product_code":"obs", + "code":"4", + "des":"When you call APIs, you need to use the AK and SK for authentication. To obtain the AK and SK, perform the following steps:This step is required only when you have enable", + "doc_type":"utiltg", + "kw":"Creating Access Keys (AK and SK),Getting Started,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg", + "opensource":"true" + } + ], + "title":"Creating Access Keys (AK and SK)", + "githuburl":"" + }, + { + "uri":"obs_11_0005.html", + "node_id":"obs_11_0005.xml", + "product_code":"obs", + "code":"5", + "des":"Before using obsutil, you need to configure the OBS endpoint and AK/SK for obsutil to interconnect with OBS. Then, you can use obsutil to operate OBS buckets and objects.", + "doc_type":"utiltg", + "kw":"AK,SK,access keys,AK/SK setting,Initializing the Configuration,Getting Started,OBS Client Guide (obs", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Initializing the Configuration", + "githuburl":"" + }, + { + "uri":"obs_11_0006.html", + "node_id":"obs_11_0006.xml", + "product_code":"obs", + "code":"6", + "des":"This section uses the Linux OS as an example to describe how to use obsutil to perform basic operations in OBS. For details, see .You have obtained obsutil and completed ", + "doc_type":"utiltg", + "kw":"Quick Start,Getting Started,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Quick Start", + "githuburl":"" + }, + { + "uri":"obs_11_0007.html", + "node_id":"obs_11_0007.xml", + "product_code":"obs", + "code":"7", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Bucket Commands", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Bucket Commands", + "githuburl":"" + }, + { + "uri":"obs_11_0008.html", + "node_id":"obs_11_0008.xml", + "product_code":"obs", + "code":"8", + "des":"You can use this command to create a bucket. A bucket name must be unique in OBS. One account can create a maximum of 100 buckets.If you create a bucket and name it the s", + "doc_type":"utiltg", + "kw":"Creating a Bucket,Bucket Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Creating a Bucket", + "githuburl":"" + }, + { + "uri":"obs_11_0009.html", + "node_id":"obs_11_0009.xml", + "product_code":"obs", + "code":"9", + "des":"You can use this command to obtain the bucket list. In the list, bucket names are displayed in lexicographical order.In Windowsobsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [", + "doc_type":"utiltg", + "kw":"Listing Buckets,Bucket Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Listing Buckets", + "githuburl":"" + }, + { + "uri":"obs_11_0010.html", + "node_id":"obs_11_0010.xml", + "product_code":"obs", + "code":"10", + "des":"You can use this command to query the basic properties of a bucket, including its default storage class, region, version ID, storage usage, bucket quota, whether it suppo", + "doc_type":"utiltg", + "kw":"Querying Bucket Properties,Bucket Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Querying Bucket Properties", + "githuburl":"" + }, + { + "uri":"obs_11_0040.html", + "node_id":"obs_11_0040.xml", + "product_code":"obs", + "code":"11", + "des":"You can use this command to set the properties of a bucket, such as storage classes and access policies.In Windowsobsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclX", + "doc_type":"utiltg", + "kw":"Setting Bucket Properties,Bucket Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Setting Bucket Properties", + "githuburl":"" + }, + { + "uri":"obs_11_0011.html", + "node_id":"obs_11_0011.xml", + "product_code":"obs", + "code":"12", + "des":"You can use this command to delete a bucket. The bucket to be deleted must be empty (containing no objects, historical versions, or fragments).To delete a non-empty bucke", + "doc_type":"utiltg", + "kw":"Deleting a Bucket,Bucket Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Deleting a Bucket", + "githuburl":"" + }, + { + "uri":"obs_11_0012.html", + "node_id":"obs_11_0012.xml", + "product_code":"obs", + "code":"13", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Object Commands", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Object Commands", + "githuburl":"" + }, + { + "uri":"obs_11_0050.html", + "node_id":"obs_11_0050.xml", + "product_code":"obs", + "code":"14", + "des":"You can use this command to create a folder in a specified bucket or local file system.No error is returned if a folder with the same name as an existing one is created, ", + "doc_type":"utiltg", + "kw":"Creating a Folder,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Creating a Folder", + "githuburl":"" + }, + { + "uri":"obs_11_0013.html", + "node_id":"obs_11_0013.xml", + "product_code":"obs", + "code":"15", + "des":"You can use this command to upload one or more local files or folders to a specified path in OBS. These files can be texts, images, videos, or any other type of files.Do ", + "doc_type":"utiltg", + "kw":"Uploading an Object,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Uploading an Object", + "githuburl":"" + }, + { + "uri":"obs_11_0015.html", + "node_id":"obs_11_0015.xml", + "product_code":"obs", + "code":"16", + "des":"You can use this command to query the basic properties of an object.In Windowsobsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]In Linux or macOS./obsutil stat o", + "doc_type":"utiltg", + "kw":"Querying Object Properties,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Querying Object Properties", + "githuburl":"" + }, + { + "uri":"obs_11_0041.html", + "node_id":"obs_11_0041.xml", + "product_code":"obs", + "code":"17", + "des":"You can use this command to set properties of an object or set properties of objects in batches by a specified object name prefix.You can set storage classes only for buc", + "doc_type":"utiltg", + "kw":"Setting Object Properties,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Setting Object Properties", + "githuburl":"" + }, + { + "uri":"obs_11_0014.html", + "node_id":"obs_11_0014.xml", + "product_code":"obs", + "code":"18", + "des":"You can use this command to query objects or object versions in a bucket. All objects are listed in lexicographical order by object name and version ID.In Windowsobsutil ", + "doc_type":"utiltg", + "kw":"Listing Objects,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Listing Objects", + "githuburl":"" + }, + { + "uri":"obs_11_0017.html", + "node_id":"obs_11_0017.xml", + "product_code":"obs", + "code":"19", + "des":"You can use this command to copy a single object or copy objects in batches by a specified object name prefix.Do not change the source objects in the OBS bucket when copy", + "doc_type":"utiltg", + "kw":"Copying an Object,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Copying an Object", + "githuburl":"" + }, + { + "uri":"obs_11_0053.html", + "node_id":"obs_11_0053.xml", + "product_code":"obs", + "code":"20", + "des":"You can use this command to move a single object or move objects in batches by a specified object name prefix.Do not change the source objects in the OBS bucket when movi", + "doc_type":"utiltg", + "kw":"Moving an Object,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Moving an Object", + "githuburl":"" + }, + { + "uri":"obs_11_0018.html", + "node_id":"obs_11_0018.xml", + "product_code":"obs", + "code":"21", + "des":"You can use this command to download an object or download objects in batches by object name prefix to your local PC.Do not change the source objects in the OBS bucket wh", + "doc_type":"utiltg", + "kw":"Downloading an Object,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Downloading an Object", + "githuburl":"" + }, + { + "uri":"obs_11_0051.html", + "node_id":"obs_11_0051.xml", + "product_code":"obs", + "code":"22", + "des":"You can use this command to generate the download link of a specified object in a bucket or generate the download links of objects in a bucket in batches by object name p", + "doc_type":"utiltg", + "kw":"Generating the Download Link of an Object,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Generating the Download Link of an Object", + "githuburl":"" + }, + { + "uri":"obs_11_0021.html", + "node_id":"obs_11_0021.xml", + "product_code":"obs", + "code":"23", + "des":"You can use this command to delete a specified object.You can also use this command to delete objects in batches based on a specified object name prefix.The delete operat", + "doc_type":"utiltg", + "kw":"Deleting an Object,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Deleting an Object", + "githuburl":"" + }, + { + "uri":"obs_11_0042.html", + "node_id":"obs_11_0042.xml", + "product_code":"obs", + "code":"24", + "des":"You can use this command to synchronize all content in a local source path to the specified target OBS bucket to ensure data consistency. Incremental synchronization has ", + "doc_type":"utiltg", + "kw":"Synchronously Uploading Incremental Objects,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Synchronously Uploading Incremental Objects", + "githuburl":"" + }, + { + "uri":"obs_11_0044.html", + "node_id":"obs_11_0044.xml", + "product_code":"obs", + "code":"25", + "des":"You can use this command to synchronize all objects in a specified path of the source bucket to a specified path in the target bucket to ensure data consistency. Incremen", + "doc_type":"utiltg", + "kw":"Synchronously Copying Incremental Objects,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Synchronously Copying Incremental Objects", + "githuburl":"" + }, + { + "uri":"obs_11_0043.html", + "node_id":"obs_11_0043.xml", + "product_code":"obs", + "code":"26", + "des":"You can use this command to synchronize all objects in a specified path of the source OBS bucket to a target local path to ensure data consistency. Incremental synchroniz", + "doc_type":"utiltg", + "kw":"Synchronously Downloading Incremental Objects,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Synchronously Downloading Incremental Objects", + "githuburl":"" + }, + { + "uri":"obs_11_0016.html", + "node_id":"obs_11_0016.xml", + "product_code":"obs", + "code":"27", + "des":"You can use this command to restore a specified cold object or restore cold objects with a specific prefix in batches.Object content cannot be read during restoration.Aft", + "doc_type":"utiltg", + "kw":"Restoring Objects from the Cold Storage,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Restoring Objects from the Cold Storage", + "githuburl":"" + }, + { + "uri":"obs_11_0036.html", + "node_id":"obs_11_0036.xml", + "product_code":"obs", + "code":"28", + "des":"You can use this command to resume a failed upload task based on the task ID.In Windowsobsutil cp -recover=xxx [-arcDir=xxx] [-dryRun] [-f] [-u] [-vlength] [-vmd5] [-j=1]", + "doc_type":"utiltg", + "kw":"Resuming a Failed Upload Task,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Resuming a Failed Upload Task", + "githuburl":"" + }, + { + "uri":"obs_11_0037.html", + "node_id":"obs_11_0037.xml", + "product_code":"obs", + "code":"29", + "des":"You can use this command to resume a failed copy task based on the task ID.In Windowsobsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [", + "doc_type":"utiltg", + "kw":"Resuming a Failed Copy Task,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Resuming a Failed Copy Task", + "githuburl":"" + }, + { + "uri":"obs_11_0038.html", + "node_id":"obs_11_0038.xml", + "product_code":"obs", + "code":"30", + "des":"You can use this command to resume a failed download task based on the task ID.In Windowsobsutil cp -recover=xxx [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5]", + "doc_type":"utiltg", + "kw":"Resuming a Failed Download Task,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Resuming a Failed Download Task", + "githuburl":"" + }, + { + "uri":"obs_11_0019.html", + "node_id":"obs_11_0019.xml", + "product_code":"obs", + "code":"31", + "des":"You can use this command to query multipart upload tasks in a bucket.In Windowsobsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-li", + "doc_type":"utiltg", + "kw":"Listing Multipart Upload Tasks,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Listing Multipart Upload Tasks", + "githuburl":"" + }, + { + "uri":"obs_11_0020.html", + "node_id":"obs_11_0020.xml", + "product_code":"obs", + "code":"32", + "des":"You can use this command to delete a multipart upload task in a specified bucket by using the multipart upload ID.You can also use this command to delete multipart upload", + "doc_type":"utiltg", + "kw":"Deleting a Multipart Upload Task,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Deleting a Multipart Upload Task", + "githuburl":"" + }, + { + "uri":"obs_11_0062.html", + "node_id":"obs_11_0062.xml", + "product_code":"obs", + "code":"33", + "des":"You can use this command to specify the bucket name, object name prefix, and access code to create an authorization code for directory sharing.In Windowsobsutil create-sh", + "doc_type":"utiltg", + "kw":"Creating an Authorization Code for Directory Sharing,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Creating an Authorization Code for Directory Sharing", + "githuburl":"" + }, + { + "uri":"obs_11_0063.html", + "node_id":"obs_11_0063.xml", + "product_code":"obs", + "code":"34", + "des":"You can use this command to query objects in a bucket with an authorization code. The returned objects are sorted in lexicographical order.In WindowsEnter an authorizatio", + "doc_type":"utiltg", + "kw":"Listing Objects by Using an Authorization Code,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Listing Objects by Using an Authorization Code", + "githuburl":"" + }, + { + "uri":"obs_11_0064.html", + "node_id":"obs_11_0064.xml", + "product_code":"obs", + "code":"35", + "des":"You can use this command to download an object or download objects in a batch by object name prefix to your local PC.Do not change the source objects in the OBS bucket wh", + "doc_type":"utiltg", + "kw":"Downloading Objects by Using an Authorization Code,Object Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Downloading Objects by Using an Authorization Code", + "githuburl":"" + }, + { + "uri":"obs_11_0022.html", + "node_id":"obs_11_0022.xml", + "product_code":"obs", + "code":"36", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Auxiliary Commands", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Auxiliary Commands", + "githuburl":"" + }, + { + "uri":"obs_11_0023.html", + "node_id":"obs_11_0023.xml", + "product_code":"obs", + "code":"37", + "des":"You can update items in the .obsutilconfig file, including the endpoint, AK, SK, and token.Configuration Parameters describes parameters in the .obsutilconfig file.In Win", + "doc_type":"utiltg", + "kw":"Updating a Configuration File,Auxiliary Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Updating a Configuration File", + "githuburl":"" + }, + { + "uri":"obs_11_0024.html", + "node_id":"obs_11_0024.xml", + "product_code":"obs", + "code":"38", + "des":"You can use this command to delete part records from a specified directory.In Windowsobsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]In Linux or macOS./obsutil", + "doc_type":"utiltg", + "kw":"Deleting Part Records,Auxiliary Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Deleting Part Records", + "githuburl":"" + }, + { + "uri":"obs_11_0025.html", + "node_id":"obs_11_0025.xml", + "product_code":"obs", + "code":"39", + "des":"You can use this command to view the commands supported by obsutil or view the help information of a specific command.In Windowsobsutil help [command]In Linux or macOS./o", + "doc_type":"utiltg", + "kw":"Viewing Command Help Information,Auxiliary Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Viewing Command Help Information", + "githuburl":"" + }, + { + "uri":"obs_11_0026.html", + "node_id":"obs_11_0026.xml", + "product_code":"obs", + "code":"40", + "des":"You can use this command to query the current version of obsutil.In Windowsobsutil versionIn Linux or macOS./obsutil versionTake the Windows OS as an example.", + "doc_type":"utiltg", + "kw":"Querying the Version Number,Auxiliary Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Querying the Version Number", + "githuburl":"" + }, + { + "uri":"obs_11_0045.html", + "node_id":"obs_11_0045.xml", + "product_code":"obs", + "code":"41", + "des":"You can use this command to archive log files to a local PC or to a specified bucket.In WindowsArchiving to a local PCobsutil archive [file_or_folder_url] [-config=xxx]Ar", + "doc_type":"utiltg", + "kw":"Archiving Log Files,Auxiliary Commands,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Archiving Log Files", + "githuburl":"" + }, + { + "uri":"obs_11_0027.html", + "node_id":"obs_11_0027.xml", + "product_code":"obs", + "code":"42", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Common Examples", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Common Examples", + "githuburl":"" + }, + { + "uri":"obs_11_0028.html", + "node_id":"obs_11_0028.xml", + "product_code":"obs", + "code":"43", + "des":"All commands in this section use the Linux operating system as an example to describe how to upload files.Assume that a local folder is in the following structure:Based o", + "doc_type":"utiltg", + "kw":"Upload,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Upload", + "githuburl":"" + }, + { + "uri":"obs_11_0046.html", + "node_id":"obs_11_0046.xml", + "product_code":"obs", + "code":"44", + "des":"All commands in this section use the Linux operating system as an example to describe how to perform synchronous upload operations.Assume that a local folder is in the fo", + "doc_type":"utiltg", + "kw":"Synchronous Upload,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Synchronous Upload", + "githuburl":"" + }, + { + "uri":"obs_11_0029.html", + "node_id":"obs_11_0029.xml", + "product_code":"obs", + "code":"45", + "des":"All commands in this section use the Linux operating system as an example to describe how to download files.Assume that bucket bucket-test contains the following objects:", + "doc_type":"utiltg", + "kw":"Download,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Download", + "githuburl":"" + }, + { + "uri":"obs_11_0047.html", + "node_id":"obs_11_0047.xml", + "product_code":"obs", + "code":"46", + "des":"All commands in this section use the Linux operating system as an example to describe how to perform synchronous download operations.Assume that bucket bucket-test contai", + "doc_type":"utiltg", + "kw":"Synchronous Download,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Synchronous Download", + "githuburl":"" + }, + { + "uri":"obs_11_0030.html", + "node_id":"obs_11_0030.xml", + "product_code":"obs", + "code":"47", + "des":"All commands in this section use the Linux operating system as an example to describe how to copy files.Assume that bucket bucket-src contains the following objects:Based", + "doc_type":"utiltg", + "kw":"Copy,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Copy", + "githuburl":"" + }, + { + "uri":"obs_11_0048.html", + "node_id":"obs_11_0048.xml", + "product_code":"obs", + "code":"48", + "des":"All commands in this section use the Linux operating system as an example to describe how to perform synchronous copy operations.Assume that the source bucket bucket-src ", + "doc_type":"utiltg", + "kw":"Synchronous Copy,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Synchronous Copy", + "githuburl":"" + }, + { + "uri":"obs_11_0031.html", + "node_id":"obs_11_0031.xml", + "product_code":"obs", + "code":"49", + "des":"All commands in this section use the Linux operating system as an example to describe how to list files.Assume that bucket bucket-test contains the following objects:Base", + "doc_type":"utiltg", + "kw":"Listing,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Listing", + "githuburl":"" + }, + { + "uri":"obs_11_0032.html", + "node_id":"obs_11_0032.xml", + "product_code":"obs", + "code":"50", + "des":"All commands in this section use the Linux operating system as an example to describe how to list multipart upload tasks.Assume that bucket bucket-test contains the follo", + "doc_type":"utiltg", + "kw":"Listing Multipart Upload Tasks,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Listing Multipart Upload Tasks", + "githuburl":"" + }, + { + "uri":"obs_11_0065.html", + "node_id":"obs_11_0065.xml", + "product_code":"obs", + "code":"51", + "des":"All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.Assume that bucket bucket-test ", + "doc_type":"utiltg", + "kw":"Deleting All Multipart Upload Tasks in a Bucket,Common Examples,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Deleting All Multipart Upload Tasks in a Bucket", + "githuburl":"" + }, + { + "uri":"obs_11_0054.html", + "node_id":"obs_11_0054.xml", + "product_code":"obs", + "code":"52", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Fault Locating", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Fault Locating", + "githuburl":"" + }, + { + "uri":"obs_11_0055.html", + "node_id":"obs_11_0055.xml", + "product_code":"obs", + "code":"53", + "des":"obsutil provides multiple methods for users to locate and analyze faults. Table 1 details the methods. Generally, you need to combine these methods for a precise fault lo", + "doc_type":"utiltg", + "kw":"Overview,Fault Locating,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Overview", + "githuburl":"" + }, + { + "uri":"obs_11_0056.html", + "node_id":"obs_11_0056.xml", + "product_code":"obs", + "code":"54", + "des":"obsutil log files include tool logs and SDK logs. You can add the following parameters to the .obsutilconfig file to enable the two logging functions.Tool logging (record", + "doc_type":"utiltg", + "kw":"Log Files,Fault Locating,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Log Files", + "githuburl":"" + }, + { + "uri":"obs_11_0057.html", + "node_id":"obs_11_0057.xml", + "product_code":"obs", + "code":"55", + "des":"Result files are generated when batch tasks complete. By default, they are saved to the subfolder .obsutil_output in the home directory of the user who executes obsutil c", + "doc_type":"utiltg", + "kw":"Result Lists,Fault Locating,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Result Lists", + "githuburl":"" + }, + { + "uri":"obs_11_0058.html", + "node_id":"obs_11_0058.xml", + "product_code":"obs", + "code":"56", + "des":"If obsutil is invoked by processes, the command output cannot be viewed in real time. obsutil generates different return codes based on different execution results. Table", + "doc_type":"utiltg", + "kw":"Return Codes,Fault Locating,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Return Codes", + "githuburl":"" + }, + { + "uri":"obs_11_0033.html", + "node_id":"obs_11_0033.xml", + "product_code":"obs", + "code":"57", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Best Practices", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Best Practices", + "githuburl":"" + }, + { + "uri":"obs_11_0066.html", + "node_id":"obs_11_0066.xml", + "product_code":"obs", + "code":"58", + "des":"obsutil provides help commands for viewing the help documents of each command. To query the help document of the bucket creation command, perform the following steps:For ", + "doc_type":"utiltg", + "kw":"Using the obsutil help Command to Search for Functions,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Using the obsutil help Command to Search for Functions", + "githuburl":"" + }, + { + "uri":"obs_11_0034.html", + "node_id":"obs_11_0034.xml", + "product_code":"obs", + "code":"59", + "des":"Go to the /root directory at 21:30 every day and upload the /src/src1 folder to bucket obs://bucket-test in the incremental mode.You have properly enabled the scheduled c", + "doc_type":"utiltg", + "kw":"Configuring Scheduled Tasks Using the Crontab Command,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Configuring Scheduled Tasks Using the Crontab Command", + "githuburl":"" + }, + { + "uri":"obs_11_0049.html", + "node_id":"obs_11_0049.xml", + "product_code":"obs", + "code":"60", + "des":"Because obsutil is external software, you need to access the directory where obsutil resides before running obsutil commands, which is not convenient.An OS provides built", + "doc_type":"utiltg", + "kw":"Setting obsutil Commands as Built-in Commands,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Setting obsutil Commands as Built-in Commands", + "githuburl":"" + }, + { + "uri":"obs_11_0052.html", + "node_id":"obs_11_0052.xml", + "product_code":"obs", + "code":"61", + "des":"By default, obsutil uploads, downloads, and copies files or objects whose size is greater than 50 MB in multiple parts. Table 1 details related parameters in the .obsutil", + "doc_type":"utiltg", + "kw":"Fine-Tuning obsutil Performance,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Fine-Tuning obsutil Performance", + "githuburl":"" + }, + { + "uri":"obs_11_0059.html", + "node_id":"obs_11_0059.xml", + "product_code":"obs", + "code":"62", + "des":"obsutil supports resumable data transfer (upload, download, and copy) for large files by using the multipart algorithms for upload, download, and copy. You can set the th", + "doc_type":"utiltg", + "kw":"Using obsutil for Resumable Data Transfer,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Using obsutil for Resumable Data Transfer", + "githuburl":"" + }, + { + "uri":"obs_11_0060.html", + "node_id":"obs_11_0060.xml", + "product_code":"obs", + "code":"63", + "des":"obsutil supports the upload of the real path to which the symbolic link points when a file or folder is uploaded. You can specify the command-level parameter link to impl", + "doc_type":"utiltg", + "kw":"Using obsutil to Upload a Symbolic Link,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Using obsutil to Upload a Symbolic Link", + "githuburl":"" + }, + { + "uri":"obs_11_0068.html", + "node_id":"obs_11_0068.xml", + "product_code":"obs", + "code":"64", + "des":"You can configure an HTTP proxy in either of the following ways:Method 1: Set the proxyUrl parameter in the .obsutilconfig file, for example, proxyUrl=http://username:pas", + "doc_type":"utiltg", + "kw":"Configuring an HTTP Proxy for obsutil,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Configuring an HTTP Proxy for obsutil", + "githuburl":"" + }, + { + "uri":"obs_11_0069.html", + "node_id":"obs_11_0069.xml", + "product_code":"obs", + "code":"65", + "des":"The directory sharing function allows the owner of a bucket to share directories in a bucket or the entire bucket with other users by using the authorization code and acc", + "doc_type":"utiltg", + "kw":"Using obsutil to Share Directories,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Using obsutil to Share Directories", + "githuburl":"" + }, + { + "uri":"obs_11_0039.html", + "node_id":"obs_11_0039.xml", + "product_code":"obs", + "code":"66", + "des":"obsutil client supports cross-region replication. You can directly replicate data from a source bucket to the destination bucket through data streams. The source bucket a", + "doc_type":"utiltg", + "kw":"Using obsutil to Replicate Data Across Regions on the Client Side,Best Practices,OBS Client Guide (o", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Using obsutil to Replicate Data Across Regions on the Client Side", + "githuburl":"" + }, + { + "uri":"obs_11_0073.html", + "node_id":"obs_11_0073.xml", + "product_code":"obs", + "code":"67", + "des":"obsutil allows you to configure the rateLimitThreshold parameter in the .obsutilconfig file to limit the upload and download rate.For detailed parameter description, see ", + "doc_type":"utiltg", + "kw":"Limiting the Upload and Download Rate for obsutil,Best Practices,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Limiting the Upload and Download Rate for obsutil", + "githuburl":"" + }, + { + "uri":"obs_11_0074.html", + "node_id":"obs_11_0074.xml", + "product_code":"obs", + "code":"68", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"FAQs", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"FAQs", + "githuburl":"" + }, + { + "uri":"obs_11_0075.html", + "node_id":"obs_11_0075.xml", + "product_code":"obs", + "code":"69", + "des":"No.obsutil allows you to upload your local directory to an OBS bucket. After the synchronization, if you delete some files in the local directory and then perform an incr", + "doc_type":"utiltg", + "kw":"After Some Files Are Deleted in My Local Directory, Can obsutil Synchronously Delete Them from the B", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"After Some Files Are Deleted in My Local Directory, Can obsutil Synchronously Delete Them from the Bucket?", + "githuburl":"" + }, + { + "uri":"obs_11_0076.html", + "node_id":"obs_11_0076.xml", + "product_code":"obs", + "code":"70", + "des":"obsutil does not allow you to directly save a listing result to a local file, but you can redirect a listing result displayed on the screen in standard output to a specif", + "doc_type":"utiltg", + "kw":"Can I Use obsutil to Directly Save a Listing Result to a Local File?,FAQs,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Can I Use obsutil to Directly Save a Listing Result to a Local File?", + "githuburl":"" + }, + { + "uri":"obs_11_0077.html", + "node_id":"obs_11_0077.xml", + "product_code":"obs", + "code":"71", + "des":"When you use obsutil to list all objects in a bucket, the listing result contains the total size of the objects. If the total size is different from that on OBS Console o", + "doc_type":"utiltg", + "kw":"Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?,FAQs,OBS Client", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?", + "githuburl":"" + }, + { + "uri":"obs_11_0078.html", + "node_id":"obs_11_0078.xml", + "product_code":"obs", + "code":"72", + "des":"After a batch task is completed, there will be results telling you how many tasks succeeded or failed. To find out why those tasks failed, you can check their failure res", + "doc_type":"utiltg", + "kw":"How Can I Find Out Why Some Tasks in a Batch Task Failed?,FAQs,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"How Can I Find Out Why Some Tasks in a Batch Task Failed?", + "githuburl":"" + }, + { + "uri":"obs_11_0079.html", + "node_id":"obs_11_0079.xml", + "product_code":"obs", + "code":"73", + "des":"I/O timeout and EOF errors usually occur when requests fail due to network fluctuations. Go through the following list to locate the cause.Ping the bucket domain name (bu", + "doc_type":"utiltg", + "kw":"How Can I Locate and Rectify I/O Timeout and EOF Errors?,FAQs,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"How Can I Locate and Rectify I/O Timeout and EOF Errors?", + "githuburl":"" + }, + { + "uri":"obs_11_0080.html", + "node_id":"obs_11_0080.xml", + "product_code":"obs", + "code":"74", + "des":"Possible causes:When a batch upload or download task is being executed, if there are a large number of objects involved, obsutil needs to traverse all objects to collect ", + "doc_type":"utiltg", + "kw":"Why Is a Question Mark Displayed in the Batch Task Progress Bar?,FAQs,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Why Is a Question Mark Displayed in the Batch Task Progress Bar?", + "githuburl":"" + }, + { + "uri":"obs_11_0081.html", + "node_id":"obs_11_0081.xml", + "product_code":"obs", + "code":"75", + "des":"No.obsutil allows you to configure multiple config files, but they cannot be stored in the same directory due to encryption requirements.If multiple config files are requ", + "doc_type":"utiltg", + "kw":"Can Multiple config Files Be Placed in One Directory?,FAQs,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Can Multiple config Files Be Placed in One Directory?", + "githuburl":"" + }, + { + "uri":"obs_11_0084.html", + "node_id":"obs_11_0084.xml", + "product_code":"obs", + "code":"76", + "des":"Yes. You can run the mv command to rename an object or a folder. The following give two examples in Windows.Running obsutil mv obs://bucket-test/key obs://bucket-test/key", + "doc_type":"utiltg", + "kw":"Can I Rename an Object or a Folder?,FAQs,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Can I Rename an Object or a Folder?", + "githuburl":"" + }, + { + "uri":"obs_11_0035.html", + "node_id":"obs_11_0035.xml", + "product_code":"obs", + "code":"77", + "des":"You can set obsutil parameters in the .obsutilconfig file.Configuration file format:Table 1 describes the parameters.Set parameters with N/A as the recommended value base", + "doc_type":"utiltg", + "kw":"Configuration Parameters,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Configuration Parameters", + "githuburl":"" + }, + { + "uri":"obs_11_0000.html", + "node_id":"obs_11_0000.xml", + "product_code":"obs", + "code":"78", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"utiltg", + "kw":"Change History,OBS Client Guide (obsutil)", + "search_title":"", + "metedata":[ + { + "prodname":"obs", + "documenttype":"utiltg" + } + ], + "title":"Change History", + "githuburl":"" + } +] \ No newline at end of file diff --git a/docs/obs/tool-obsutil/CLASS.TXT.json b/docs/obs/tool-obsutil/CLASS.TXT.json new file mode 100644 index 000000000..2350690e2 --- /dev/null +++ b/docs/obs/tool-obsutil/CLASS.TXT.json @@ -0,0 +1,704 @@ +[ + { + "desc":"obsutil is a command line tool for accessing and managing OBS. You can use this tool to create buckets and upload, download, or delete files/folders. If you are familiar ", + "product_code":"obs", + "title":"obsutil Introduction", + "uri":"obs_11_0001.html", + "doc_type":"utiltg", + "p_code":"", + "code":"1" + }, + { + "desc":"Table 1 lists the download links of obsutil for different OSs.Download links of obsutilOSSoftware PackageManual Verification Signature FileAutomatic Verification Signatur", + "product_code":"obs", + "title":"Downloading and Installing obsutil", + "uri":"obs_11_0003.html", + "doc_type":"utiltg", + "p_code":"", + "code":"2" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Getting Started", + "uri":"obs_11_0002.html", + "doc_type":"utiltg", + "p_code":"", + "code":"3" + }, + { + "desc":"When you call APIs, you need to use the AK and SK for authentication. To obtain the AK and SK, perform the following steps:This step is required only when you have enable", + "product_code":"obs", + "title":"Creating Access Keys (AK and SK)", + "uri":"obs_11_0061.html", + "doc_type":"utiltg", + "p_code":"3", + "code":"4" + }, + { + "desc":"Before using obsutil, you need to configure the OBS endpoint and AK/SK for obsutil to interconnect with OBS. Then, you can use obsutil to operate OBS buckets and objects.", + "product_code":"obs", + "title":"Initializing the Configuration", + "uri":"obs_11_0005.html", + "doc_type":"utiltg", + "p_code":"3", + "code":"5" + }, + { + "desc":"This section uses the Linux OS as an example to describe how to use obsutil to perform basic operations in OBS. For details, see .You have obtained obsutil and completed ", + "product_code":"obs", + "title":"Quick Start", + "uri":"obs_11_0006.html", + "doc_type":"utiltg", + "p_code":"3", + "code":"6" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Bucket Commands", + "uri":"obs_11_0007.html", + "doc_type":"utiltg", + "p_code":"", + "code":"7" + }, + { + "desc":"You can use this command to create a bucket. A bucket name must be unique in OBS. One account can create a maximum of 100 buckets.If you create a bucket and name it the s", + "product_code":"obs", + "title":"Creating a Bucket", + "uri":"obs_11_0008.html", + "doc_type":"utiltg", + "p_code":"7", + "code":"8" + }, + { + "desc":"You can use this command to obtain the bucket list. In the list, bucket names are displayed in lexicographical order.In Windowsobsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [", + "product_code":"obs", + "title":"Listing Buckets", + "uri":"obs_11_0009.html", + "doc_type":"utiltg", + "p_code":"7", + "code":"9" + }, + { + "desc":"You can use this command to query the basic properties of a bucket, including its default storage class, region, version ID, storage usage, bucket quota, whether it suppo", + "product_code":"obs", + "title":"Querying Bucket Properties", + "uri":"obs_11_0010.html", + "doc_type":"utiltg", + "p_code":"7", + "code":"10" + }, + { + "desc":"You can use this command to set the properties of a bucket, such as storage classes and access policies.In Windowsobsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclX", + "product_code":"obs", + "title":"Setting Bucket Properties", + "uri":"obs_11_0040.html", + "doc_type":"utiltg", + "p_code":"7", + "code":"11" + }, + { + "desc":"You can use this command to delete a bucket. The bucket to be deleted must be empty (containing no objects, historical versions, or fragments).To delete a non-empty bucke", + "product_code":"obs", + "title":"Deleting a Bucket", + "uri":"obs_11_0011.html", + "doc_type":"utiltg", + "p_code":"7", + "code":"12" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Object Commands", + "uri":"obs_11_0012.html", + "doc_type":"utiltg", + "p_code":"", + "code":"13" + }, + { + "desc":"You can use this command to create a folder in a specified bucket or local file system.No error is returned if a folder with the same name as an existing one is created, ", + "product_code":"obs", + "title":"Creating a Folder", + "uri":"obs_11_0050.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"14" + }, + { + "desc":"You can use this command to upload one or more local files or folders to a specified path in OBS. These files can be texts, images, videos, or any other type of files.Do ", + "product_code":"obs", + "title":"Uploading an Object", + "uri":"obs_11_0013.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"15" + }, + { + "desc":"You can use this command to query the basic properties of an object.In Windowsobsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]In Linux or macOS./obsutil stat o", + "product_code":"obs", + "title":"Querying Object Properties", + "uri":"obs_11_0015.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"16" + }, + { + "desc":"You can use this command to set properties of an object or set properties of objects in batches by a specified object name prefix.You can set storage classes only for buc", + "product_code":"obs", + "title":"Setting Object Properties", + "uri":"obs_11_0041.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"17" + }, + { + "desc":"You can use this command to query objects or object versions in a bucket. All objects are listed in lexicographical order by object name and version ID.In Windowsobsutil ", + "product_code":"obs", + "title":"Listing Objects", + "uri":"obs_11_0014.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"18" + }, + { + "desc":"You can use this command to copy a single object or copy objects in batches by a specified object name prefix.Do not change the source objects in the OBS bucket when copy", + "product_code":"obs", + "title":"Copying an Object", + "uri":"obs_11_0017.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"19" + }, + { + "desc":"You can use this command to move a single object or move objects in batches by a specified object name prefix.Do not change the source objects in the OBS bucket when movi", + "product_code":"obs", + "title":"Moving an Object", + "uri":"obs_11_0053.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"20" + }, + { + "desc":"You can use this command to download an object or download objects in batches by object name prefix to your local PC.Do not change the source objects in the OBS bucket wh", + "product_code":"obs", + "title":"Downloading an Object", + "uri":"obs_11_0018.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"21" + }, + { + "desc":"You can use this command to generate the download link of a specified object in a bucket or generate the download links of objects in a bucket in batches by object name p", + "product_code":"obs", + "title":"Generating the Download Link of an Object", + "uri":"obs_11_0051.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"22" + }, + { + "desc":"You can use this command to delete a specified object.You can also use this command to delete objects in batches based on a specified object name prefix.The delete operat", + "product_code":"obs", + "title":"Deleting an Object", + "uri":"obs_11_0021.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"23" + }, + { + "desc":"You can use this command to synchronize all content in a local source path to the specified target OBS bucket to ensure data consistency. Incremental synchronization has ", + "product_code":"obs", + "title":"Synchronously Uploading Incremental Objects", + "uri":"obs_11_0042.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"24" + }, + { + "desc":"You can use this command to synchronize all objects in a specified path of the source bucket to a specified path in the target bucket to ensure data consistency. Incremen", + "product_code":"obs", + "title":"Synchronously Copying Incremental Objects", + "uri":"obs_11_0044.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"25" + }, + { + "desc":"You can use this command to synchronize all objects in a specified path of the source OBS bucket to a target local path to ensure data consistency. Incremental synchroniz", + "product_code":"obs", + "title":"Synchronously Downloading Incremental Objects", + "uri":"obs_11_0043.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"26" + }, + { + "desc":"You can use this command to restore a specified cold object or restore cold objects with a specific prefix in batches.Object content cannot be read during restoration.Aft", + "product_code":"obs", + "title":"Restoring Objects from the Cold Storage", + "uri":"obs_11_0016.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"27" + }, + { + "desc":"You can use this command to resume a failed upload task based on the task ID.In Windowsobsutil cp -recover=xxx [-arcDir=xxx] [-dryRun] [-f] [-u] [-vlength] [-vmd5] [-j=1]", + "product_code":"obs", + "title":"Resuming a Failed Upload Task", + "uri":"obs_11_0036.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"28" + }, + { + "desc":"You can use this command to resume a failed copy task based on the task ID.In Windowsobsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [", + "product_code":"obs", + "title":"Resuming a Failed Copy Task", + "uri":"obs_11_0037.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"29" + }, + { + "desc":"You can use this command to resume a failed download task based on the task ID.In Windowsobsutil cp -recover=xxx [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5]", + "product_code":"obs", + "title":"Resuming a Failed Download Task", + "uri":"obs_11_0038.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"30" + }, + { + "desc":"You can use this command to query multipart upload tasks in a bucket.In Windowsobsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-li", + "product_code":"obs", + "title":"Listing Multipart Upload Tasks", + "uri":"obs_11_0019.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"31" + }, + { + "desc":"You can use this command to delete a multipart upload task in a specified bucket by using the multipart upload ID.You can also use this command to delete multipart upload", + "product_code":"obs", + "title":"Deleting a Multipart Upload Task", + "uri":"obs_11_0020.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"32" + }, + { + "desc":"You can use this command to specify the bucket name, object name prefix, and access code to create an authorization code for directory sharing.In Windowsobsutil create-sh", + "product_code":"obs", + "title":"Creating an Authorization Code for Directory Sharing", + "uri":"obs_11_0062.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"33" + }, + { + "desc":"You can use this command to query objects in a bucket with an authorization code. The returned objects are sorted in lexicographical order.In WindowsEnter an authorizatio", + "product_code":"obs", + "title":"Listing Objects by Using an Authorization Code", + "uri":"obs_11_0063.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"34" + }, + { + "desc":"You can use this command to download an object or download objects in a batch by object name prefix to your local PC.Do not change the source objects in the OBS bucket wh", + "product_code":"obs", + "title":"Downloading Objects by Using an Authorization Code", + "uri":"obs_11_0064.html", + "doc_type":"utiltg", + "p_code":"13", + "code":"35" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Auxiliary Commands", + "uri":"obs_11_0022.html", + "doc_type":"utiltg", + "p_code":"", + "code":"36" + }, + { + "desc":"You can update items in the .obsutilconfig file, including the endpoint, AK, SK, and token.Configuration Parameters describes parameters in the .obsutilconfig file.In Win", + "product_code":"obs", + "title":"Updating a Configuration File", + "uri":"obs_11_0023.html", + "doc_type":"utiltg", + "p_code":"36", + "code":"37" + }, + { + "desc":"You can use this command to delete part records from a specified directory.In Windowsobsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]In Linux or macOS./obsutil", + "product_code":"obs", + "title":"Deleting Part Records", + "uri":"obs_11_0024.html", + "doc_type":"utiltg", + "p_code":"36", + "code":"38" + }, + { + "desc":"You can use this command to view the commands supported by obsutil or view the help information of a specific command.In Windowsobsutil help [command]In Linux or macOS./o", + "product_code":"obs", + "title":"Viewing Command Help Information", + "uri":"obs_11_0025.html", + "doc_type":"utiltg", + "p_code":"36", + "code":"39" + }, + { + "desc":"You can use this command to query the current version of obsutil.In Windowsobsutil versionIn Linux or macOS./obsutil versionTake the Windows OS as an example.", + "product_code":"obs", + "title":"Querying the Version Number", + "uri":"obs_11_0026.html", + "doc_type":"utiltg", + "p_code":"36", + "code":"40" + }, + { + "desc":"You can use this command to archive log files to a local PC or to a specified bucket.In WindowsArchiving to a local PCobsutil archive [file_or_folder_url] [-config=xxx]Ar", + "product_code":"obs", + "title":"Archiving Log Files", + "uri":"obs_11_0045.html", + "doc_type":"utiltg", + "p_code":"36", + "code":"41" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Common Examples", + "uri":"obs_11_0027.html", + "doc_type":"utiltg", + "p_code":"", + "code":"42" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to upload files.Assume that a local folder is in the following structure:Based o", + "product_code":"obs", + "title":"Upload", + "uri":"obs_11_0028.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"43" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to perform synchronous upload operations.Assume that a local folder is in the fo", + "product_code":"obs", + "title":"Synchronous Upload", + "uri":"obs_11_0046.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"44" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to download files.Assume that bucket bucket-test contains the following objects:", + "product_code":"obs", + "title":"Download", + "uri":"obs_11_0029.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"45" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to perform synchronous download operations.Assume that bucket bucket-test contai", + "product_code":"obs", + "title":"Synchronous Download", + "uri":"obs_11_0047.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"46" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to copy files.Assume that bucket bucket-src contains the following objects:Based", + "product_code":"obs", + "title":"Copy", + "uri":"obs_11_0030.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"47" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to perform synchronous copy operations.Assume that the source bucket bucket-src ", + "product_code":"obs", + "title":"Synchronous Copy", + "uri":"obs_11_0048.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"48" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to list files.Assume that bucket bucket-test contains the following objects:Base", + "product_code":"obs", + "title":"Listing", + "uri":"obs_11_0031.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"49" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to list multipart upload tasks.Assume that bucket bucket-test contains the follo", + "product_code":"obs", + "title":"Listing Multipart Upload Tasks", + "uri":"obs_11_0032.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"50" + }, + { + "desc":"All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.Assume that bucket bucket-test ", + "product_code":"obs", + "title":"Deleting All Multipart Upload Tasks in a Bucket", + "uri":"obs_11_0065.html", + "doc_type":"utiltg", + "p_code":"42", + "code":"51" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Fault Locating", + "uri":"obs_11_0054.html", + "doc_type":"utiltg", + "p_code":"", + "code":"52" + }, + { + "desc":"obsutil provides multiple methods for users to locate and analyze faults. Table 1 details the methods. Generally, you need to combine these methods for a precise fault lo", + "product_code":"obs", + "title":"Overview", + "uri":"obs_11_0055.html", + "doc_type":"utiltg", + "p_code":"52", + "code":"53" + }, + { + "desc":"obsutil log files include tool logs and SDK logs. You can add the following parameters to the .obsutilconfig file to enable the two logging functions.Tool logging (record", + "product_code":"obs", + "title":"Log Files", + "uri":"obs_11_0056.html", + "doc_type":"utiltg", + "p_code":"52", + "code":"54" + }, + { + "desc":"Result files are generated when batch tasks complete. By default, they are saved to the subfolder .obsutil_output in the home directory of the user who executes obsutil c", + "product_code":"obs", + "title":"Result Lists", + "uri":"obs_11_0057.html", + "doc_type":"utiltg", + "p_code":"52", + "code":"55" + }, + { + "desc":"If obsutil is invoked by processes, the command output cannot be viewed in real time. obsutil generates different return codes based on different execution results. Table", + "product_code":"obs", + "title":"Return Codes", + "uri":"obs_11_0058.html", + "doc_type":"utiltg", + "p_code":"52", + "code":"56" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Best Practices", + "uri":"obs_11_0033.html", + "doc_type":"utiltg", + "p_code":"", + "code":"57" + }, + { + "desc":"obsutil provides help commands for viewing the help documents of each command. To query the help document of the bucket creation command, perform the following steps:For ", + "product_code":"obs", + "title":"Using the obsutil help Command to Search for Functions", + "uri":"obs_11_0066.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"58" + }, + { + "desc":"Go to the /root directory at 21:30 every day and upload the /src/src1 folder to bucket obs://bucket-test in the incremental mode.You have properly enabled the scheduled c", + "product_code":"obs", + "title":"Configuring Scheduled Tasks Using the Crontab Command", + "uri":"obs_11_0034.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"59" + }, + { + "desc":"Because obsutil is external software, you need to access the directory where obsutil resides before running obsutil commands, which is not convenient.An OS provides built", + "product_code":"obs", + "title":"Setting obsutil Commands as Built-in Commands", + "uri":"obs_11_0049.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"60" + }, + { + "desc":"By default, obsutil uploads, downloads, and copies files or objects whose size is greater than 50 MB in multiple parts. Table 1 details related parameters in the .obsutil", + "product_code":"obs", + "title":"Fine-Tuning obsutil Performance", + "uri":"obs_11_0052.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"61" + }, + { + "desc":"obsutil supports resumable data transfer (upload, download, and copy) for large files by using the multipart algorithms for upload, download, and copy. You can set the th", + "product_code":"obs", + "title":"Using obsutil for Resumable Data Transfer", + "uri":"obs_11_0059.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"62" + }, + { + "desc":"obsutil supports the upload of the real path to which the symbolic link points when a file or folder is uploaded. You can specify the command-level parameter link to impl", + "product_code":"obs", + "title":"Using obsutil to Upload a Symbolic Link", + "uri":"obs_11_0060.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"63" + }, + { + "desc":"You can configure an HTTP proxy in either of the following ways:Method 1: Set the proxyUrl parameter in the .obsutilconfig file, for example, proxyUrl=http://username:pas", + "product_code":"obs", + "title":"Configuring an HTTP Proxy for obsutil", + "uri":"obs_11_0068.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"64" + }, + { + "desc":"The directory sharing function allows the owner of a bucket to share directories in a bucket or the entire bucket with other users by using the authorization code and acc", + "product_code":"obs", + "title":"Using obsutil to Share Directories", + "uri":"obs_11_0069.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"65" + }, + { + "desc":"obsutil client supports cross-region replication. You can directly replicate data from a source bucket to the destination bucket through data streams. The source bucket a", + "product_code":"obs", + "title":"Using obsutil to Replicate Data Across Regions on the Client Side", + "uri":"obs_11_0039.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"66" + }, + { + "desc":"obsutil allows you to configure the rateLimitThreshold parameter in the .obsutilconfig file to limit the upload and download rate.For detailed parameter description, see ", + "product_code":"obs", + "title":"Limiting the Upload and Download Rate for obsutil", + "uri":"obs_11_0073.html", + "doc_type":"utiltg", + "p_code":"57", + "code":"67" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"FAQs", + "uri":"obs_11_0074.html", + "doc_type":"utiltg", + "p_code":"", + "code":"68" + }, + { + "desc":"No.obsutil allows you to upload your local directory to an OBS bucket. After the synchronization, if you delete some files in the local directory and then perform an incr", + "product_code":"obs", + "title":"After Some Files Are Deleted in My Local Directory, Can obsutil Synchronously Delete Them from the Bucket?", + "uri":"obs_11_0075.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"69" + }, + { + "desc":"obsutil does not allow you to directly save a listing result to a local file, but you can redirect a listing result displayed on the screen in standard output to a specif", + "product_code":"obs", + "title":"Can I Use obsutil to Directly Save a Listing Result to a Local File?", + "uri":"obs_11_0076.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"70" + }, + { + "desc":"When you use obsutil to list all objects in a bucket, the listing result contains the total size of the objects. If the total size is different from that on OBS Console o", + "product_code":"obs", + "title":"Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?", + "uri":"obs_11_0077.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"71" + }, + { + "desc":"After a batch task is completed, there will be results telling you how many tasks succeeded or failed. To find out why those tasks failed, you can check their failure res", + "product_code":"obs", + "title":"How Can I Find Out Why Some Tasks in a Batch Task Failed?", + "uri":"obs_11_0078.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"72" + }, + { + "desc":"I/O timeout and EOF errors usually occur when requests fail due to network fluctuations. Go through the following list to locate the cause.Ping the bucket domain name (bu", + "product_code":"obs", + "title":"How Can I Locate and Rectify I/O Timeout and EOF Errors?", + "uri":"obs_11_0079.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"73" + }, + { + "desc":"Possible causes:When a batch upload or download task is being executed, if there are a large number of objects involved, obsutil needs to traverse all objects to collect ", + "product_code":"obs", + "title":"Why Is a Question Mark Displayed in the Batch Task Progress Bar?", + "uri":"obs_11_0080.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"74" + }, + { + "desc":"No.obsutil allows you to configure multiple config files, but they cannot be stored in the same directory due to encryption requirements.If multiple config files are requ", + "product_code":"obs", + "title":"Can Multiple config Files Be Placed in One Directory?", + "uri":"obs_11_0081.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"75" + }, + { + "desc":"Yes. You can run the mv command to rename an object or a folder. The following give two examples in Windows.Running obsutil mv obs://bucket-test/key obs://bucket-test/key", + "product_code":"obs", + "title":"Can I Rename an Object or a Folder?", + "uri":"obs_11_0084.html", + "doc_type":"utiltg", + "p_code":"68", + "code":"76" + }, + { + "desc":"You can set obsutil parameters in the .obsutilconfig file.Configuration file format:Table 1 describes the parameters.Set parameters with N/A as the recommended value base", + "product_code":"obs", + "title":"Configuration Parameters", + "uri":"obs_11_0035.html", + "doc_type":"utiltg", + "p_code":"", + "code":"77" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"obs", + "title":"Change History", + "uri":"obs_11_0000.html", + "doc_type":"utiltg", + "p_code":"", + "code":"78" + } +] \ No newline at end of file diff --git a/docs/obs/tool-obsutil/PARAMETERS.txt b/docs/obs/tool-obsutil/PARAMETERS.txt new file mode 100644 index 000000000..6da8d5f07 --- /dev/null +++ b/docs/obs/tool-obsutil/PARAMETERS.txt @@ -0,0 +1,3 @@ +version="" +language="en-us" +type="" \ No newline at end of file diff --git a/docs/obs/tool-obsutil/obs_11_0000.html b/docs/obs/tool-obsutil/obs_11_0000.html new file mode 100644 index 000000000..3f526d12f --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0000.html @@ -0,0 +1,33 @@ + + +

Change History

+
+
+ + + + + + + + + + + + + +

Released On

+

Description

+

2026-02-12

+

This issue is the third official release.

+

Updated Downloading and Installing obsutil by adding obsutil signature files.

+

2025-12-03

+

This issue is the second official release.

+

Updated Downloading and Installing obsutil by adding download links of obsutil.

+

2025-11-21

+

This issue is the first official release.

+
+
+
+
+ diff --git a/docs/obs/tool-obsutil/obs_11_0001.html b/docs/obs/tool-obsutil/obs_11_0001.html new file mode 100644 index 000000000..d3c0d059d --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0001.html @@ -0,0 +1,84 @@ + + +

obsutil Introduction

+

obsutil is a command line tool for accessing and managing OBS. You can use this tool to create buckets and upload, download, or delete files/folders. If you are familiar with the command line interface (CLI), obsutil is a good choice in batch processing and automatic tasks.

+

obsutil is compatible with Windows, Linux, and macOS. Table 1 lists the recommended operating system (OS) versions.

+ +
+ + + + + + + + + + + + + +
Table 1 Recommended OS versions for obsutil

OS

+

Recommended Version

+

Windows

+
  • Windows 7
  • Windows 8
  • Windows 10
  • Windows 11
  • Windows Server 2016
  • Windows Server 2019
+

Linux

+
  • SUSE 11
  • EulerOS 2
  • CentOS 7
+

macOS

+

macOS 10.13.4

+
+
+

Advantages

obsutil has the following advantages:

+
  1. Easy to use
  2. Lightweight and installation-free
  3. Compatible with Windows, Linux, and macOS
  4. Excellent performance and diversified configurations
+
+

Application Scenarios

+
+

Functions

Table 2 lists the functions of obsutil.

+ +
+ + + + + + + + + + + + + +
Table 2 Functions of obsutil

Function

+

Description

+

Basic bucket management

+

Allows you to:

+
  • Create buckets of different storage classes in specific regions.
  • Delete buckets.
  • Get the bucket list or configuration information.
+

Basic object management

+

Allows you to upload, download, delete, and list objects. In detail, you can:

+
  • Upload one or more files or folders.
  • Upload large files in multipart uploads.
  • Synchronously upload, download, and copy incremental objects.
  • Copy a single object or a batch of objects sharing the same prefix.
  • Move a single object or a batch of objects sharing the same prefix.
  • Resume failed upload, download, or copy tasks.
+

Logging

+

Provides logging on your client to record operations on buckets and objects for analysis.

+
+
+
+

Command Line Structures

Below describes how to use commands in obsutil:

+ +
  • command indicates the command to execute, for example, ls or cp.
  • parameters indicates mandatory parameters, for example, the bucket name during bucket creation.
  • options indicates optional parameters. They must start with a hyphen (-).
  • Square brackets ([]) are not part of a command. Remove them before executing a specific command.
  • You must escape special characters (including & < > and spaces) in a command using quotation marks. Single quotation marks are for Linux or macOS, and double quotation marks for Windows.
  • You can pass additional parameters in the -key=value or -key value format, for example, -acl=private, or -acl private. Both formats are the same. Choose one as you like.
  • In Windows, you can execute obsutil.exe to enter interactive mode. In this mode, you can run command [parameters...] [options...] where obsutil is not needed. Below gives an example:
    Enter "exit" or "quit" to logout
    +Enter "help" or "help command" to show help docs
    +Input your command:
    +-->ls -limit=3 -s
    +obs://bucket-001
    +obs://bucket-002
    +obs://bucket-003
    +Bucket number: 3
    +
    +Input your command:
    +-->
    +
  • If you log in to a remote macOS or Linux via SSH to use obsutil, set TMOUT to 0 to prevent obsutil from logging out due to SSH timeout.
+
+
+
+ diff --git a/docs/obs/tool-obsutil/obs_11_0002.html b/docs/obs/tool-obsutil/obs_11_0002.html new file mode 100644 index 000000000..43833ee7a --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0002.html @@ -0,0 +1,15 @@ + + +

Getting Started

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0003.html b/docs/obs/tool-obsutil/obs_11_0003.html new file mode 100644 index 000000000..fe98e138c --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0003.html @@ -0,0 +1,89 @@ + + +

Downloading and Installing obsutil

+

Download Links

Table 1 lists the download links of obsutil for different OSs. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Download links of obsutil

OS

+

Software Package

+

Manual Verification Signature File

+

Automatic Verification Signature File

+

Windows (64-bit)

+

obsutil_windows64

+

pgp

+

cms

+

Linux AMD (64-bit)

+

obsutil_linux_amd64

+

pgp

+

cms

+

Linux Arm (64-bit)

+

obsutil_linux_arm64

+

pgp

+

cms

+

macOS (64-bit)

+

obsutil_mac64

+

pgp

+

cms

+
+
+
+
+

Getting Started with obsutil

You can download obsutil and then use it without installation. Methods of downloading obsutil vary depending on the OS type.

+

Make sure that your cloud server has been connected to the Internet, or the obsutil installation will fail.

+
+

Windows

+
  1. Click the link provided on OBS Console to download the obsutil package to your local PC.
  2. Decompress the software package.
  3. Use Command Prompt to go to the decompressed folder and run obsutil commands.
+

+

Linux

+
  1. Open the CLI and run the wget command for the download link provided on OBS Console to download obsutil to your local PC.

    Linux AMD (64-bit) and Linux x86 (64-bit):

    +
    • The URL after wget is the download link of the installation package, for which you do not need to make any adaptations. To download the package, just copy and run the whole wget command.
    • You can also download the obsutil package from a PC running Windows and then use a cross-platform transfer tool (such as WinSCP) to transfer the package to your Linux host.
    +
    +

  2. Run the following command in the directory where the obsutil package resides:

    tar -xzvf obsutil_linux_amd64.tar.gz
    +

  3. List the obsutil directory. x.x.x indicates the obsutil version.

    ll
    +
    +dr-x------ 2 root root    4096 Jan  5  2024 obsutil_linux_amd64_x.x.x
    +-rw------- 1 root root 3845484 Mar 27 17:05 obsutil_linux_amd64.tar.gz
    +

  4. Go to the directory where obsutil resides. x.x.x indicates the obsutil version.

    cd obsutil_linux_amd64_x.x.x
    +

  5. Run the following command to grant the execute permissions for obsutil:

    chmod 755 obsutil
    +

    This step is required, or error "No such file or directory" will be reported when you are querying the obsutil version number.

    +
    +

  6. Continue to run the following command in the directory. If the version number of obsutil is returned, the installation is successful.

    ./obsutil version
    +
    +obsutil version:5.7.9, obssdk version:3.24.12
    +operating system:linux, arch:amd64
    +

+

+

macOS

+
  1. Click the link provided on OBS Console to download the obsutil package to your local PC.
  2. Decompress the software package.
  3. Open the CLI, go to the directory where obsutil belongs, and run the following command to add execute permissions to obsutil:

    chmod 755 obsutil
    +

+
+

References

+
+
+
+ diff --git a/docs/obs/tool-obsutil/obs_11_0005.html b/docs/obs/tool-obsutil/obs_11_0005.html new file mode 100644 index 000000000..75f33a9af --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0005.html @@ -0,0 +1,144 @@ + + +

Initializing the Configuration

+

Before using obsutil, you need to configure the OBS endpoint and AK/SK for obsutil to interconnect with OBS. Then, you can use obsutil to operate OBS buckets and objects.

+

Prerequisites

+
+

obsutil Initialization Methods

Run the config command (for more information about config, see Updating a Configuration File):

+ +
  • After the command is executed, there will be the .obsutilconfig file created in the directory (~ in Linux or macOS or C:\Users\<username> in Windows) where obsutil commands run. This file contains all the configuration information of obsutil.
  • For details about the parameters in the .obsutilconfig file, see Configuration Parameters.
  • The .obsutilconfig file contains the AK/SK information, so it is hidden by default to prevent leakage. To query this file, run the following command in the directory where obsutil commands run.
    • In Windows
      dir 
      +
    • In Linux or macOS
      ls -a 
      +

      or

      +
      ls -al
      +
    +
  • obsutil encrypts the AK/SK information in the .obsutilconfig file.
+
+
+

Method 3: Initialize obsutil in interactive mode.

+ +

Checking the Connectivity

After the initial configuration is complete, run the following command to check the connectivity:

+ +

Check the command output:

+ +

If the command output contains "Http status [403]", you may not have the required permissions for obtaining the bucket list. A further analysis is required to identify the root cause.

+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0006.html b/docs/obs/tool-obsutil/obs_11_0006.html new file mode 100644 index 000000000..5764d92ec --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0006.html @@ -0,0 +1,50 @@ + + +

Quick Start

+

This section uses the Linux OS as an example to describe how to use obsutil to perform basic operations in OBS. For details, see .

+

Prerequisites

+
+

Procedure

  1. Run the ./obsutil mb obs://bucket-test command to create a bucket named bucket-test in the region.

    ./obsutil mb obs://bucket-test
    +
    +Create bucket [bucket-test] successfully!
    +

  2. Run the ./obsutil cp /temp/test.txt obs://bucket-test/test.txt command to upload the test.txt file to bucket bucket-test.

    ./obsutil cp /temp/test.txt obs://bucket-test/test.txt
    +
    +Parallel:      5                   Jobs:          5
    +Threshold:     52428800            PartSize:      5242880
    +VerifyLength:  false               VerifyMd5:     false
    +CheckpointDir: /temp/.obsutil_checkpoint
    +
    +test.txt:[==============================================] 100.00% 48.47 KB/s 0s
    +Upload successfully, 4.44KB, /temp/test.txt --> obs://bucket-test1/test.txt
    +

    To upload local folder test to the OBS bucket, run the following command:

    +
    ./obsutil cp /test/ obs://bucket-test -r -f
    + +
    +

  3. Run the ./obsutil cp obs://bucket-test/test.txt /temp/test1.txt command to download test.txt from bucket bucket-test to a local PC.

    ./obsutil cp obs://bucket-test/test.txt /temp/test1.txt
    +
    +Parallel:      5                   Jobs:          5
    +Threshold:     52428800            PartSize:      5242880
    +VerifyLength:  false               VerifyMd5:     false
    +CheckpointDir: /temp/.obsutil_checkpoint
    +
    +test.txt:[=============================================] 100.00% 775.52 KB/s 0s
    +Download successfully, 4.44KB, obs://bucket-test1/test.txt --> /temp/test1.txt
    +

    To download directory test from the OBS bucket to the local folder temp, run the following command:

    +
    ./obsutil cp obs://bucket-test/test /temp -r -f
    + +
    +

  4. Run the ./obsutil rm obs://bucket-test/test.txt -f command to delete object test.txt from bucket bucket-test.

    ./obsutil rm obs://bucket-test/test.txt -f
    +
    +Delete object [test.txt] in the bucket [bucket-test] successfully!
    +

  5. Run the ./obsutil rm obs://bucket-test -f command to delete bucket bucket-test.

    ./obsutil rm obs://bucket-test -f
    +
    +Delete bucket [bucket-test] successfully!
    +

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0007.html b/docs/obs/tool-obsutil/obs_11_0007.html new file mode 100644 index 000000000..a02ae9b56 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0007.html @@ -0,0 +1,19 @@ + + +

Bucket Commands

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0008.html b/docs/obs/tool-obsutil/obs_11_0008.html new file mode 100644 index 000000000..c382f32b2 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0008.html @@ -0,0 +1,94 @@ + + +

Creating a Bucket

+

Function

You can use this command to create a bucket. A bucket name must be unique in OBS. One account can create a maximum of 100 buckets.

+

If you create a bucket and name it the same as an existing one in the same account and region, no error will be reported and status code 200 is returned. The bucket properties comply with those set in the first creation request. In other cases, creating a bucket with the same name as an existing one will receive the status code 409, indicating that the bucket already exists.

+
+
+

Command Line Structures

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+
A bucket name:
  • Must be 3 to 63 characters long and start with a digit or letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
  • Cannot be formatted as an IP address.
  • Cannot start or end with a hyphen (-) or period (.).
  • Cannot contain two consecutive periods (.), for example, my..bucket.
  • Cannot contain a period (.) and a hyphen (-) adjacent to each other, for example, my-.bucket or my.-bucket.
+
+

fs

+

Optional (additional parameter)

+

Creates a parallel file system.

+

acl

+

Optional (additional parameter)

+

The access control policy that can be specified when creating a bucket

+

The value can be:

+
  • private: Only users granted permissions by the bucket ACL can access the bucket.
  • public-read: Anyone can read objects in the bucket.
  • public-read-write: Anyone can read, write, or delete objects in the bucket.
+

sc

+

Optional (additional parameter)

+

The storage class of the bucket

+

Different storage classes meet customers' needs for storage performance and costs.

+

The value can be:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

location

+

Mandatory unless the requested OBS region is the default one (additional parameter)

+

The region where the bucket resides

+

+
  • Once the bucket is created, its region cannot be changed.
  • For lower latency and faster access, select the region nearest to where the data will be accessed.
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0009.html b/docs/obs/tool-obsutil/obs_11_0009.html new file mode 100644 index 000000000..e7de30bc0 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0009.html @@ -0,0 +1,96 @@ + + +

Listing Buckets

+

Function

You can use this command to obtain the bucket list. In the list, bucket names are displayed in lexicographical order.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

s

+

Optional (additional parameter)

+

Displays simplified query result.

+
NOTE:

In the simplified format, the returned result contains only the bucket name.

+
+

sc

+

Optional (additional parameter)

+

Queries the storage classes of the buckets when listing buckets.

+

j

+

Optional (additional parameter). It must be used together with sc.

+

The maximum number of concurrent tasks for querying the bucket storage class. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

du

+

Optional (additional parameter)

+

Quickly returns the total size of listed objects, without displaying detailed object information. This parameter can be used together with other parameters.

+
NOTE:

This parameter takes effect only on listing objects, but not on listing buckets.

+
+

limit

+

Optional (additional parameter)

+

The maximum number of buckets that can be queried. If the value is less than 0, all buckets are listed. If it is left blank, a maximum of 1000 buckets can be listed by default.

+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+

In a bucket listing result, BucketType indicates the bucket type. OBJECT indicates an object storage bucket, while POSIX indicates a parallel file system.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0010.html b/docs/obs/tool-obsutil/obs_11_0010.html new file mode 100644 index 000000000..d3cd91984 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0010.html @@ -0,0 +1,153 @@ + + +

Querying Bucket Properties

+

Function

You can use this command to query the basic properties of a bucket, including its default storage class, region, version ID, storage usage, bucket quota, whether it supports POSIX, and the number of objects in the bucket.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

acl

+

Optional

+

Queries the access control policies of the bucket while querying bucket properties.

+

bf

+

Optional (additional parameter)

+

The display format of the used bucket capacity (in bytes). Possible values are:

+
  • human-readable
  • raw
+
NOTE:

If this parameter is not configured, the display format of the used bucket capacity (in bytes) is determined by the humanReadableFormat parameter in the configuration file.

+
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Field

+

Description

+

Bucket

+

The bucket name

+

StorageClass

+

The default storage class of the bucket

+

Location

+

The region where the bucket resides

+

ObsVersion

+

The version of the bucket

+

BucketType

+

The type of the bucket. OBJECT indicates a bucket for object storage. POSIX indicates a bucket used as a parallel file system.

+

ObjectNumber

+

The number of objects in the bucket

+

Size

+

The storage usage of the bucket, in bytes

+

Quota

+

The bucket quota. Value 0 indicates that no upper limit is set for the bucket quota.

+

Acl

+

The access control policy of the bucket

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0011.html b/docs/obs/tool-obsutil/obs_11_0011.html new file mode 100644 index 000000000..a11d6d8ee --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0011.html @@ -0,0 +1,68 @@ + + +

Deleting a Bucket

+

Function

You can use this command to delete a bucket. The bucket to be deleted must be empty (containing no objects, historical versions, or fragments).

+

To delete a non-empty bucket, run the commands in Deleting a Multipart Upload Task and Deleting an Object to clear the bucket, and then run the following command to delete the bucket.

+
+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

f

+

Optional (additional parameter)

+

Runs in force mode.

+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0012.html b/docs/obs/tool-obsutil/obs_11_0012.html new file mode 100644 index 000000000..536952c34 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0012.html @@ -0,0 +1,53 @@ + + +

Object Commands

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0013.html b/docs/obs/tool-obsutil/obs_11_0013.html new file mode 100644 index 000000000..94ed2472c --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0013.html @@ -0,0 +1,492 @@ + + +

Uploading an Object

+

Function

You can use this command to upload one or more local files or folders to a specified path in OBS. These files can be texts, images, videos, or any other type of files.

+

Do not change the local file or folder when uploading it. Otherwise, the upload may fail or data may be inconsistent.

+
+
+

Constraints

obsutil has restrictions on the size of files or folders to be uploaded. You can upload an empty file or folder of 0 bytes. You can also upload a single file or folder with a maximum size of 5 GB in normal mode or a single file with a maximum size of 48.8 TB in multipart mode.

+
+

Command Line Structure

+
+

Examples

+ + +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

file_url

+

Optional for uploading multiple files/folders

+

Mandatory for uploading a file

+

The local file path

+
  • Do not nest paths when uploading multiple files/folders. For example, you cannot specify /a/b/c and /a/b/ at the same time.
  • If this parameter is configured when uploading multiple files/folders, msm must be set to 1. In this case, use commas (,) to separate multiple file paths, for example, file_url1,file_url2.
  • Files and folders can both be included when uploading multiple files/folders. For example, file_url1,folder_url1,file_url2,folder_url2.
+

folder_url

+

Optional for uploading multiple files/folders

+

Mandatory for uploading a folder

+

The local folder path

+
  • If flat is not configured when uploading a folder, the entire folder is uploaded. If flat is configured, all files in the folder are uploaded.
  • Do not nest paths when uploading multiple files/folders. For example, you cannot specify /a/b/c and /a/b/ at the same time.
  • If this parameter is configured when uploading multiple files/folders, msm must be set to 1. In this case, use commas (,) to separate multiple folder paths, for example, folder_url1,folder_url2.
  • Files and folders can both be included when uploading multiple files/folders. For example, file_url1,folder_url1,file_url2,folder_url2.
+

filelist_url

+

Optional for uploading multiple files/folders

+

The path of the file that contains the list of files/folders to be uploaded. If this parameter is configured, msm must be set to 2.

+
  • The list file is in common text file formats, such as TXT and CSV. Each line in the file indicates a file or folder to be uploaded. For example:

    file_url1

    +

    file_url2

    +

    folder_url1

    +

    folder_url2

    +
  • Do not nest paths in the list file. For example, you cannot specify /a/b/c and /a/b/ at the same time.
+

bucket

+

Mandatory

+

The name of the bucket where you will upload the file or folder

+

key

+

Optional

+

The object name or object name prefix specified when uploading a file, or the object name prefix specified when uploading a folder

+

When uploading a file or folder, the upload path and name change depending on the value of this parameter. The specific rules are as follows:

+
  • If this parameter is left blank, the object is uploaded to the root directory of the bucket, and the object name is the name of the uploaded file or folder.
  • If this parameter is specified:
    • If the parameter value ends with a slash (/), the object is uploaded to the directory indicated by this value, and the object name is the parameter value plus the file name, for example, folder/filename.txt or folder/foldername.
    +
    • If the parameter value does not end with a slash (/), the object name for the file is the parameter value, for example, filename.txt, and the object name for the folder is the parameter value plus a slash (/), for example, folder/, which is also the name of the directory where the folder is uploaded.
    +
+
NOTE:

For details about how to use this parameter, see Upload.

+
+

fr

+

Optional for uploading a file (additional parameter)

+

Generates an operation result file when uploading a file.

+

flat

+

Optional for uploading a folder or multiple files/folders (additional parameter)

+

Uploads all files in a folder but not the folder itself.

+

arcDir

+

Optional (additional parameter)

+

The path to which the uploaded files are archived

+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

link

+

Optional (additional parameter)

+

The actual path of a symbolic link for a file or folder

+
  • If this parameter is not specified and the file to be uploaded is a symbolic-link file whose target file does not exist, the exception message "The system cannot find the file specified" will be displayed in Windows OS, while the exception message "No such file or directory" will be displayed in macOS or Linux OS.
  • Avoid the symbolic link loop of a folder, otherwise, the upload will exit due to panic. If you do not want the system to panic, set panicForSymbolicLinkCircle to false in the configuration file.
+

u

+

Optional (additional parameter)

+

Indicates incremental upload.

+

If this parameter is set, each file can be uploaded only when it does not exist in the bucket, its size is different from the namesake one in the bucket, or it has the latest modification time.

+

vlength

+

Optional (additional parameter)

+

After the upload completes, checks whether the sizes of the objects in the bucket are the same as those of the local files.

+

vmd5

+

Optional (additional parameter)

+

After the upload completes, checks whether the MD5 values of the objects in the bucket are the same as those of the local files.

+
  • If your object needs encryption, do not use this parameter.
  • If the size of the file or folder to be uploaded is too large, using this parameter will degrade the overall performance due to MD5 calculation.
  • After the MD5 verification is successful, this parameter value is used for metadata x-obs-meta-md5chksum, for later MD5 verification during download or copy.
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent uploads for a multipart upload

+

The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart upload. If the size of the file or folder to be uploaded is smaller than the threshold, upload it directly. Otherwise, a multipart upload is required.

+

The default value is the value of defaultBigfileThreshold in the configuration file.

+

Unit: byte

+

This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).

+
NOTE:

If you upload a file or folder directly, no part record is generated, and resumable transmission is not supported.

+
+

acl

+

Optional (additional parameter)

+

The access control policies that can be specified for objects when uploading files.

+

Possible values are:

+
  • private: Only users granted permissions by the object ACL can access the object.
  • public-read: Anyone can read objects in the bucket.
  • public-read-write: Anyone can read, write, or delete objects in the bucket.
  • bucket-owner-full-control: Only the bucket owner has full control over objects in the bucket.
+

sc

+

Optional (additional parameter)

+

The storage classes of objects that can be specified when uploading files

+

Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

meta

+

Optional (additional parameter)

+

The standard or user-defined metadata that can be specified during file upload

+
  • Standard metadata includes Content-Type, Content-Encoding, Cache-Control, Content-Disposition, Content-Language and Expires.
  • User-defined metadata must be in the format of key:value. Multiple user-defined metadata items are separated by number signs (#), for example, key1:value1#key2:value2#key3:value3, which indicates that the file uploaded to the bucket contains three groups of user-defined metadata: key1:value1, key2:value2, and key3:value3.
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart upload task

+
  • The default value is the value of defaultPartSize in the configuration file. The parameter can be set to auto. In this case, obsutil automatically configures the part size for each multipart task based on the source file size.
  • Range: 100KB to 5GB
  • Unit: byte. This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+

A part record is generated during a multipart upload and saved to the upload subfolder. After the upload succeeds, its part record is deleted automatically. If the upload fails or is suspended, the system attempts to resume the task according to its part record when you perform the upload the next time.

+

r

+

Mandatory for uploading a folder (additional parameter)

+

Optional for uploading multiple files/folders

+

Recursively uploads all files and subfolders within a folder.

+

f

+

Optional for uploading a folder or multiple files/folders (additional parameter)

+

Runs in force mode.

+

j

+

Optional for uploading a folder or multiple files/folders (additional parameter)

+

The maximum number of concurrent tasks for uploading a folder. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

msm

+

Mandatory for uploading multiple files/folders (additional parameter)

+

Enables the mode for uploading multiple files/folders. Possible values are 1 and 2.

+
  • If msm is set to 1, the source URL indicates a list of file/folder names separated by commas.
  • If msm is set to 2, the source URL indicates a file containing a list of file/folder names.
  • If the file or folder name already contains commas (,), do not set msm to 1.
  • If parameter r is not set, the folders in the list will not be uploaded.
+

exclude

+

Optional for uploading a folder or multiple files/folders (additional parameter)

+

The file matching patterns that are excluded. After this parameter is specified, if the name of the file to be uploaded matches the value of this parameter, the file is skipped. For example, if this parameter is set to *.txt, all files whose names end with .txt are skipped and not uploaded.

+
  • An asterisk (*) matches any number of characters. For instance, abc*.txt matches all files whose names start with abc, contain any number of characters in the middle, and end with .txt.
  • A question mark (?) matches any single character. For instance, abc?.txt matches all files whose names start with abc, contain any single character in the middle, and end with .txt.
  • You can use \* to represent * and \? to represent ?.
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+

Restrictions:

+

The matching pattern takes effect only for files in the folder.

+
NOTE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute file path (including the file name and file directory).
+
+

include

+

Optional for uploading a folder or multiple files/folders (additional parameter)

+

The file matching patterns that are included. After this parameter is specified, if the name of the file to be uploaded matches the value of this parameter, the file is uploaded. For example, if this parameter is set to *.txt, all files whose names end with .txt are uploaded.

+
  • An asterisk (*) matches any number of characters. For instance, abc*.txt matches all files whose names start with abc, contain any number of characters in the middle, and end with .txt.
  • A question mark (?) matches any single character. For instance, abc?.txt matches all files whose names start with abc, contain any single character in the middle, and end with .txt.
  • You can use \* to represent * and \? to represent ?.
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+

Restrictions:

+
  • The matching pattern takes effect only for files in the folder.
  • If both the exclude and include parameters are configured, the exclude rules are applied first. If the name of a file to be uploaded does not match exclude, OBS checks whether the file name matches include. If yes, the file is uploaded. If no, the file is skipped.
+

Example:

+
./obsutil cp /localpath/ obs://test/ -include=/localpath/2022-12-09/* -f -r
+

This command uploads files that are under localpath and start with /localpath/2022-12-09/ to bucket test.

+
NOTE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute file path (including the file name and file directory).
+
+

at

+

Optional for uploading a folder or multiple files/folders (additional parameter)

+

Indicates that only the files whose latest access time is within the value of timeRange are uploaded.

+

This parameter must be used together with timeRange.

+

disableDirObject

+

Optional for uploading multiple folders (additional parameter)

+

Indicates the folders themselves are not uploaded as an object. Configuring this parameter can avoid uploading empty folders to a bucket. If a folder contains files, the files will be uploaded and the original path format is retained.

+

timeRange

+

Optional for uploading a folder or multiple files/folders (additional parameter)

+

The time range matching pattern when uploading files. Only files whose latest modification time is within the configured time range are uploaded.

+

This pattern has a lower priority than the file matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured file matching patterns.

+
  • Time in the matching pattern is the UTC time.
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose last modification time is earlier than time2 are matched. If it is set to time1-*, all files whose last modification time is later than time1 are matched.
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on folders.

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder.

+

The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
  • A result file should be named as follows: cp_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB. You can set the maximum size by configuring recordMaxLogSize in the configuration file.
  • By default, the maximum number of result files that can be retained is 1,024. You can set the maximum number by configuring recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Field

+

Description

+

Parallel

+

The parameter -p in the request

+

Jobs

+

The parameter -j in the request

+

Threshold

+

The parameter -threshold in the request

+

PartSize

+

The parameter -ps in the request

+

Exclude

+

The parameter -exclude in the request

+

Include

+

The parameter -include in the request

+

TimeRange

+

The parameter -timeRange in the request

+

VerifyLength

+

The parameter -vlength in the request

+

VerifyMd5

+

The parameter -vmd5 in the request

+

CheckpointDir

+

The parameter -cpd in the request

+

OutputDir

+

The parameter -o in the request

+

ArcDir

+

The parameter -arcDir in the request

+

Succeed count

+

The number of successful tasks

+

Failed count

+

The number of failed tasks

+

Skip count

+

The number of tasks that are skipped during incremental upload, download, or copy, and synchronous upload, download, or copy.

+
NOTE:

Skipped tasks are recorded into successful tasks.

+
+

Warning count

+

The number of tasks that are executed successfully but contain warnings.

+
NOTE:
  • The task for which a warning is generated may be a failure or a success, which needs to be further determined according to the corresponding result list.
  • The number of tasks that generate warnings is independent of the number of successful or failed tasks. The total number of tasks is the number of successful tasks plus the number of failed tasks.
+
+

Succeed bytes

+

The number of bytes that are successfully uploaded or downloaded.

+

max cost

+

The maximum duration of all tasks, in ms

+

min cost

+

The minimum duration of all tasks, in ms

+

average cost

+

The average duration of all tasks, in ms

+

average tps

+

The average number of tasks completed per second

+

Task id

+

The unique ID of an operation, which is used to search for the result file generated for a batch task

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0014.html b/docs/obs/tool-obsutil/obs_11_0014.html new file mode 100644 index 000000000..6782b8baf --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0014.html @@ -0,0 +1,246 @@ + + +

Listing Objects

+

Function

You can use this command to query objects or object versions in a bucket. All objects are listed in lexicographical order by object name and version ID.

+
+

Command Line Structure

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

prefix

+

Optional

+

The prefix of the object name for listing objects

+
NOTE:

If this parameter is left blank, all objects in the bucket are listed.

+
+

s

+

Optional (additional parameter)

+

Displays simplified query result.

+
NOTE:

In the simplified format, the returned result contains only the object name.

+
+

d

+

Optional (additional parameter)

+

Lists only objects and subdirectories in the current directory, instead of recursively listing all objects and subdirectories.

+

In big data scenarios, parallel file systems usually have deep directory levels and each directory has a large number of files. In such case, you are advised to use this parameter to limit the scope to list.

+
NOTE:

According to the naming conventions in OBS, a slash (/) is used as the directory separator.

+
+

v

+

Optional (additional parameter)

+

Lists versions of an object in a bucket. The result contains the latest version and historical versions (if any) of the object.

+

marker

+

Optional (additional parameter)

+

The start position for listing objects in a bucket. The objects following this start position are sorted in lexicographical order by object name.

+
NOTE:

For details about how to use this parameter, see Listing.

+
+

versionIdMarker

+

Optional (additional parameter). It must be used together with the v and marker parameters.

+

The start position for listing object versions in a bucket. The object versions following this start position are sorted in lexicographical order by object name.

+
NOTE:

If the value of versionIdMarker is not a version ID specified by marker, versionIdMarker is invalid.

+
+

bf

+

Optional (additional parameter)

+

The display formats of bytes in the listing result. Possible values are:

+
  • human-readable
  • raw
+
NOTE:

If this parameter is not configured, the display format of bytes in the result is determined by the humanReadableFormat parameter in the configuration file.

+
+

du

+

Optional (additional parameter)

+

Quickly returns the total size of listed objects, without displaying detailed object information. This parameter can be used together with other parameters.

+
NOTE:

If there are too many objects listed, wait for a while.

+
+
CAUTION:
  • This parameter is only supported by obsutil 5.4.6 and later.
+
+

limit

+

Optional (additional parameter)

+

The maximum number of objects that can be listed. If the value is less than or equal to 0, all objects are listed. If it is left blank, 1,000 objects are listed by default.

+
NOTE:

If there are a large number of objects in a bucket, you are advised to set this parameter to limit the number of objects to be listed each time. If not all objects are listed, marker and versionIdMarker of the next request will be returned in the result, which you can use to list the remaining objects.

+
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

+
+ + + + + + + + + + + + + + + + + + + +

Field

+

Description

+

Key

+

The object name

+

LastModified

+

The time when the last modification was made to the object

+

Size

+

The object size

+

StorageClass

+

The storage class of an object. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

ETag

+

The ETag of an object, which is a Base64-encoded 128-bit MD5 digest. ETag is the unique identifier of the object content. It can be used to determine whether the object content is changed. For example, if the ETag value is A when an object is uploaded, but this value has changed to B when the object is downloaded, it indicates that the object content has been changed. The ETag reflects changes to the object content, rather than the object metadata. An uploaded object or copied object has a unique ETag.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0015.html b/docs/obs/tool-obsutil/obs_11_0015.html new file mode 100644 index 000000000..1644936e7 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0015.html @@ -0,0 +1,165 @@ + + +

Querying Object Properties

+

Function

You can use this command to query the basic properties of an object.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The name of the bucket to which an object belongs

+

key

+

Mandatory

+

The name of the object whose attributes are to be queried

+

acl

+

Optional

+

Queries the access control policies of the object at the same time.

+

bf

+

Optional (additional parameter)

+

The display format of the object size (in bytes). Possible values are:

+
  • human-readable: The object size is displayed in a human-readable format. For example, the object size is displayed in KB, MB, GB, or TB (for instance, 1 GB), rather than in bytes (for instance, 1,073,741,824 bytes, which is a very large number).
  • raw: The number of bytes is displayed without any conversion or formatting. For example, if the space occupied by an object is 1 GB, the object size is displayed as 1,073,741,824 bytes.
+

For common users, the human-readable format is easier to understand. For scenarios where accurate calculation or automatic processing is required, the raw format is more suitable.

+

If this parameter is not configured, the display format of the object size (in bytes) is determined by the humanReadableFormat parameter in the configuration file.

+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Field

+

Description

+

Key

+

The object name

+

LastModified

+

The latest modification time of the object

+

Size

+

The object size

+

Unit: byte

+

StorageClass

+

The storage class of the object

+

Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data. For an object whose storage class is cold, restore the object first and then specify its storage class.
+

MD5

+

Real MD5 of the object. This parameter is used to ensure and verify data integrity.

+

You can query this value only after running the cp command and configuring the -vmd5 parameter.

+

ETag

+

The ETag value of an object calculated on the server

+

ContentType

+

The file type of an object. It determines the format and encoding method a browser will use to read the file.

+

Type

+

The file type

+

Metadata

+

The user-defined metadata of the object. This field can be queried only when the object has user-defined metadata.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0016.html b/docs/obs/tool-obsutil/obs_11_0016.html new file mode 100644 index 000000000..5099e9be0 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0016.html @@ -0,0 +1,156 @@ + + +

Restoring Objects from the Cold Storage

+

Function

You can use this command to restore a specified cold object or restore cold objects with a specific prefix in batches.

+
  • Object content cannot be read during restoration.
  • After an object is restored, the time it requires before the object can be downloaded depends on the OBS server.
+
+
+

Command Line Structure

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

key

+

Mandatory for restoring a single object whose storage class is cold

+

Optional for batch restoring objects whose storage class is cold

+

The name of the object to be restored or the name prefix of the objects to be restored in batches

+
NOTE:

If this parameter is left blank when batch restoring objects, all objects whose storage class is cold in the bucket are restored.

+
+

d

+

Optional (additional parameter)

+

The storage duration after objects whose storage class is cold are restored, in days. The value ranges from 1 to 30. The default value is 1.

+

t

+

Optional (additional parameter)

+

The options for restoring objects. Possible values are:

+
  • standard
  • expedited
+
NOTE:
  • expedited indicates that objects can be quickly restored from Archive storage within 1 to 5 minutes.
  • standard indicates that objects can be restored from Archive storage within 3 to 5 hours.
  • If this parameter is not configured, an expedited restore is used by default.
+
+

versionId

+

Optional for restoring a single object whose storage class is cold (additional parameter)

+

The version ID of the to-be-restored object whose storage class is cold

+

fr

+

Optional for restoring a single object whose storage class is cold (additional parameter)

+

Generates an operation result file when restoring a single object whose storage class is cold.

+

f

+

Optional for batch restoring objects whose storage class is cold (additional parameter)

+

Runs in force mode.

+

r

+

Mandatory for batch restoring objects whose storage class is cold (additional parameter)

+

Restores objects whose storage class is cold in batches by object name prefix.

+

v

+

Optional for batch restoring objects whose storage class is cold (additional parameter)

+

Restores versions of objects whose storage class is cold in batches by object name prefix.

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success and failure files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: restore_{succeed | failed}_report_time_TaskId.txt.

    By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.

    +
+
+

j

+

Optional for batch restoring objects whose storage class is cold (additional parameter)

+

The maximum number of concurrent tasks for batch restoring objects whose storage class is cold. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0017.html b/docs/obs/tool-obsutil/obs_11_0017.html new file mode 100644 index 000000000..e6223e8b3 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0017.html @@ -0,0 +1,329 @@ + + +

Copying an Object

+

Function

You can use this command to copy a single object or copy objects in batches by a specified object name prefix.

+
  • Do not change the source objects in the OBS bucket when copying a single object or objects in batches. Otherwise, the operation may fail or data may be inconsistent.
  • To copy objects, you must have the read permission on the objects to be copied and the write permission on the destination bucket.
  • If the client-side cross-region replication function is not enabled, ensure that the source bucket and destination bucket are in the same region.
  • If the source bucket is a parallel file system (supporting POSIX), the destination bucket must also be a parallel file system.
+
+
+

Constraints

+
+

Command Line Structure

+
+

Examples

+ + +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

srcbucket

+

Mandatory

+

The source bucket name

+

dstbucket

+

Mandatory

+

The destination bucket name

+

dest

+

Optional

+

The destination object name when copying an object, or the name prefix of destination objects when copying objects in batches

+

key

+

Mandatory for copying an object.

+

Optional for copying objects in batches.

+

The source object name when copying an object, or the name prefix of source objects when copying objects in batches

+

The rules are as follows:

+
  • This parameter cannot be left blank when copying an object.
    • If dest is left blank, the source object is copied to the root directory of the destination bucket.
    • If the value of dest ends with a slash (/), the destination object name is the value of dest plus the source object name. Otherwise, the destination object name is the value of dest.
    +
  • If this parameter is left blank when copying objects in batches, all objects in the source bucket are copied. If not, objects whose name prefix is the set value in the source bucket are copied. The rules for confirming the name of the destination object are as follows:
    • If the value of dest ends with a slash (/), the destination object name is the value of dest plus the source object name.
    • If the value of dest does not end with a slash (/), the destination object name is the value of dest/source object name.
    +
  • If this parameter is configured but the flat parameter is not when copying objects in batches, the name of the source object contains the name prefix of the parent object. If flat is configured, then the name of the source object does not contain the name prefix of the parent object.
+
NOTE:

For details about how to use this parameter, see Copy.

+
+

fr

+

Optional for copying an object (additional parameter)

+

Generates an operation result file when copying an object.

+

flat

+

Optional for copying objects in batches (additional parameter)

+

The name prefix of the parent object is excluded when copying objects in batches.

+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

crr

+

Optional (additional parameter)

+

Enables the client-side cross-region replication function. In this mode, data is directly copied to the destination bucket from the source bucket through data stream. The buckets can be any two OBS buckets.

+
  • If this parameter is configured, the configuration of client-side cross-region replication must be updated in the configuration file. For details, see Updating a Configuration File.
  • When cross-region replication is enabled, the upload/download bandwidth, CPU, and memory resources of the host where commands are executed will be occupied, which may deteriorate the host performance.
+
NOTE:

The configurations of the source bucket and destination bucket are respectively akCrr/skCrr/tokenCrr/endpointCrr and ak/sk/token/endpoint in the configuration file.

+
+

vlength

+

Optional (additional parameter)

+

Verifies whether the object size in the destination bucket is the same as that in the source bucket after the copy task completes.

+

This parameter must be used together with crr.

+

vmd5

+

Optional (additional parameter)

+

Verifies whether the MD5 value of the destination bucket is the same as that of the source bucket after the copy task completes.

+
  • This parameter must be used together with crr.
  • Objects in the source bucket must contain metadata x-obs-meta-md5chksum, or MD5 verification will be skipped. After the MD5 verification is successful, this parameter value is used for metadata x-obs-meta-md5chksum of the destination object, for later MD5 verification during download or replication.
  • If your object needs encryption, do not use this parameter.
+

u

+

Optional (additional parameter)

+

Indicates incremental copy. If this parameter is set, each object can be copied only when it does not exist in the destination bucket, its size is different from the namesake one in the destination bucket, or it has the latest modification time.

+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart copy tasks when copying an object. The default value is the value of defaultParallels in the configuration file.

+
CAUTION:

For an inter-bucket replication task that does not include the crr parameter, the maximum allowable value for this parameter is 10,000.

+
+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart copy. If the size of the object to be copied is smaller than the threshold, copy the object directly. If not, a multipart copy is required.

+

The default value is the value of defaultBigfileThreshold in the configuration file.

+

Unit: byte

+

This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).

+
NOTE:

If you copy an object directly, no part record is generated, and resumable transmission is not supported.

+
+

versionId

+

Optional for copying an object (additional parameter)

+

The source object version ID that can be specified when copying an object

+

acl

+

Optional (additional parameter)

+

The access control policies for destination objects that can be specified when copying objects

+

Possible values are:

+
  • private: Only users granted permissions by the object ACL can access the object.
  • public-read: Anyone can read objects in the bucket.
  • public-read-write: Anyone can read, write, or delete objects in the bucket.
  • bucket-owner-full-control: Only the bucket owner has full control over objects in the bucket.
+

sc

+

Optional (additional parameter)

+

The storage classes of the destination objects that can be specified when copying objects

+

Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

meta

+

Optional (additional parameter)

+

The standard or user-defined metadata that can be specified during object replication.

+
  • Standard metadata includes Content-Type, Content-Encoding, Cache-Control, Content-Disposition, Content-Language and Expires.
  • User-defined metadata must be in the format of key:value. Multiple user-defined metadata items are separated by number signs (#), for example, key1:value1#key2:value2#key3:value3, which indicates that the object copy in the destination bucket contains three groups of user-defined metadata: key1:value1, key2:value2, and key3:value3.
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart copy task

+
  • The default value is the value of defaultPartSize in the configuration file. The parameter can be set to auto. In this case, obsutil automatically configures the part size for each multipart task based on the source file size.
  • Range: 100KB to 5GB
  • Unit: byte. This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+

A part record is generated during a multipart copy and saved to the upload subfolder. After the copy succeeds, its part record is deleted automatically. If the copy fails or is suspended, the system attempts to resume the task according to its part record when you perform the copy the next time.

+

r

+

Mandatory for copying objects in batches (additional parameter)

+

Copies objects in batches based on a specified name prefix of objects in the source bucket.

+

f

+

Optional for copying objects in batches (additional parameter)

+

Runs in force mode.

+

j

+

Optional for copying objects in batches (additional parameter)

+

The maximum number of concurrent tasks for copying objects in batches. The default value is the value of defaultJobs in the configuration file.

+
CAUTION:

For an inter-bucket replication task that does not include the crr parameter, the maximum allowable value for this parameter is 10,000.

+
+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional for copying objects in batches (additional parameter)

+

The matching patterns of source objects that are excluded. After this parameter is specified, if the name of the object to be copied matches the value of this parameter, the object is skipped. For example, if this parameter is set to *.txt, all files whose names end with .txt are skipped and not copied.

+
  • An asterisk (*) matches any number of characters. For instance, abc*.txt matches all files whose names start with abc, contain any number of characters in the middle, and end with .txt.
  • A question mark (?) matches any single character. For instance, abc?.txt matches all files whose names start with abc, contain any single character in the middle, and end with .txt.
  • You can use \* to represent * and \? to represent ?.
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+

Restrictions:

+

This matching pattern applies only to objects whose names do not end with a slash (/).

+
NOTE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
+
+

include

+

Optional for copying objects in batches (additional parameter)

+

The included matching patterns of source objects. After this parameter is specified, if the name of the object to be copied matches the value of this parameter, the object is copied. For example, if this parameter is set to *.txt, all objects whose names end with .txt are copied.

+
  • An asterisk (*) matches any number of characters. For instance, abc*.txt matches all files whose names start with abc, contain any number of characters in the middle, and end with .txt.
  • A question mark (?) matches any single character. For instance, abc?.txt matches all files whose names start with abc, contain any single character in the middle, and end with .txt.
  • You can use \* to represent * and \? to represent ?.
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+

Restrictions:

+
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • If both the exclude and include parameters are configured, the exclude rules are applied first. If the name of an object to be copied does not match exclude, OBS checks whether the object name matches the value of include. If yes, the object is copied. If no, the object is skipped.
+

Example:

+
./obsutil cp obs://src-bucket/ obs://target-bucket/ -include=/src-object/* -f -r
+

This command copies files whose names start with src-object/ from the src-bucket bucket to the target-bucket bucket.

+
NOTE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
+
+

timeRange

+

Optional for copying objects in batches (additional parameter)

+

The time range matching pattern when copying objects. Only objects whose latest modification time is within the configured time range are copied.

+

This pattern has a lower priority than the file matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured file matching patterns.

+
  • Time in the matching pattern is the UTC time.
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose last modification time is earlier than time2 are matched. If it is set to time1-*, all files whose last modification time is later than time1 are matched.
+

This matching pattern applies only to objects whose names do not end with a slash (/).

+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder.

+

The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
  • A result file should be named as follows: cp_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB. You can set the maximum size by configuring recordMaxLogSize in the configuration file.
  • By default, the maximum number of result files that can be retained is 1,024. You can set the maximum number by configuring recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0018.html b/docs/obs/tool-obsutil/obs_11_0018.html new file mode 100644 index 000000000..b0517d898 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0018.html @@ -0,0 +1,298 @@ + + +

Downloading an Object

+

Function

You can use this command to download an object or download objects in batches by object name prefix to your local PC.

+
  • Do not change the source objects in the OBS bucket when downloading a single object or objects in batches. Otherwise, the download may fail or data may be inconsistent.
+
+
+

Command Line Structure

+
+

Examples

+ + +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

file_or_folder_url

+

Mandatory for downloading an object

+

The local file/folder path

+

folder_url

+

Mandatory for downloading objects in batches

+

The local folder path

+

bucket

+

Mandatory

+

The bucket name

+

key

+

Mandatory for downloading an object

+

Optional for downloading objects in a batch

+

The name of the object to be downloaded, or the name prefix of the objects to be downloaded in batches

+

This parameter cannot be left blank when downloading an object. The saving and naming rules are as follows:

+
  • If this parameter specifies a file or folder path that does not exist, the tool checks whether the value ends with a slash (/) or backslash (\). If yes, a folder is created based on the path, and the object is downloaded to this newly created directory.
  • If this parameter specifies a file or folder path that does not exist and the value does not end with a slash (/) or backslash (\), the object is downloaded to your local PC with the value of key as the file name.
  • If this parameter specifies an existing file, the object is downloaded to your local PC overwriting the existing file, with the value of key as the file name.
  • If this parameter specifies an existing folder, the object is downloaded to the directory specified by file_or_folder_url with the object name as the file name.
+

During batch download, the saving rules are as follows:

+
  • If this parameter is left blank, all objects in the bucket are downloaded to the directory specified by folder_url.
  • If this parameter is configured, objects whose name prefix is the configured value in the bucket are downloaded to the directory specified by folder_url.
+
NOTE:
  • If this parameter is configured but the flat parameter is not configured when downloading objects in a batch, the name of the downloaded file contains the name prefix of the parent object. If flat is configured, then the name of the downloaded file does not contain the name prefix of the parent object.
  • For details about how to use this parameter, see Download.
+
+

fr

+

Optional for downloading an object (additional parameter)

+

Generates an operation result file when downloading an object.

+

flat

+

Optional for downloading objects in batches (additional parameter)

+

The name prefix of the parent object is excluded when downloading objects in batches.

+

tempFileDir

+

Optional (additional parameter)

+

The directory for storing temporary files during multipart download. The default value is the value of defaultTempFileDir in the configuration file.

+
NOTE:
  • If this parameter is left blank and the defaultTempFileDir parameter in the configuration file is also left blank, temporary files generated during multipart download are saved in the directory where to-be-downloaded files are located and end with the suffix of .obs.temp.
  • Temporary files generated during multipart download are stored in this directory. Therefore, ensure that the user who executes obsutil has the write permission on the path.
  • The available space of the partition where the path is located must be greater than the size of the objects to be downloaded.
+
+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

u

+

Optional (additional parameter)

+

Indicates incremental download. If this parameter is set, each object can be downloaded only when it does not exist in the local path, its size is different from the namesake one in the local path, or it has the latest modification time.

+

vlength

+

Optional (additional parameter)

+

Checks whether the sizes of the local files are the same as those of the objects in the bucket after the download is complete.

+

vmd5

+

Optional (additional parameter)

+

Checks whether MD5 values of the local files are the same as those of the objects in the bucket after the download is complete.

+
NOTE:

Objects in the bucket must contain metadata x-obs-meta-md5chksum, or MD5 verification will be skipped.

+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart download tasks when downloading an object. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

Indicates the threshold for enabling multipart download, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the object to be downloaded is smaller than the threshold, download the object directly. If not, a multipart download is required.
  • If you download an object directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

versionId

+

Optional for downloading an object (additional parameter)

+

The source object version ID that can be specified when downloading an object

+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart download task, in bytes. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart download and saved to the down subfolder. After the download succeeds, its part record is deleted automatically. If the download fails or is suspended, the system attempts to resume the task according to its part record when you perform the download the next time.

+
+

r

+

Mandatory for downloading objects in batches (additional parameter)

+

Copies objects in batches based on a specified object name prefix.

+

f

+

Optional for downloading objects in batches (additional parameter)

+

Runs in force mode.

+

j

+

Optional for downloading objects in batches (additional parameter)

+

The maximum number of concurrent tasks for downloading objects in a batch. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional for downloading objects in batches (additional parameter)

+

The matching patterns of source objects that are excluded, for example, *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be downloaded matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional for downloading objects in batches (additional parameter)

+

Specifies what formats of objects can be downloaded. If this parameter is set to *.jpg, only objects in the .jpg format can be downloaded.

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be downloaded does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is downloaded. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional for downloading objects in batches (additional parameter)

+

The time range matching pattern when downloading objects. Only objects whose latest modification time is within the configured time range are downloaded.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: cp_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0019.html b/docs/obs/tool-obsutil/obs_11_0019.html new file mode 100644 index 000000000..e3c8faf89 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0019.html @@ -0,0 +1,144 @@ + + +

Listing Multipart Upload Tasks

+

Function

You can use this command to query multipart upload tasks in a bucket.

+
+

Command Line Structure

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

prefix

+

Optional

+

The object name prefix for listing multipart uploads

+
NOTE:

If this parameter is left blank, all multipart upload tasks in the bucket are listed.

+
+

s

+

Optional (additional parameter)

+

Displays simplified query result.

+
NOTE:

In the simplified format, the returned result contains only the object name and upload ID of the multipart upload.

+
+

d

+

Optional (additional parameter)

+

Lists only the multipart upload tasks and sub-directories in the current directory are listed, instead of recursively listing all the multipart upload tasks and sub-directories.

+

m

+

Mandatory (additional parameter)

+

Lists multipart upload tasks in the bucket.

+

a

+

Optional (additional parameter)

+

Lists the objects and the multipart upload tasks in the bucket.

+

marker

+

Optional (additional parameter)

+

The start position for listing multipart upload tasks in a bucket. The multipart upload tasks following this start position are sorted in lexicographical order by object name.

+
NOTE:

For details about how to use this parameter, see Listing Multipart Upload Tasks.

+
+

uploadIdMarker

+

Optional (additional parameter)

+

The start position for listing multipart upload tasks in a bucket. This parameter must be used together with marker. The multipart upload tasks following this start position are sorted in lexicographical order by object name and upload ID.

+

limit

+

Optional (additional parameter)

+

The maximum number of objects that can be listed. If the value is less than or equal to 0, all objects are listed.

+
NOTE:

If there are a large number of multipart upload tasks in a bucket, you are advised to set this parameter to limit the number of multipart upload tasks each time. If not all tasks are listed, marker and uploadIdMarker of the next request will be returned in the result, which you can use to list the remaining tasks.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0020.html b/docs/obs/tool-obsutil/obs_11_0020.html new file mode 100644 index 000000000..98ff532f8 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0020.html @@ -0,0 +1,134 @@ + + +

Deleting a Multipart Upload Task

+

Function

+
+

Command Line Structure

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

key

+

Mandatory for deleting a multipart upload task.

+

Optional for deleting multipart upload tasks in batches.

+

The object name involved in a multipart upload task to be deleted, or the name prefix of the objects involved in multipart upload tasks to be deleted in batches

+
NOTE:

If this parameter is left blank when deleting multipart upload tasks in batches, all multipart upload tasks in the bucket are deleted.

+
+

u

+

Mandatory for deleting a single multipart upload task (additional parameter)

+

The ID of the multipart upload task to be deleted

+
NOTE:

You can obtain the value of this parameter from Listing Multipart Upload Tasks.

+
+

fr

+

Optional for deleting a single multipart upload task (additional parameter)

+

Generates an operation result file when deleting a multipart upload task.

+

f

+

Optional (additional parameter)

+

Runs in force mode.

+

r

+

Mandatory for deleting multipart upload tasks (additional parameter)

+

Deletes multipart upload tasks in batches based on a specified object name prefix.

+

j

+

Optional for deleting multipart upload tasks (additional parameter)

+

The maximum number of concurrent tasks for deleting multipart uploads in batches. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success and failure files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: abort_{succeed | failed}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.
+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0021.html b/docs/obs/tool-obsutil/obs_11_0021.html new file mode 100644 index 000000000..6c9321fd5 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0021.html @@ -0,0 +1,156 @@ + + +

Deleting an Object

+

Function

+
+

Important Notes

In big data scenarios, parallel file systems usually have deep directory levels and each directory has a large number of files. In such case, deleting directories from parallel file systems may fail due to timeout. To address this problem, you are advised to delete directories in either of the following ways:

+
  1. On the Hadoop client that has OBSA, an OBS client plugin, embedded, run the hadoop fs - rmr obs://{Name of a parallel file system}/{Directory name} command.
  2. Configure a lifecycle rule for directories so that they can be deleted in background based on the preset lifecycle rule.
+
+

Command Line Structure

+
+

Examples

+ +
+ +

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

key

+

Mandatory for deleting a single object.

+

Optional for deleting objects in batches.

+

The name of the object to be deleted, or the name prefix of the objects to be deleted in batches

+
NOTE:

If this parameter is left blank when deleting objects in batches, all objects in the bucket are deleted.

+
+

fr

+

Optional for deleting a single object (additional parameter)

+

Generates an operation result file when deleting an object.

+

f

+

Optional (additional parameter)

+

Runs in force mode.

+

versionId

+

Optional for deleting a single object (additional parameter)

+

The version ID of the object to be deleted.

+

r

+

Mandatory for deleting objects in batches (additional parameter)

+

Deletes objects in batches based on a specified object name prefix.

+
CAUTION:

When you batch delete objects, all objects with the specified prefix will be deleted.

+
+

j

+

Optional for deleting objects in batches (additional parameter)

+

The maximum number of concurrent tasks for deleting objects in batches. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

v

+

Optional for deleting objects in batches (additional parameter)

+

Deletes versions of an object and the delete markers in batches based on a specified object name prefix.

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success and failure files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: rm_{succeed | failed}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0022.html b/docs/obs/tool-obsutil/obs_11_0022.html new file mode 100644 index 000000000..a41b577dc --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0022.html @@ -0,0 +1,19 @@ + + +

Auxiliary Commands

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0023.html b/docs/obs/tool-obsutil/obs_11_0023.html new file mode 100644 index 000000000..a94354f92 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0023.html @@ -0,0 +1,85 @@ + + +

Updating a Configuration File

+

Function

You can update items in the .obsutilconfig file, including the endpoint, AK, SK, and token.

+

Configuration Parameters describes parameters in the .obsutilconfig file.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

interactive

+

Optional (additional parameter)

+

Updates settings in interactive mode.

+

crr

+

Optional (additional parameter)

+

Updates the settings of client-side cross-region replication.

+
NOTE:

If this parameter is not specified, endpoint, ak, sk, and token will be updated.

+

If this parameter is specified, endpointCrr, akCrr, skCrr, and tokenCrr will be updated.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

By specifying this parameter and a path, you can update parameters in the user-defined configuration file. Otherwise, parameters in the default configuration file will be updated.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0024.html b/docs/obs/tool-obsutil/obs_11_0024.html new file mode 100644 index 000000000..dd839760f --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0024.html @@ -0,0 +1,80 @@ + + +

Deleting Part Records

+

Function

You can use this command to delete part records from a specified directory.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

checkpoint_dir

+

Optional

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the same subfolder where obsutil commands reside.

+

u

+

Optional (additional parameter)

+

Deletes the part records of all multipart upload tasks.

+
NOTE:

At the same time, the system attempts to delete the multipart upload tasks in the part records.

+
+

d

+

Optional (additional parameter)

+

Deletes the part records of all multipart download tasks.

+
NOTE:

At the same time, the system attempts to delete the fragments in the part records.

+
+

c

+

Optional (additional parameter)

+

Deletes the part records of all multipart copy tasks.

+
NOTE:

At the same time, the system attempts to delete the multipart copy tasks in the part records.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing a command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+

You must configure at least one among the u, d and c parameters.

+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0025.html b/docs/obs/tool-obsutil/obs_11_0025.html new file mode 100644 index 000000000..d67be6815 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0025.html @@ -0,0 +1,105 @@ + + +

Viewing Command Help Information

+

Function

You can use this command to view the commands supported by obsutil or view the help information of a specific command.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

command

+

Optional

+

Currently, the help documents of the following commands are available:

+ +
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0026.html b/docs/obs/tool-obsutil/obs_11_0026.html new file mode 100644 index 000000000..e2912bd88 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0026.html @@ -0,0 +1,22 @@ + + +

Querying the Version Number

+

Function

You can use this command to query the current version of obsutil.

+
+

Command Line Structure

+
+

Examples

Take the Windows OS as an example.

+
obsutil version
+
+obsutil version:5.1.9, obssdk version:2.2.12
+operating system:windows, arch:amd64
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0027.html b/docs/obs/tool-obsutil/obs_11_0027.html new file mode 100644 index 000000000..6e3317430 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0027.html @@ -0,0 +1,27 @@ + + +

Common Examples

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0028.html b/docs/obs/tool-obsutil/obs_11_0028.html new file mode 100644 index 000000000..75a548d13 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0028.html @@ -0,0 +1,106 @@ + + +

Upload

+

All commands in this section use the Linux operating system as an example to describe how to upload files.

+

Assume that a local folder is in the following structure:

+
└── src1
+    ├── src2
+        ├── test1.txt
+        └── test2.txt
+    ├── src3
+    └── test3.txt
+

Based on the preceding folder structure, different upload scenarios require different commands.

+ +

Resumable upload is available only for large files. Specifically, the file size is greater than 5 GB or the file size is greater than the threshold (50 MB by default).

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0029.html b/docs/obs/tool-obsutil/obs_11_0029.html new file mode 100644 index 000000000..12e1e36e9 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0029.html @@ -0,0 +1,83 @@ + + +

Download

+

All commands in this section use the Linux operating system as an example to describe how to download files.

+

Assume that bucket bucket-test contains the following objects:

+
obs://bucket-test/test1.txt
+obs://bucket-test/test2.txt
+obs://bucket-test/test3.txt
+obs://bucket-test/test4.txt
+obs://bucket-test/test5.txt
+obs://bucket-test/test6.txt
+obs://bucket-test/src1/
+obs://bucket-test/src1/test7.txt
+obs://bucket-test/src2/
+obs://bucket-test/src2/test8.txt
+obs://bucket-test/src2/src3/
+obs://bucket-test/src2/src3/test9.txt
+

Based on the structure of objects in the bucket, different download scenarios require different commands.

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0030.html b/docs/obs/tool-obsutil/obs_11_0030.html new file mode 100644 index 000000000..f443113ec --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0030.html @@ -0,0 +1,46 @@ + + +

Copy

+

All commands in this section use the Linux operating system as an example to describe how to copy files.

+

Assume that bucket bucket-src contains the following objects:

+
obs://bucket-src/test1.txt
+obs://bucket-src/test2.txt
+obs://bucket-src/test3.txt
+obs://bucket-src/test4.txt
+obs://bucket-src/test5.txt
+obs://bucket-src/test6.txt
+obs://bucket-src/src1/
+obs://bucket-src/src1/test7.txt
+obs://bucket-src/src2/
+obs://bucket-src/src2/test8.txt
+obs://bucket-src/src2/src3/
+obs://bucket-src/src2/src3/test9.txt
+

Based on the structure of objects in the bucket, different copy scenarios require different commands.

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0031.html b/docs/obs/tool-obsutil/obs_11_0031.html new file mode 100644 index 000000000..c8fde61c7 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0031.html @@ -0,0 +1,44 @@ + + +

Listing

+

All commands in this section use the Linux operating system as an example to describe how to list files.

+

Assume that bucket bucket-test contains the following objects:

+
obs://bucket-test/test1.txt
+obs://bucket-test/test2.txt
+obs://bucket-test/test3.txt
+obs://bucket-test/test4.txt
+obs://bucket-test/test5.txt
+obs://bucket-test/test6.txt
+obs://bucket-test/src1/
+obs://bucket-test/src1/test7.txt
+obs://bucket-test/src2/
+obs://bucket-test/src2/test8.txt
+

Based on the structure of objects in the bucket, different object listing scenarios require different commands.

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0032.html b/docs/obs/tool-obsutil/obs_11_0032.html new file mode 100644 index 000000000..3d3eb0396 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0032.html @@ -0,0 +1,31 @@ + + +

Listing Multipart Upload Tasks

+

All commands in this section use the Linux operating system as an example to describe how to list multipart upload tasks.

+

Assume that bucket bucket-test contains the following multipart upload tasks:

+
obs://bucket-test/task1.txt uploadid1
+obs://bucket-test/task1.txt uploadid2
+obs://bucket-test/task2.txt uploadid3
+obs://bucket-test/task3.txt uploadid4
+obs://bucket-test/src1/
+obs://bucket-test/src1/task4.txt uploadid5
+obs://bucket-test/src2/
+obs://bucket-test/src2/task5.txt uploadid6
+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0033.html b/docs/obs/tool-obsutil/obs_11_0033.html new file mode 100644 index 000000000..ab38b9e9c --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0033.html @@ -0,0 +1,29 @@ + + +

Best Practices

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0034.html b/docs/obs/tool-obsutil/obs_11_0034.html new file mode 100644 index 000000000..d6425dac7 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0034.html @@ -0,0 +1,25 @@ + + +

Configuring Scheduled Tasks Using the Crontab Command

+

Scenario

Go to the /root directory at 21:30 every day and upload the /src/src1 folder to bucket obs://bucket-test in the incremental mode.

+
+

Prerequisites

You have properly enabled the scheduled crond service in the Linux OS.

+

Run the service crond status command to check whether the service is enabled.

+
+
+

Procedure

  1. Run the crontab -e command to open the configuration file for setting a scheduled task.
  2. Enter the Insert mode to edit the configuration file.

    30 21 * * * cd /root && nohup ./obsutil cp /src/src1 obs://bucket-test -r -f -u &>obsutil_crond.log &
    +

    Assume that the obsutil tool is in the /root directory. The preceding configuration is described as follows: Go to the /root directory at 21:30 every day, upload the /src/src1 folder to bucket obs://bucket-test in incremental mode, and redirect the command output to the obsutil_crond.log file in the /root directory.

    +
    +

  3. Press Esc to exit the Insert mode. Then input :wq and press Enter to save the configuration and exit.
  4. Run the crontab -l command to check whether the scheduled task is configured successfully.
+
+

FAQs

  1. How do I determine whether a scheduled task is being executed?
    • Run the tail /var/log/cron command to view the latest scheduled task execution records.
    • Run the ps -ef | grep obsutil command to check whether obsutil is being executed.
    +
  2. How do I forcibly stop an ongoing scheduled task?
    1. Run the ps -ef | grep obsutil command to check the process of obsutil.
    2. Run the kill -9 PID command to forcibly stop the process, where PID indicates the queried process ID.
    +
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0035.html b/docs/obs/tool-obsutil/obs_11_0035.html new file mode 100644 index 000000000..082612e41 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0035.html @@ -0,0 +1,542 @@ + + +

Configuration Parameters

+

You can set obsutil parameters in the .obsutilconfig file.

+

Configuration file format:

+
endpoint=<value>
+ak=<value>
+sk=<value>
+token=<value>
+endpointCrr=<value>
+akCrr=<value>
+skCrr=<value>
+tokenCrr=<value>
+connectTimeout=<value>
+socketTimeout=<value>
+maxRetryCount=<value>
+maxConnections=<value>
+defaultBigfileThreshold=<value>
+defaultPartSize=<value>
+defaultParallels=<value>
+defaultJobs=<value>
+defaultJobsCacheCount=<value>
+rateLimitThreshold=<value>
+sdkLogBackups=<value>
+sdkLogLevel=<value>
+sdkLogPath=<value>
+sdkMaxLogSize=<value>
+utilLogBackups=<value>
+utilLogLevel=<value>
+utilLogPath=<value>
+utilMaxLogSize=<value>
+writeBufferIoSize=<value>
+readBufferIoSize=<value>
+recordMaxLogSize=<value>
+recordBackups=<value>
+humanReadableFormat=<value>
+showProgressBar=<value>
+showStartTime=<value>
+helpLanguage=<value>
+defaultTempFileDir=<value>
+checkSourceChange=<value>
+skipCheckEmptyFolder=<value>
+fsyncForDownload=<value>
+memoryEconomicalScanForUpload=<value>
+forceOverwriteForDownload=<value>
+panicForSymbolicLinkCircle=<value>
+fastFailThreshold=<value>
+abortHttpStatusForResumableTasks=<value>
+showBytesForCopy=<value>
+proxyUrl=<value>
+faultTolerantMode=<value>
+

Table 1 describes the parameters.

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 obsutil configuration parameters

Parameter

+

Optional or Mandatory

+

Description

+

Recommended Value

+

endpoint

+

Mandatory

+

Endpoint for accessing OBS, which can contain the protocol type, domain name, and port number (optional), for example, https://your-endpoint:443. (For security purposes, you are advised to use HTTPS. The port number 443 can be omitted.)

+
NOTE:
  • To view the endpoints and regions available for OBS, see Regions and Endpoints.
  • If the configured endpoint does not contain any protocol, the HTTPS protocol is used by default.
+
+

N/A

+

ak

+

Mandatory

+

Access key ID.

+
NOTE:
  • After you run obsutil for the first time, the tool encrypts the AK to ensure the key security.
+
+

N/A

+

sk

+

Mandatory

+

Secret access key.

+
NOTE:
  • After you run obsutil for the first time, the tool encrypts the SK to ensure the key security.
+
+

N/A

+

token

+

Optional

+

Security token. If this parameter is empty, the security token is not set. When temporary AK and SK are used to access OBS, the token must be carried.

+

N/A

+

endpointCrr

+

Optional

+

Endpoint for accessing OBS in the region where the source bucket resides when the client-side cross-region replication function is enabled, which can contain the protocol type, domain name, and port number, for example, https://your-endpoint:443. (For security purposes, you are advised to use HTTPS. The port number 443 can be omitted.)

+
NOTE:
+
  • To view the endpoints and regions available for OBS, see Regions and Endpoints.
  • If the configured endpoint does not contain any protocol, the HTTPS protocol is used by default.
+
+

N/A

+

akCrr

+

Optional

+

AK for the source bucket when the client-side cross-region replication function is enabled

+

N/A

+

skCrr

+

Optional

+

SK for the source bucket when the client-side cross-region replication function is enabled

+

N/A

+

tokenCrr

+

Optional

+

Security token used by the source bucket when the client-side cross-region replication is used. If this parameter is left blank, no security token is set. This parameter is mandatory when temporary access keys are used for access.

+

N/A

+

connectTimeout

+

Optional

+

Timeout interval for establishing an HTTP/HTTPS connection, in seconds. The default value is 30.

+

[5, 120]

+

socketTimeout

+

Optional

+

Timeout interval for reading and writing data, in seconds. The default value is 310.

+

[5, 600]

+

maxRetryCount

+

Optional

+

Maximum number of retry attempts. The default value is 3.

+
NOTE:

When an OBS request completes but HTTP status code 408 or 5XX is returned, or when a timeout error occurs in an OBS request, the request is retried.

+
+

[0, 5]

+

maxConnections

+

Optional

+

Maximum number of HTTP connections that can be accessed. The default value is 1000.

+

N/A

+

defaultBigfileThreshold

+

Optional

+

Threshold for triggering a multipart upload, in bytes. If the size of a file to be uploaded, downloaded, or copied is greater than the specified threshold, the file will be uploaded, downloaded, or copied using a multipart upload. The default value is 50MB.

+
NOTE:

This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).

+
+

Greater than 5MB

+

defaultPartSize

+

Optional

+

Size of each part, in bytes. The default value is auto.

+
NOTE:
  • For a multipart upload and copy, the value ranges from 100KB to 5GB.
  • For multipart download, the value is unrestricted.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • If this parameter is set to auto, obsutil automatically sets the part size for each multipart task based on the source file or object size.
+
+

[9MB, 100MB]

+

defaultParallels

+

Optional

+

Maximum number of concurrent tasks in the multipart mode. The default value is 5.

+

Set this parameter according to Fine-Tuning obsutil Performance.

+

defaultJobs

+

Optional

+

Maximum number of concurrent tasks in batches. The default value is 5.

+
NOTE:

Batch tasks include uploading, downloading, and copying folders, as well as restoring and deleting objects in batches.

+
+

[1, 50]

+

defaultJobsCacheCount

+

Optional

+

Cache size of a batch task queue, indicating the maximum number of tasks that can be cached. The default value is 1000000.

+
NOTE:

More cached tasks consume more memory resources. Therefore, you are advised to adjust the value of this parameter based on site requirements.

+
+

Default value

+

rateLimitThreshold

+

Optional

+

Traffic control threshold of an upload or a download request, in bytes per second. The default value is 0, indicating that traffic is not limited. The minimum value is 10KB.

+
NOTE:

This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).

+
+

Greater than 100KB

+

sdkLogBackups

+

Optional

+

Maximum number of SDK log files that can be retained. The default value is 10.

+

N/A

+

sdkLogLevel

+

Optional

+

SDK log level. Possible values are:

+
  • DEBUG
  • INFO
  • WARN
  • ERROR
+

The default value is WARN.

+

N/A

+

sdkLogPath

+

Optional

+

Absolute path of SDK logs. The value must be a file path. The default value is the path of the obssdk.log file in the subfolder obsutil_log of the user's home directory (HOME in Linux or macOS and C:\Users\<Username> in Windows).

+
NOTE:
  • If this parameter is left blank, no SDK log is generated.
  • The path must be a file path and cannot be a folder path.
  • After the SDK log function is enabled, all logs of requests to OBS are saved in the SDK log file for problem analysis and location.
  • Ensure that the user who runs the command has the read and write permissions on the path.
+
+
NOTICE:

If multiple obsutil processes are running at the same time, log files may fail to be written concurrently or may be lost. In this case, add parameter -config when running commands to configure an independent configuration file for each process.

+
+

N/A

+

sdkMaxLogSize

+

Optional

+

Size of an SDK log file, in bytes. The default value is 30MB.

+
NOTE:

This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).

+
+

[10MB, 100MB]

+

utilLogBackups

+

Optional

+

Maximum number of obsutil log files that can be retained. The default value is 10.

+

N/A

+

utilLogLevel

+

Optional

+

obsutil log level. Possible values are:

+
  • DEBUG
  • INFO
  • WARN
  • ERROR
+

The default value is INFO.

+

N/A

+

utilLogPath

+

Optional

+

Absolute path of obsutil logs. The value must be a file path. The default value is the path of the obsutil.log file in the subfolder .obsutil_log of the user's home directory (HOME in Linux or macOS and C:\Users\<Username> in Windows).

+
NOTE:
  • If this parameter is left blank, no obsutil log is generated.
  • The path must be a file path and cannot be a folder path.
  • After the obsutil log function is enabled, all logs generated during commands executing are saved in the obsutil log file for problem analysis and location.
  • Ensure that the user who runs the command has the read and write permissions on the path.
+
+
NOTICE:

If multiple obsutil processes are running at the same time, log files may fail to be written concurrently. In this case, add parameter -config when running commands to configure an independent configuration file for each process.

+
+

N/A

+

utilMaxLogSize

+

Optional

+

Size of an obsutil log file, in bytes. The default value is 30MB.

+
NOTE:

This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).

+
+

[10MB, 100MB]

+

writeBufferIoSize

+

Optional

+

Size of the cache for downloading data, in bytes. The default value is 65536.

+
NOTE:
  • Set this parameter based on site requirements. If the size of the file to be downloaded is large, set this parameter to a large value.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

N/A

+

readBufferIoSize

+

Optional

+

Size of the cache for uploading data, in bytes. The default value is 8192.

+
NOTE:
  • Set this parameter based on site requirements. If a large number of small files are uploaded, set this parameter to a small value. If large files are uploaded, set this parameter to a large value.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

[4096, 65536]

+

recordMaxLogSize

+

Optional

+

Size of a success, failure, or warning result file of a batch task, in bytes. The default value is 30MB.

+
NOTE:

This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).

+
+

[5MB, 100MB]

+

recordBackups

+

Optional

+

Maximum number of result files of successful or failed batch tasks that can be retained. The default value is 1024.

+

N/A

+

humanReadableFormat

+

Optional

+

Indicates whether to convert the number of bytes in the object listing result and result list content to the human-readable format. The default value is true.

+

N/A

+

showProgressBar

+

Optional

+

Indicates whether to display the progress bar on the console. The value true indicates that the progress bar is displayed. The default value is true.

+

N/A

+

showStartTime

+

Optional

+

Indicates whether to display the start time on the console. The value true indicates that start time is displayed. The default value is true.

+

N/A

+

helpLanguage

+

Optional

+

Language of the help documents. Options are as follows:

+
  • Chinese
  • English
+

The default value is English.

+

N/A

+

defaultTempFileDir

+

Optional

+

Indicates the directory for storing temporary files during download.

+

The default value is the .obsutil_tempfile subfolder in the user directory (HOME in Linux or macOS and C:\Users\<Username> in Windows).

+
NOTE:
  • Temporary files generated during multipart download are stored in this directory. Therefore, ensure that the user who executes obsutil has the write permission on the path.
  • The available space of the partition where the path is located must be greater than the size of the objects to be downloaded.
+
+

N/A

+

checkSourceChange

+

Optional

+

Indicates whether to check the change of source files or objects during upload/download/copy. The value true indicates that the function is enabled.

+

N/A

+

skipCheckEmptyFolder

+

Optional

+

Indicates whether to skip checking empty folders on the OBS server during download. true indicates to skip the check. The default value is false.

+
NOTICE:

If this parameter is set to true, the directory structure downloaded to your local PC may be different from that in OBS.

+
+

N/A

+

fsyncForDownload

+

Optional

+

Indicates whether to forcibly synchronize memory data to disks during download. The value true indicates to enable forcible synchronization. The default value is false.

+
NOTE:
  • Set this parameter to true for scenarios that require high data reliability.
  • If this parameter is set to true, the download performance will be deteriorated. Therefore, exercise caution when using this parameter.
+
+

N/A

+

memoryEconomicalScanForUpload

+

Optional

+

Indicates whether to use the scanning mode that occupies less memory space when uploading a folder. The value true indicates using this method. The default value is true.

+

N/A

+

forceOverwriteForDownload

+

Optional

+

Indicates to forcibly overwrite the local executable file (even if the local executable file is running) when downloading objects to the Linux OS or macOS. The value true means to overwrite, and the default value is true.

+

N/A

+

panicForSymbolicLinkCircle

+

Optional

+

Indicates the processing method after a symbolic link loop is detected during upload. The value false indicates that errors are only recorded. The value true indicates that panic is triggered. The default value is false.

+

N/A

+

fastFailThreshold

+

Optional

+

Threshold for fast failure upon 4XX errors of batch tasks. When the number of 4XX errors exceeds the threshold, the fast failure process is triggered. All tasks that are not executed or being scanned are suspended. The default value is 5.

+
NOTE:

The fast failure mechanism is to avoid excessive traffic generated during batch task execution. To start a fast failure as soon as possible, set this parameter to 0 or -1, indicating that the fast failure process starts immediately whenever a 4XX error occurs.

+
+

N/A

+

abortHttpStatusForResumableTasks

+

Optional

+

HTTP status codes for fast interruption of multipart upload, download, and copy tasks. If a sub-task of a multipart task receives an HTTP code that falls into this range, the multipart task is immediately interrupted. The default value is 401,403,404,405,409.

+
NOTE:
  • Multiple HTTP status codes can be carried and separated by commas (,), for example, 401,403,404.
  • The status code must be a 4XX HTTP status code. Other status codes are ignored.
+
+

Default value

+

showBytesForCopy

+

Optional

+

Indicates whether the progress bar displays the rate in bytes when objects are copied between buckets. The default value is false.

+

N/A

+

proxyUrl

+

Optional

+

HTTP proxy example: http://username:password@your-proxy:8080

+
NOTE:
  • HTTP proxy format: http://[Username:Password@]Proxy server address:Port number. The Username and Password are optional.
  • The proxyUrl parameter and system environment variables are in the following priority order: proxyUrl > HTTPS_PROXY > HTTP_PROXY.
  • The user name and password cannot contain colons (:) and at signs (@), which will result in parsing errors.
+
+

N/A

+

faultTolerantMode

+

Optional

+

Indicates whether to ignore the panic caused by read operations. Default value false indicates that the panic is not ignored.

+

N/A

+
+
+
  • Set parameters with N/A as the recommended value based on your needs.
  • You are advised to specify sdkLogPath and utilLogPath to enable SDK logging and obsutil logging.
  • The values of defaultBigfileThreshold, defaultPartSize, rateLimitThreshold, sdkMaxLogSize, utilMaxLogSize, recordMaxLogSize, readBufferIoSize, and writeBufferIoSize can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+
+ diff --git a/docs/obs/tool-obsutil/obs_11_0036.html b/docs/obs/tool-obsutil/obs_11_0036.html new file mode 100644 index 000000000..072fbabba --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0036.html @@ -0,0 +1,258 @@ + + +

Resuming a Failed Upload Task

+

Function

You can use this command to resume a failed upload task based on the task ID.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

recover

+

Mandatory (additional parameter)

+

The ID of the upload task to be resumed

+
NOTE:
  • You can obtain the task ID after an upload task is complete, or query it based on the file name of the result list. A task ID is the 36 characters, excluding the suffix .txt.
  • You can locate the upload task to be resumed in the folder where the result files reside. For details about the path of the result folder, see additional parameter o.
+
+

arcDir

+

Optional (additional parameter)

+

The path to which the uploaded files are archived

+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

u

+

Optional (additional parameter)

+

Indicates incremental upload. If this parameter is set, each file can be uploaded only when it does not exist in the bucket, its size is different from the namesake one in the bucket, or it has the latest modification time.

+

vlength

+

Optional (additional parameter)

+

After the upload completes, checks whether the sizes of the objects in the bucket are the same as those of the local files.

+

vmd5

+

Optional (additional parameter)

+

After the upload completes, checks whether the MD5 values of the objects in the bucket are the same as those of the local files.

+
NOTE:
  • If the size of the file or folder to be uploaded is too large, using this parameter will degrade the overall performance due to MD5 calculation.
  • After the MD5 verification is successful, this parameter value is used for metadata x-obs-meta-md5chksum, for later MD5 verification during download or copy.
+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart upload tasks when uploading a file. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart upload, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the file or folder to be uploaded is smaller than the threshold, upload it directly. Otherwise, a multipart upload is required.
  • If you upload a file or folder directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

acl

+

Optional (additional parameter)

+

The access control policies that can be specified when uploading files. Possible values are:

+
  • private
  • public-read
  • public-read-write
+
NOTE:

The preceding three values indicate private read and write, public read, and public read and write.

+
+

sc

+

Optional (additional parameter)

+

The storage classes of objects that can be specified when uploading files. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

meta

+

Optional (additional parameter)

+

The customized metadata that can be specified when uploading files. The format is key1:value1#key2:value2#key3:value3.

+
NOTE:

The preceding value indicates that the object in the bucket contains three groups of customized metadata after the file is uploaded: key1:value1, key2:value2, and key3:value3.

+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart upload task, in bytes. The value ranges from 100KB to 5GB. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source file size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart upload and saved to the upload subfolder. After the upload succeeds, its part record is deleted automatically. If the upload fails or is suspended, the system attempts to resume the task according to its part record when you perform the upload the next time.

+
+

f

+

Optional (additional parameter)

+

Runs in force mode.

+

j

+

Optional (additional parameter)

+

The maximum number of concurrent tasks for uploading a folder. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional (additional parameter)

+

The file matching patterns that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the file to be uploaded matches the value of this parameter, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute file path (including the file name and file directory).
  • The matching pattern applies only to files in a folder.
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional (additional parameter)

+

The file matching patterns that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use ** to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be uploaded does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is uploaded. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute file path (including the file name and file directory).
  • The matching pattern applies only to files in a folder.
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

at

+

Optional (additional parameter)

+

Indicates that when resuming a failed upload task, only the files whose latest access time is within the value of timeRange are uploaded.

+
NOTE:
  • This parameter must be used together with timeRange.
+
+

timeRange

+

Optional (additional parameter)

+

The time range matching pattern when uploading files. Only files whose latest modification time is within the configured time range are uploaded.

+

This pattern has a lower priority than the file matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured file matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:

Time in the matching pattern is the UTC time.

+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: cp_{succeed | failed | warning}_report_time_TaskId.txt.

    By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.

    +
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

clear

+

Optional (additional parameter)

+

Deletes the failure result files after the upload task is resumed.

+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0037.html b/docs/obs/tool-obsutil/obs_11_0037.html new file mode 100644 index 000000000..9cc62e3f2 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0037.html @@ -0,0 +1,256 @@ + + +

Resuming a Failed Copy Task

+

Function

You can use this command to resume a failed copy task based on the task ID.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

recover

+

Mandatory (additional parameter)

+

The ID of the copy task to be resumed

+
NOTE:
  • You can obtain the task ID after a copy task is complete, or query it based on the file name of the result list. A task ID is the 36 characters, excluding the suffix .txt.
  • You can locate the copy task to be resumed in the folder where the result files reside. For details about the path of the result folder, see additional parameter o.
+
+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

crr

+

Optional (additional parameter)

+

Enables the client-side cross-region replication function. In this mode, data is directly copied to the destination bucket from the source bucket through data stream. The buckets can be any two OBS buckets.

+
NOTE:
  • If this parameter is configured, ensure that the configuration of client-side cross-region replication is updated in the configuration file. For details, see Updating a Configuration File.
  • The configurations of the source bucket and destination bucket are respectively akCrr/skCrr/tokenCrr/endpointCrr and ak/sk/token/endpoint in the configuration file.
+
+
NOTICE:

When cross-region replication is enabled, the upload/download bandwidth, CPU, and memory resources of the host where commands are executed will be occupied, which may deteriorate the host performance.

+
+

vlength

+

Optional (additional parameter)

+

Verifies whether the object size in the destination bucket is the same as that in the source bucket after the copy task completes.

+
NOTE:

This parameter must be used together with crr.

+
+

vmd5

+

Optional (additional parameter)

+

Verifies whether the MD5 value of the destination bucket is the same as that of the source bucket after the copy task completes.

+
NOTE:
  • This parameter must be used together with crr.
  • Objects in the source bucket must contain metadata x-obs-meta-md5chksum, or MD5 verification will be skipped.

    After the MD5 verification is successful, this parameter value is used for metadata x-obs-meta-md5chksum of the destination object, for later MD5 verification during download or copy.

    +
+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

u

+

Optional (additional parameter)

+

Indicates incremental copy. If this parameter is set, each object can be copied only when it does not exist in the destination bucket, its size is different from the namesake one in the destination bucket, or it has the latest modification time.

+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart copy tasks when copying an object. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart copy, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the object to be copied is smaller than the threshold, copy the object directly. If not, a multipart copy is required.
  • If you copy an object directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

acl

+

Optional (additional parameter)

+

The access control policies for destination objects that can be specified when copying objects. Possible values are:

+
  • private
  • public-read
  • public-read-write
+
NOTE:

The preceding three values indicate private read and write, public read, and public read and write.

+
+

sc

+

Optional (additional parameter)

+

The storage classes of the destination objects that can be specified when copying objects. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

meta

+

Optional (additional parameter)

+

The metadata of destination objects that can be specified when copying objects. This parameter should be configured in the following format: key1:value1#key2:value2#key3:value3.

+
NOTE:

The format example above indicates that the destination objects contain three groups of custom metadata: key1:value1, key2:value2, and key3:value3.

+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart copy task, in bytes. The value ranges from 100KB to 5GB. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart copy and saved to the copy subfolder. After the copy succeeds, its part record is deleted automatically. If the copy fails or is suspended, the system attempts to resume the task according to its part record when you perform the copy the next time.

+
+

f

+

Optional (additional parameter)

+

Runs in force mode.

+

j

+

Optional (additional parameter)

+

The maximum number of concurrent tasks for copying objects in batches. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional (additional parameter)

+

The matching patterns of source objects that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be copied matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional (additional parameter)

+

The matching patterns of source objects that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be copied does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is copied. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional (additional parameter)

+

The time range matching pattern when copying objects. Only objects whose latest modification time is within the configured time range are copied.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: cp_{succeed | failed | warning}_report_time_TaskId.txt.

    By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.

    +
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

clear

+

Optional (additional parameter)

+

Deletes the failure result files after the copy task is resumed.

+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0038.html b/docs/obs/tool-obsutil/obs_11_0038.html new file mode 100644 index 000000000..d3225acc1 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0038.html @@ -0,0 +1,224 @@ + + +

Resuming a Failed Download Task

+

Function

You can use this command to resume a failed download task based on the task ID.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

recover

+

Mandatory (additional parameter)

+

The ID of the download task to be resumed

+
NOTE:
  • You can obtain the task ID after a download task is complete, or query it based on the file name of the result list. A task ID is the 36 characters, excluding the suffix .txt.
  • You can locate the download task to be resumed in the folder where the result files reside. For details about the path of the result folder, see additional parameter o.
+
+

tempFileDir

+

Optional (additional parameter)

+

The directory for storing temporary files during download. The default value is the value of defaultTempFileDir in the configuration file.

+
NOTE:
  • Temporary files generated during multipart download are stored in this directory. Therefore, ensure that the user who executes obsutil has the write permission on the path.
  • The available space of the partition where the path is located must be greater than the size of the objects to be downloaded.
+
+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

u

+

Optional (additional parameter)

+

Indicates incremental download. If this parameter is set, each object can be downloaded only when it does not exist in the local path, its size is different from the namesake one in the local path, or it has the latest modification time.

+

vlength

+

Optional (additional parameter)

+

Checks whether the sizes of the local files are the same as those of the objects in the bucket after the download is complete.

+

vmd5

+

Optional (additional parameter)

+

Checks whether MD5 values of the local files are the same as those of the objects in the bucket after the download is complete.

+
NOTE:

Objects in the bucket must contain metadata x-obs-meta-md5chksum, or MD5 verification will be skipped.

+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart download tasks when downloading an object. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart download, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the object to be downloaded is smaller than the threshold, download the object directly. If not, a multipart download is required.
  • If you download an object directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart download task, in bytes. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart download and saved to the down subfolder. After the download succeeds, its part record is deleted automatically. If the download fails or is suspended, the system attempts to resume the task according to its part record when you perform the download the next time.

+
+

f

+

Optional (additional parameter)

+

Runs in force mode.

+

j

+

Optional (additional parameter)

+

The maximum number of concurrent tasks for downloading objects in a batch. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional (additional parameter)

+

The matching patterns of source objects that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be downloaded matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional (additional parameter)

+

The matching patterns of source objects that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be downloaded does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is downloaded. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional (additional parameter)

+

The time range matching pattern when downloading objects. Only objects whose latest modification time is within the configured time range are downloaded.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: cp_{succeed | failed | warning}_report_time_TaskId.txt.

    By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.

    +
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

clear

+

Optional (additional parameter)

+

Deletes the failure result files after the download task is resumed.

+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0039.html b/docs/obs/tool-obsutil/obs_11_0039.html new file mode 100644 index 000000000..a86abf2de --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0039.html @@ -0,0 +1,34 @@ + + +

Using obsutil to Replicate Data Across Regions on the Client Side

+

obsutil client supports cross-region replication. You can directly replicate data from a source bucket to the destination bucket through data streams. The source bucket and destination bucket can be any two OBS buckets. Objects can be replicated between buckets in different regions under the same account or across accounts. The following procedure describes how to replicate data between buckets across accounts and regions:

+
  1. Run the obsutil config command to configure the AK, SK, and endpoint of the source bucket account.

    • In Windows
      obsutil config -interactive -crr
      +
    • In Linux
      ./obsutil config -interactive -crr
      +
    +

  2. Run the obsutil config command to configure the AK, SK, and endpoint of the destination bucket account.

    • In Windows
      obsutil config -interactive
      +
    • In Linux
      ./obsutil config -interactive
      +
    +

  3. Check the connectivity to ensure that the destination bucket is correctly configured.

    • In Windows
      obsutil ls -s
      +
    • In Linux or macOS
      ./obsutil ls -s
      +
    +

    Check the command output:

    +
    • If it contains "Bucket number", the configuration is correct.
    • If it contains "Http status [403]", the access keys are wrong.
    • If it contains "A connection attempt failed", OBS cannot be connected. Then, check the network condition.
    • If it contains "Error: cloud_url [url] is not in well format", the domain name to be accessed is incorrect. Check the domain name in the configuration file.
    +

    If the command output contains "Http status [403]", you may not have the required permissions for obtaining the bucket list. A further analysis is required to identify the root cause.

    +
    +

  4. Run the cp command to specify that cross-region replication method is used to copy objects from the source bucket to the destination bucket.

    • In Windows
      obsutil cp obs://src-bucket obs://dst-bucket -f -r -crr
      +
    +
    • In Linux
      ./obsutil cp obs://src-bucket obs://dst-bucket -f -r -crr
      +
    +

+
  • To use the cross-region replication function, you need to specify the -crr parameter. If this parameter is specified, update the configuration of the client-side cross-region replication in the configuration file. For details, see Updating a Configuration File.
  • The configurations of the source bucket and destination bucket are respectively akCrr/skCrr/tokenCrr/endpointCrr and ak/sk/token/endpoint in the configuration file.
  • The preceding procedure is also applicable to the situation when the source and destination buckets belong to the same account.
+
+

When the -crr parameter is used, the source object's standard metadata, including Cache-Control, Expires, Content-Encoding, Content-Disposition, Content-Type, and Content-Language, will not be copied.

+

When the -crr parameter is used for cross-region replication, the ACL of the source object will not be copied. You can use [-acl=xxx] to specify the ACL for the target object. If the ACL is not specified, the object inherits the ACL of the bucket by default.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0040.html b/docs/obs/tool-obsutil/obs_11_0040.html new file mode 100644 index 000000000..744a77142 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0040.html @@ -0,0 +1,116 @@ + + +

Setting Bucket Properties

+

Function

You can use this command to set the properties of a bucket, such as storage classes and access policies.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

sc

+

Optional (additional parameter)

+

The default storage class of the bucket. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

acl

+

Optional (additional parameter)

+

The predefined access control policy of the bucket. Possible values are:

+
  • private
  • public-read
  • public-read-write
+
NOTE:

The preceding three values indicate private read and write, public read, and public read and write.

+
+

aclXml

+

Optional (additional parameter)

+

The bucket's access control policy, in XML format

+
<AccessControlPolicy>
+    <Owner>
+        <ID>ownerid</ID>
+    </Owner>
+    <AccessControlList>
+        <Grant>
+            <Grantee>
+                <ID>userid</ID>
+            </Grantee>
+            <Permission>[WRITE|WRITE_ACP|READ|READ_ACP|FULL_CONTROL]</Permission>
+        </Grant>
+        <Grant>
+            <Grantee>
+                <Canned>Everyone</Canned>
+            </Grantee>
+            <Permission>[WRITE|WRITE_ACP|READ|READ_ACP|FULL_CONTROL]</Permission>
+        </Grant>
+    </AccessControlList>
+</AccessControlPolicy>
+
NOTE:
  • Owner: Optional. Specify the bucket owner's ID.
  • In AccessControlList, the Grant field contains the authorized users. Grantee specifies the IDs of authorized users. Canned specifies the authorized user group (currently, only Everyone is supported).
  • The following permissions can be granted: WRITE (write), WRITE_ACP (write ACL), READ (read), READ_ACP (read ACL), and FULL_CONTROL (full control).
+
+
NOTICE:

Because angle brackets (<) and (>) are unavoidably included in the parameter value, you must use quotation marks to enclose them for escaping when running the command. Use single quotation marks for Linux or macOS and double quotation marks for Windows.

+
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+

Only one from sc, acl, or aclXml can be set for each command.

+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0041.html b/docs/obs/tool-obsutil/obs_11_0041.html new file mode 100644 index 000000000..a2d02244a --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0041.html @@ -0,0 +1,210 @@ + + +

Setting Object Properties

+

Function

You can use this command to set properties of an object or set properties of objects in batches by a specified object name prefix.

+

You can set storage classes only for buckets whose version is 3.0.

+
+
+

Command Line Structure

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The name of the bucket to which an object belongs

+

key

+

Mandatory when setting properties of an object.

+

Optional when setting properties of objects in batches.

+

The name of the object whose properties are to be set, or the name prefix of objects whose properties are to be set in batches

+

If this parameter is left blank during batch operation, properties of all objects in the bucket are set.

+

meta

+

Optional (additional parameter)

+

The standard or user-defined metadata that can be specified for an object when setting properties of the object

+
  • Standard metadata includes Content-Type, Content-Encoding, Cache-Control, Content-Disposition, Content-Language and Expires.
  • User-defined metadata must be in the format of key:value. Multiple user-defined metadata items are separated by number signs (#), for example, key1:value1#key2:value2#key3:value3, which indicates that the object whose properties are set contains three groups of user-defined metadata: key1:value1, key2:value2, and key3:value3.
+

This parameter must be used together with direct.

+

direct

+

Optional (additional parameter)

+

The metadata operation indicator

+

The value can be:

+
  • REPLACE_NEW: The existing metadata value is replaced with a new one, the metadata lacking a value is assigned one, and the metadata not specified keeps unchanged.
  • REPLACE: The metadata is replaced with the header included in the current request and the metadata not specified is deleted.
+

This parameter must be used together with meta.

+

sc

+

Optional (additional parameter)

+

The storage class of an object. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

For an object whose storage class is cold, restore the object first and then specify its storage class. To restore an object, see Restoring Objects from the Cold Storage.

+

acl

+

Optional (additional parameter)

+

The predefined access control policy of an object. Possible values are:

+
  • private
  • public-read
  • public-read-write
  • bucket-owner-full-control
+

aclXml

+

Optional (additional parameter)

+

The bucket's access control policy, in XML format. The format is as follows:

+
<AccessControlPolicy>
+    <Owner>
+        <ID>ownerid</ID>
+    </Owner>
+    <AccessControlList>
+        <Grant>
+            <Grantee>
+                <ID>userid</ID>
+            </Grantee>
+            <Permission>[WRITE|WRITE_ACP|READ|READ_ACP|FULL_CONTROL]</Permission>
+        </Grant>
+        <Grant>
+            <Grantee>
+                <Canned>Everyone</Canned>
+            </Grantee>
+            <Permission>[WRITE|WRITE_ACP|READ|READ_ACP|FULL_CONTROL]</Permission>
+        </Grant>
+    </AccessControlList>
+</AccessControlPolicy>
+
  • Owner: Optional. Specify the object owner's ID.
  • In AccessControlList, the Grant field contains the authorized users. Grantee specifies the IDs of authorized users. Canned specifies the authorized user group (currently, only Everyone is supported).
  • The following permissions can be granted:
    • WRITE: the write permission
    • WRITE_ACP: the write permission for the ACL
    • READ: the read permission
    • READ_ACP: the read permission for the ACL
    • FULL_CONTROL: the full control permission
    +
+

Because angle brackets (<) and (>) are unavoidably included in the parameter value, you must use quotation marks to enclose them for escaping when running the command. Use single quotation marks for Linux or macOS and double quotation marks for Windows.

+

versionId

+

Optional when setting properties of an object (additional parameter)

+

The version ID of the object whose properties are to be set

+

fr

+

Optional when setting properties of an object (additional parameter)

+

Generates an operation result file when setting properties of an object.

+

f

+

Optional when setting properties of objects in batches (additional parameter)

+

Runs in force mode.

+

r

+

Mandatory when setting properties of objects in batches (additional parameter)

+

Sets properties of objects in batches based on a specified object name prefix.

+

v

+

Optional when setting properties of objects in batches (additional parameter)

+

Sets properties of versions of objects in batches based on a specified object name prefix.

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (including success and failure files) will be created in the specified folder.

+

The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
  • A result file should be named as follows: cp_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB. You can set the maximum size by configuring recordMaxLogSize in the configuration file.
  • By default, the maximum number of result files that can be retained is 1,024. You can set the maximum number by configuring recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+

j

+

Optional when setting properties of objects in batches (additional parameter)

+

The maximum number of concurrent tasks for setting object properties in batches. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+

Only one from acl, sc, or aclXml can be set for each command.

+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0042.html b/docs/obs/tool-obsutil/obs_11_0042.html new file mode 100644 index 000000000..cd9a868f1 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0042.html @@ -0,0 +1,294 @@ + + +

Synchronously Uploading Incremental Objects

+

Function

You can use this command to synchronize all content in a local source path to the specified target OBS bucket to ensure data consistency. Incremental synchronization has the following meanings:

+
  1. "Incremental" means that the local source files are compared with their counterparts in the target bucket and only those with content changes are uploaded.
  2. "Synchronization" means that after the command is executed, all source files in the local path have their counterparts in the target OBS bucket.
+
+
  • Do not change the local file or folder during synchronization. Otherwise, the synchronization may fail or data may be inconsistent.
  • Each file can be synchronously uploaded only when it does not exist in the bucket, its size is different from the namesake one in the bucket, or it has the latest modification time.
+
+

Command Line Structure

+
+

Examples

+ + +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

file_url

+

Mandatory for uploading a file synchronously

+

The local file path

+

folder_url

+

Mandatory for uploading a folder synchronously

+

The local folder path

+

bucket

+

Mandatory

+

The bucket name

+

key

+

Optional

+

The object name or object name prefix specified when uploading a file synchronously, or the object name prefix specified when uploading a folder synchronously

+

The rules are as follows:

+
  • If this parameter is left blank when synchronously uploading a file, the file is uploaded to the root directory of the bucket and the object name is the file name. If the value ends with a slash (/), the value is used as the object name prefix when the file is uploaded, and the object name is the value plus the file name. If the value does not end with a slash (/), the file is uploaded with the value as the object name.
  • If this parameter is left blank when synchronously uploading a folder, all objects in the root directory of the bucket are the same as the files in the local folder. If this parameter is configured, objects whose name prefix is the configured value are the same as the files in the local folder.
+
NOTE:
  • If the value of this parameter does not end with a slash (/) when synchronously uploading a folder, the obsutil tool automatically adds a slash (/) at the end of the configured value as the object name prefix.
  • For details about how to use this parameter, see Synchronous Upload.
+
+

fr

+

Optional for synchronously uploading a file (additional parameter)

+

Generates an operation result file when synchronously uploading a file.

+

arcDir

+

Optional (additional parameter)

+

The path to which the synchronously uploaded files are archived

+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

link

+

Optional (additional parameter)

+

The actual path of a symbolic link for a file or folder

+
NOTICE:
  • If this parameter is not specified and the file to be uploaded is a symbolic-link file whose target file does not exist, the exception message "The system cannot find the file specified" will be displayed in Windows OS, while the exception message "No such file or directory" will be displayed in macOS or Linux OS.
  • Avoid the symbolic link loop of a folder, otherwise, the upload will exit due to panic. If you do not want the system to panic, set panicForSymbolicLinkCircle to false in the configuration file.
+
+

vlength

+

Optional (additional parameter)

+

After the synchronous upload is complete, checks whether the sizes of the objects in the bucket are the same as those of the local files.

+

vmd5

+

Optional (additional parameter)

+

After the synchronous upload is complete, checks whether the MD5 values of the objects in the bucket are the same as those of the local files.

+
NOTE:
  • If the size of the file or folder to be uploaded is too large, using this parameter will degrade the overall performance due to MD5 calculation.
  • After the MD5 verification is successful, this parameter value is used for metadata x-obs-meta-md5chksum, for later MD5 verification during download or copy.
+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart upload tasks when uploading a file. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart upload, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the file or folder to be uploaded is smaller than the threshold, upload it directly. Otherwise, a multipart upload is required.
  • If you upload a file or folder directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

acl

+

Optional (additional parameter)

+

The access control policies that can be specified when synchronously uploading files. Possible values are:

+
  • private
  • public-read
  • public-read-write
  • bucket-owner-full-control
+
NOTE:

The preceding four values indicate private read and write, public read, public read and write, and bucket owner full control.

+
+

sc

+

Optional (additional parameter)

+

The storage classes of objects that can be specified when synchronously uploading files. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

meta

+

Optional (additional parameter)

+

The customized metadata that can be specified when uploading files. The format is key1:value1#key2:value2#key3:value3.

+
NOTE:

The preceding value indicates that the object in the bucket contains three groups of customized metadata after the file is uploaded: key1:value1, key2:value2, and key3:value3.

+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart upload task, in bytes. The value ranges from 100KB to 5GB. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source file size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart upload and saved to the upload subfolder. After the upload succeeds, its part record is deleted automatically. If the upload fails or is suspended, the system attempts to resume the task according to its part record when you perform the upload the next time.

+
+

j

+

Optional for synchronously uploading a folder (additional parameter)

+

The maximum number of concurrent tasks for uploading a folder synchronously. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional for synchronously uploading a folder (additional parameter)

+

The file matching patterns that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the file to be uploaded matches the value of this parameter, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute file path (including the file name and file directory).
  • The matching pattern takes effect only for files in the folder.
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional for synchronously uploading a folder (additional parameter)

+

The file matching patterns that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be uploaded does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is uploaded. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute file path (including the file name and file directory).
  • The matching pattern takes effect only for files in the folder.
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

at

+

Optional for synchronously uploading a folder (additional parameter)

+

Indicates that when synchronously uploading a folder, only the files whose latest access time is within the value of timeRange are uploaded.

+
NOTE:
  • This parameter must be used together with timeRange.
+
+

disableDirObject

+

Optional for synchronously uploading folders (additional parameter)

+

Indicates the folders themselves are not uploaded as an object. Configuring this parameter can avoid uploading empty folders to a bucket. If a folder contains files, the files will be uploaded and the original path format is retained.

+

timeRange

+

Optional for synchronously uploading a folder (additional parameter)

+

The time range matching pattern when synchronously uploading files. Only files whose latest modification time is within the configured time range are uploaded.

+

This pattern has a lower priority than the file matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured file matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:

Time in the matching pattern is the UTC time.

+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on folders.

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: sync_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0043.html b/docs/obs/tool-obsutil/obs_11_0043.html new file mode 100644 index 000000000..76b8fb618 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0043.html @@ -0,0 +1,215 @@ + + +

Synchronously Downloading Incremental Objects

+

Function

You can use this command to synchronize all objects in a specified path of the source OBS bucket to a target local path to ensure data consistency. Incremental synchronization has the following meanings:

+ +
  • Do not change the source objects in the OBS bucket when synchronously downloading objects. Otherwise, the synchronization may fail or data may be inconsistent.
  • Each object can be synchronously downloaded only when it does not exist in the local path, its size is different from the namesake one in the local path, or it has the latest modification time.
  • A single file cannot be downloaded synchronously. Only folders can be downloaded synchronously.
+
+
+

Command Line Structure

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

folder_url

+

Mandatory

+

The local folder path

+

bucket

+

Mandatory

+

The bucket name

+

key

+

Optional

+

The name prefix of objects to be synchronously downloaded

+

The rules are as follows:

+
  • If this parameter is left blank, all files in the folder specified by folder_url are the same as all objects in the bucket.
  • If this parameter is configured, all files in the folder specified by folder_url are the same as the objects whose name prefix is the configured value in the bucket.
+
NOTE:
  • If the value of this parameter does not end with a slash (/), the obsutil tool automatically adds a slash (/) at the end of the configured value as the object name prefix.
  • For details about how to use this parameter, see Synchronous Download.
+
+

tempFileDir

+

Optional (additional parameter)

+

The directory for storing temporary files during synchronous download. The default value is the value of defaultTempFileDir in the configuration file.

+
NOTE:
  • Temporary files generated during multipart download are stored in this directory. Therefore, ensure that the user who executes obsutil has the write permission on the path.
  • The available space of the partition where the path is located must be greater than the size of the objects to be downloaded.
+
+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

vlength

+

Optional (additional parameter)

+

Checks whether the sizes of the local files are the same as those of the objects in the bucket after the download is complete.

+

vmd5

+

Optional (additional parameter)

+

Checks whether MD5 values of the local files are the same as those of the objects in the bucket after the download is complete.

+
NOTE:

Objects in the bucket must contain metadata x-obs-meta-md5chksum, or MD5 verification will be skipped.

+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart download tasks when downloading an object. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart download, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the object to be downloaded is smaller than the threshold, download the object directly. If not, a multipart download is required.
  • If you download an object directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart download task, in bytes. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart download and saved to the down subfolder. After the download succeeds, its part record is deleted automatically. If the download fails or is suspended, the system attempts to resume the task according to its part record when you perform the download the next time.

+
+

j

+

Optional for downloading objects in batches (additional parameter)

+

The maximum number of concurrent tasks for downloading objects synchronously. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional for downloading objects in batches (additional parameter)

+

The matching patterns of source objects that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be downloaded matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional for downloading objects in batches (additional parameter)

+

The matching patterns of source objects that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be downloaded does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is downloaded. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional (additional parameter)

+

The time range matching pattern when synchronously downloading objects. Only objects whose latest modification time is within the configured time range are downloaded.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: sync_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0044.html b/docs/obs/tool-obsutil/obs_11_0044.html new file mode 100644 index 000000000..78a53cd77 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0044.html @@ -0,0 +1,261 @@ + + +

Synchronously Copying Incremental Objects

+

Function

You can use this command to synchronize all objects in a specified path of the source bucket to a specified path in the target bucket to ensure data consistency. Incremental synchronization has the following meanings:

+ +
  • Do not change the source objects in the OBS bucket when synchronously copying objects. Otherwise, the synchronization may fail or data may be inconsistent.
  • To copy objects, you must have the read permission on the objects to be copied and the write permission on the destination bucket.
  • If the client-side cross-region replication function is not enabled, ensure that the source bucket and destination bucket are in the same region.
  • Each object can be synchronously copied only when it does not exist in the destination bucket, its size is different from the namesake one in the destination bucket, or it has the latest modification time.
  • If the source bucket is a parallel file system (supporting POSIX), the destination bucket cannot be an object storage bucket.
+
+
+

Command Line Structure

+
+

The source path and destination path cannot be the same or nested when synchronously copying objects.

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

srcbucket

+

Mandatory

+

The source bucket name

+

dstbucket

+

Mandatory

+

The destination bucket name

+

dest

+

Optional

+

+

The name prefix of destination objects

+
NOTE:

If the value of this parameter does not end with a slash (/), the obsutil tool automatically adds a slash (/) at the end of the configured value as the name prefix of destination objects.

+
+

key

+

Optional

+

The name prefix of source objects

+

The rules are as follows:

+
  • If this parameter is left blank, objects whose name prefix is the value of dest in the destination bucket are the same as all objects in the source bucket.
  • If this parameter is configured, objects whose name prefix is the value of dest in the destination bucket are the same as objects whose name prefix is this configured value in the source bucket.
+
NOTE:
  • If the value of this parameter does not end with a slash (/), the obsutil tool automatically adds a slash (/) at the end of the configured value as the name prefix of source objects.
  • For details about how to use this parameter, see Synchronous Copy.
+
+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

crr

+

Optional (additional parameter)

+

Enables the client-side cross-region replication function. In this mode, data is directly copied to the destination bucket from the source bucket through data stream. The buckets can be any two OBS buckets.

+
NOTE:
  • If this parameter is configured, ensure that the configuration of client-side cross-region replication is updated in the configuration file. For details, see Updating a Configuration File.
  • The configurations of the source bucket and destination bucket are respectively akCrr/skCrr/tokenCrr/endpointCrr and ak/sk/token/endpoint in the configuration file.
+
+
NOTICE:

When cross-region replication is enabled, the upload/download bandwidth, CPU, and memory resources of the host where commands are executed will be occupied, which may deteriorate the host performance.

+
+

vlength

+

Optional (additional parameter)

+

Verifies whether the object size in the destination bucket is the same as that in the source bucket after the copy task completes.

+
NOTE:

This parameter must be used together with crr.

+
+

vmd5

+

Optional (additional parameter)

+

Verifies whether the MD5 value of the destination bucket is the same as that of the source bucket after the copy task completes.

+
NOTE:
  • This parameter must be used together with crr.
  • Objects in the source bucket must contain metadata x-obs-meta-md5chksum, or MD5 verification will be skipped.

    After the MD5 verification is successful, this parameter value is used for metadata x-obs-meta-md5chksum of the destination object, for later MD5 verification during download or copy.

    +
+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart copy tasks when copying an object. The default value is the value of defaultParallels in the configuration file.

+
CAUTION:

For an inter-bucket replication task that does not include the crr parameter, the maximum allowable value for this parameter is 10,000.

+
+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart copy, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the object to be copied is smaller than the threshold, copy the object directly. If not, a multipart copy is required.
  • If you copy an object directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

acl

+

Optional (additional parameter)

+

The access control policies for destination objects that can be specified when copying objects. Possible values are:

+
  • private
  • public-read
  • public-read-write
  • bucket-owner-full-control
+
NOTE:

The preceding four values indicate private read and write, public read, public read and write, and bucket owner full control.

+
+

sc

+

Optional (additional parameter)

+

The storage classes of the destination objects that can be specified when copying objects. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

meta

+

Optional (additional parameter)

+

The metadata of destination objects that can be specified when copying objects. This parameter should be configured in the following format: key1:value1#key2:value2#key3:value3.

+
NOTE:

The format example above indicates that the destination objects contain three groups of custom metadata: key1:value1, key2:value2, and key3:value3.

+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart copy task, in bytes. The value ranges from 100KB to 5GB. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart copy and saved to the copy subfolder. After the copy succeeds, its part record is deleted automatically. If the copy fails or is suspended, the system attempts to resume the task according to its part record when you perform the copy the next time.

+
+

j

+

Optional for copying objects in batches (additional parameter)

+

The maximum number of concurrent tasks for copying objects synchronously. The default value is the value of defaultJobs in the configuration file.

+
CAUTION:

For an inter-bucket replication task that does not include the crr parameter, the maximum allowable value for this parameter is 10,000.

+
+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional for copying objects in batches (additional parameter)

+

The matching patterns of source objects that are excluded, for example, *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be copied matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional for copying objects in batches (additional parameter)

+

The matching patterns of source objects that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be copied does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is copied. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional (additional parameter)

+

The time range matching pattern when synchronously copying objects. Only objects whose latest modification time is within the configured time range are copied.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: sync_{succeed | failed | warning}_report_time_TaskId.txt.

    By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.

    +
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0045.html b/docs/obs/tool-obsutil/obs_11_0045.html new file mode 100644 index 000000000..49a0a2df7 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0045.html @@ -0,0 +1,72 @@ + + +

Archiving Log Files

+

Function

You can use this command to archive log files to a local PC or to a specified bucket.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

file_or_folder_url

+

Optional

+

The path to which log files are archived. The rules are as follows:

+
  • If this parameter is left blank, log files are archived to the same directory where obsutil commands reside with obsutil_log.zip as the archive file name.
  • If this parameter specifies a file or folder path that does not exist, the tool checks whether the value ends with a slash (/) or backslash (\). If yes, a folder is created based on the path, and log files are archived to the newly created directory with obsutil_log.zip as the archive file name.
  • If this parameter specifies a file or folder path that does not exist and the value does not end with a slash (/) or backslash (\), log files are archived to a local PC with the value as the archive file name.
  • If this parameter specifies an existing .zip file, then log files are archived to a local PC overwriting the existing file, with the value as the archive file name.
  • If this parameter specifies an existing folder, then log files are archived to the specified directory with obsutil_log.zip as the archive file name.
+
NOTE:

All archive files are .zip files.

+
+

bucket

+

Mandatory for archiving log files to a specified bucket

+

The bucket name

+

key

+

Optional for archiving log files to a specified bucket

+

The object name or object name prefix when archiving log files to a specified bucket

+

The rules are as follows:

+
  • If this parameter is left blank, log files are archived to the root directory of the bucket with obsutil_log.zip as the object name.
  • If the value ends with a slash (/), the value is used as the object name prefix when archiving log files, and the object name is the value plus obsutil_log.zip. Otherwise, log files are archived with the value as the object name.
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing a command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0046.html b/docs/obs/tool-obsutil/obs_11_0046.html new file mode 100644 index 000000000..7984557f5 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0046.html @@ -0,0 +1,40 @@ + + +

Synchronous Upload

+

All commands in this section use the Linux operating system as an example to describe how to perform synchronous upload operations.

+

Assume that a local folder is in the following structure:

+
└── src1
+    ├── src2
+        ├── test1.txt
+        └── test2.txt
+    ├── src3
+    └── test3.txt
+

Assume that bucket bucket-test contains the following objects:

+
obs://bucket-test/src1/
+obs://bucket-test/src1/src2/
+obs://bucket-test/src1/src2/test1.txt
+obs://bucket-test/src1/src3/
+

Based on the structure of the preceding local folder and objects in the bucket, different synchronous upload scenarios require different commands.

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0047.html b/docs/obs/tool-obsutil/obs_11_0047.html new file mode 100644 index 000000000..c542cee75 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0047.html @@ -0,0 +1,31 @@ + + +

Synchronous Download

+

All commands in this section use the Linux operating system as an example to describe how to perform synchronous download operations.

+

Assume that bucket bucket-test contains the following objects:

+
obs://bucket-test/src1/
+obs://bucket-test/src1/test3.txt
+obs://bucket-test/src1/src2/
+obs://bucket-test/src1/src2/test1.txt
+obs://bucket-test/src1/src2/test2.txt
+obs://bucket-test/src1/src3/
+

Assume that a local folder is in the following structure:

+
└── src1
+    └── test3.txt
+

Based on the structure of the preceding local folder and objects in the bucket, different synchronous download scenarios require different commands.

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0048.html b/docs/obs/tool-obsutil/obs_11_0048.html new file mode 100644 index 000000000..8b8cfaf1e --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0048.html @@ -0,0 +1,31 @@ + + +

Synchronous Copy

+

All commands in this section use the Linux operating system as an example to describe how to perform synchronous copy operations.

+

Assume that the source bucket bucket-src contains the following objects:

+
obs://bucket-src/src1/
+obs://bucket-src/src1/test3.txt
+obs://bucket-src/src1/src2/
+obs://bucket-src/src1/src2/test1.txt
+obs://bucket-src/src1/src2/test2.txt
+obs://bucket-src/src1/src3/
+

Assume that the destination bucket bucket-dest contains the following objects:

+
obs://bucket-dest/src1/
+obs://bucket-dest/src1/test3.txt
+

Based on the structure of objects in the bucket, different synchronous copy scenarios require different commands.

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0049.html b/docs/obs/tool-obsutil/obs_11_0049.html new file mode 100644 index 000000000..c88112628 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0049.html @@ -0,0 +1,55 @@ + + +

Setting obsutil Commands as Built-in Commands

+

Scenario

Because obsutil is external software, you need to access the directory where obsutil resides before running obsutil commands, which is not convenient.

+

An OS provides built-in commands so that the command-dependent directories are loaded to the memory when the system is started. In this way, you can run the commands in any directory, which improves the tool's usability.

+

This section introduces how to set obsutil commands as built-in commands in different OSs.

+
+

Setting obsutil Commands as Built-in Commands in Windows

  1. In the CLI, run the echo %PATH% command to query all the paths configured in the current system. Then select one as the operation path.
  2. Run the mklink PATH/obsutil.exe OBSUTIL_PATH command to set obsutil commands as built-in commands in the system.

    PATH indicates the operation path selected in step 1. OBSUTIL_PATH indicates the absolute path of obsutil.exe.

    +
    +

  3. Check whether the configuration is successful: Run the obsutil help command in the CLI. If the help information is displayed, the configuration is successful.
+
+

Setting obsutil Commands as Built-in Commands in Linux or macOS

  1. Run the following command to create a directory for the obsutil tool:

    mkdir /obsutil
    +
    • Skip this step if the directory already exists.
    • You must run the command as user root.
    +
    +

  2. Run the following command to grant the 755 permission for the tool's directory:

    chmod 755 /obsutil
    +
    • Skip this step if the permission for the directory is drwxr-xr-x.
    • You must run the command as user root.
    +
    +

  3. Copy the obsutil tool to the directory created in step 1 and change its permission to 711. Assume that the original path of the tool is /home/test/obsutil. Run the following command:

    cp /home/test/obsutil /obsutil
    +chmod 711 /obsutil/obsutil
    +

  4. Run the vi /etc/profile command, type i to enter the Insert mode to edit the file. Add export PATH=$PATH:/obsutil at the end of the file. Then press ESC to exit the editing mode, and then type :wq! and press Enter to save the file and exit.

    Skip this step if the new line already exists in the /etc/profile file.

    +
    +

  5. Run the echo $PATH command to query the current environment variables. If :/obsutil in included in the query result, indicating that the /obsutil environment variable already exists, go to the next step. Otherwise, run the source /etc/profile command.
  6. Check whether the configuration is successful: Run the obsutil help command in any directory. If the help information is displayed, the configuration is successful.
+
+

FAQs

  1. How do I locate the obsutil configuration file after setting obsutil commands to built-in commands?

    The .obsutilconfig file in the same directory where obsutil commands reside is the configuration file of the obsutil tool. You can also run the obsutil config command to obtain the configuration file path. An example is provided as follows:

    +
    obsutil config
    +Config file url:
    +  D:\tools\.obsutilconfig
    +
  2. How do I delete obsutil commands after setting them as built-in commands?
    • In Windows:
      1. Run the where obsutil command to locate the path of obsutil commands.
        where obsutil
        +E:\tools\bin\obsutil.exe
        +
      2. Run the del PATH command to delete obsutil commands.
        del E:\tools\bin\obsutil.exe
        +

        Replace PATH with the path of obsutil commands. E:\tools\bin\obsutil.exe is used in the preceding example.

        +
        +
      +
    • In Linux or macOS:
      1. Run the which obsutil command to locate the path of obsutil commands.
        which obsutil
        +/obsutil/obsutil
        +
      2. Run the rm -rf PATH command to delete obsutil commands.
        rm -rf /obsutil/obsutil
        +

        Replace PATH with the path of obsutil commands. /obsutil/obsutil is used in the preceding example.

        +
        +
      3. Restore the system environment variable: Delete the path of obsutil that is set in the /etc/profile file.

        If the /etc/profile file contains line export PATH=$PATH:/obsutil, delete the line. Or if the file contains line export PATH=$PATH:/test/bin:/obsutil:/test1, delete :/obsutil from the line.

        +
        +
      +
    +
  3. What should I do if the execution of built-in obsutil commands fails in Linux or macOS?
    • If the message Permission denied is displayed after executing obsutil help, run the chmod 755 OBSUTIL_PATH command (replace OBSUTIL_PATH with the path of obsutil) to add an execute permission for the obsutil tool.
    • If the message command not found is displayed, log in again.
    • If the message Cannot create parent folder for xx/.obsutilconfig, xx Permission denied is displayed, check whether the home directory of the user exists.

      In the Ubuntu OS, if you run the useradd command to add a user, the home directory of the user is not created by default. You need to create it manually. Therefore, you are advised to run the adduser command to add a user.

      +
      +
    +
  4. What can I do if no log file is generated after running built-in obsutil commands in Linux or macOS?

    If you have properly configured sdkLogPath and utilLogPath in the configuration file, but still no log file is generated after command execution, then check whether the user who runs the command has the read and write permissions on sdkLogPath and utilLogPath.

    +
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0050.html b/docs/obs/tool-obsutil/obs_11_0050.html new file mode 100644 index 000000000..1f6df61b6 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0050.html @@ -0,0 +1,86 @@ + + +

Creating a Folder

+

Function

You can use this command to create a folder in a specified bucket or local file system.

+
+

No error is returned if a folder with the same name as an existing one is created, and the content of the existing folder remains unchanged.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory when creating a folder in a specified bucket

+

The bucket name

+

folder

+

Mandatory when creating a folder in a specified bucket

+

The folder path in the bucket. This value can contain multi-level folders. Separate each level with a slash (/).

+

folder_url

+

Mandatory when creating a folder in the local file system

+

The folder path in the local file system. The value can be an absolute path or a relative path.

+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0051.html b/docs/obs/tool-obsutil/obs_11_0051.html new file mode 100644 index 000000000..4eb30365e --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0051.html @@ -0,0 +1,131 @@ + + +

Generating the Download Link of an Object

+

Function

You can use this command to generate the download link of a specified object in a bucket or generate the download links of objects in a bucket in batches by object name prefix.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

key

+

Optional

+

The object name used for generating the download link of a single object, or object name prefix used for generating download links of objects in batches

+

e

+

Optional (additional parameter)

+

The validity period of the generated download links of objects, in seconds. Minimum value: 60s. Default value: 300s

+

r

+

Mandatory when generating download links of objects in batches (additional parameter)

+

Generates the download links of objects in batches by a specified object name prefix.

+

exclude

+

Optional when generating download links of objects in batches (additional parameter)

+

The matching patterns of objects that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be downloaded matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional when generating download links of objects in batches (additional parameter)

+

The matching patterns of objects that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be downloaded does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is downloaded. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional (additional parameter)

+

The time range matching pattern when generating download links of objects. Only the download links of objects whose latest modification time is within the configured time range are generated.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+

o

+

Optional when generating download links of objects in batches (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success and failure files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: sign_{succeed | failed}_report_time_TaskId.txt.

    By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.

    +
+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0052.html b/docs/obs/tool-obsutil/obs_11_0052.html new file mode 100644 index 000000000..03d6a397b --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0052.html @@ -0,0 +1,51 @@ + + +

Fine-Tuning obsutil Performance

+

By default, obsutil uploads, downloads, and copies files or objects whose size is greater than 50 MB in multiple parts. Table 1 details related parameters in the .obsutilconfig file.

+ +
+ + + + + + + + + + + + + +
Table 1 Multipart-related parameters

Parameter

+

Description

+

defaultBigfileThreshold

+

Indicates the threshold for triggering multipart tasks, in bytes. If the size of a file to be uploaded, downloaded, or copied is greater than the threshold, the file is uploaded, downloaded, or copied in multiple parts. The default value is 50MB.

+

defaultPartSize

+

Size of each part, in bytes. The default value is auto.

+
NOTE:
  • For a multipart upload and copy, the value ranges from 100KB to 5GB.
  • For multipart download, the value is unrestricted.
+
+

defaultParallels

+

Maximum number of concurrent tasks in the multipart mode. The default value is 5.

+
+
+

Generally, multipart tasks not only speed up transmission but also allow you to resume failed tasks. By default, the part size of a multipart task can be automatically adjusted by the obsutil in the auto mode. In practice, however, to further improve the upload and download performance, you can adjust the part size according to the file size and the network conditions, to obtain the maximum transmission efficiency and ensure the successful completion of a transmission task.

+

Adjust the number of concurrent tasks in the multipart mode according to the following formula:

+

defaultParallels = Min(Number of CPUs x 2, Object size/defaultPartSize x 1.5)

+

+

In the upload, download, and copy commands, parameters -p and -ps are used to modify the number of concurrent tasks in the multipart mode and part size respectively, and then deliver the multipart task based on the parameter values configured in the command. The default values in the configuration file are used if you do not set them in a command.

+

Adjust the number of concurrent tasks in the multipart mode according to the following formula:

+

p = Min(Number of CPUs x 2, Object size/ps x 1.5)

+

+

For batch upload and download tasks, adjust the maximum number of concurrent tasks in a multipart upload, indicated by the parameter defaultJobs (-j), for better performance.

+

If you have a large number of small files (each is usually several MB) to be uploaded or downloaded, set defaultJobs (-j) to a larger value for better performance. In this case, adjusting defaultParallels (-p) and defaultPartSize (-ps) may be ineffective.

+

If you want to upload or download large files, set defaultParallels (-p) and defaultPartSize (-ps) to a larger value for better performance. However, if there are too many concurrent tasks (calculated from defaultJobs x defaultParallels), the upload and download performance may deteriorate because of resource switchover and preemption between threads, and some tasks may fail due to network fluctuations.

+
  • Resources of a running host are limited. Therefore, if the number of concurrent tasks in the multipart mode is set too large, the performance of obsutil upload, download, or copy may deteriorate due to resource switchover and preemption between threads. In this case, you need to adjust the values of defaultParallels (-p) and defaultPartSize (-ps) based on the actual file size and network status. To perform a pressure test, lower the two values at first, and then gradually increase them to determine the optimal values.
  • If the values of defaultParallels (-p) and defaultPartSize (-ps) are too large, an EOF error may occur due to network instability. In this case, set the two parameters to smaller values.
  • If a batch operation is performed, the destination object size can be set to the average size of the objects to be operated.
  • If a batch task fails due to timeout, EOF, and other common network issues, retry the task through an incremental operation (specifically, configuring parameter -u in the cp command). You can also restore the failed task (by configuring parameter -recover in the cp command) based on the generated task ID.
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0053.html b/docs/obs/tool-obsutil/obs_11_0053.html new file mode 100644 index 000000000..78d2709f2 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0053.html @@ -0,0 +1,297 @@ + + +

Moving an Object

+

Function

You can use this command to move a single object or move objects in batches by a specified object name prefix.

+
  • Do not change the source objects in the OBS bucket when moving objects. Otherwise, the operation may fail or data may be inconsistent.
  • The source objects are deleted after the move operation succeeds.
  • If an object move (mv) task is manually canceled or interrupted unexpectedly, obsutil cannot automatically resume or continue the task. In such cases, the move task may fail to be completely executed (for example, the source object is copied but not deleted), which may cause the source and target objects to coexist.
  • If the source bucket is a parallel file system (supporting POSIX), the destination bucket cannot be an object storage bucket.
+
+
+

Command Line Structure

+
  • The source path and destination path cannot be the same.
  • The source and destination paths cannot be nested when moving objects in batches.
  • Batch object move is not available for parallel file systems.
+
+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

srcbucket

+

Mandatory

+

The source bucket name

+

dstbucket

+

Mandatory

+

The destination bucket name

+

dest

+

Optional

+

The destination object name when moving a single object, or the name prefix of destination objects when moving objects in batches

+

key

+

Mandatory for moving a single object

+

Optional for moving objects in batches

+

The source object name when moving a single object, or the name prefix of source objects when moving objects in batches

+

The rules are as follows:

+
  • This parameter cannot be left blank when moving a single object. If dest is left blank, the source object is moved to the root directory of the destination bucket. If the value of dest ends with a slash (/), the destination object name is the value of dest plus the source object name. Otherwise, the destination object name is the value of dest.
  • If this parameter is left blank when moving objects in batches, all objects in the source bucket are moved. If not, objects whose name prefix is the set value in the source bucket are moved. The rules for confirming the name of the destination object are as follows:
    • If the value of dest ends with a slash (/), the destination object name is the value of dest plus the source object name.
    • If the value of dest does not end with a slash (/), the destination object name is the value of dest/source object name.
    +
+
NOTE:
  • If this parameter is configured but parameter flat is not when moving objects in batches, the name of the source object contains the name prefix of the parent object. If flat is configured, then the name of the source object does not contain the name prefix of the parent object.
  • For details about how to use this parameter, see Command Line Structure.
+
+

fr

+

Optional for moving an object (additional parameter)

+

Generates an operation result file when moving an object.

+

flat

+

Optional for moving objects in batches (additional parameter)

+

The name prefix of the parent object is excluded when moving objects in batches.

+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

u

+

Optional (additional parameter)

+

Indicates incremental move. If this parameter is set, each object can be moved only when it does not exist in the destination bucket, its size is different from the namesake one in the destination bucket, or it has the latest modification time.

+
NOTE:

If the size and modification time of the destination object are the same as those of the source object, the source object is directly deleted instead of being moved.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart move tasks when moving an object. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart move, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the object to be moved is smaller than the threshold, move the object directly. If not, a multipart move is required.
  • If you move an object directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

versionId

+

Optional for moving an object (additional parameter)

+

The source object version ID that can be specified when moving a single object

+
NOTE:

Parameter versionId cannot be configured for buckets that support POSIX.

+
+

acl

+

Optional (additional parameter)

+

The access control policies for destination objects that can be specified when moving objects. Possible values are:

+
  • private
  • public-read
  • public-read-write
  • bucket-owner-full-control
+
NOTE:

The preceding four values indicate private read and write, public read, public read and write, and bucket owner full control.

+
+

sc

+

Optional (additional parameter)

+

The storage classes of the destination objects that can be specified when moving objects. Possible values are:

+
  • standard: Standard storage class. It features low access latency and high throughput, and is applicable to storing frequently accessed data (multiple accesses per month) or data that is smaller than 1 MB.
  • warm: Warm storage class. It is ideal for storing infrequently accessed (less than 12 times a year) data, but when needed, the access has to be fast.
  • cold: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.
+

meta

+

Optional (additional parameter)

+

The metadata of destination objects that can be specified when moving objects. The format is key1:value1#key2:value2#key3:value3.

+
NOTE:

The preceding value indicates that the destination objects in the bucket contain three groups of customized metadata after objects are moved: key1:value1, key2:value2, and key3:value3.

+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart move task, in bytes. The value ranges from 100KB to 5GB. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart move and saved to the copy subfolder. After the move succeeds, its part record is deleted automatically. If the move fails or is suspended, the system attempts to resume the task according to its part record when you perform the move the next time.

+
+

r

+

Mandatory for moving objects in batches (additional parameter)

+

Moves objects in batches based on a specified name prefix of objects in the source bucket.

+

f

+

Optional for moving objects in batches (additional parameter)

+

Runs in force mode.

+

j

+

Optional for moving objects in batches (additional parameter)

+

The maximum number of concurrent tasks for moving objects in batches. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional for moving objects in batches (additional parameter)

+

The matching patterns of source objects that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be moved matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional for moving objects in batches (additional parameter)

+

The matching patterns of source objects that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be moved does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is moved. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional for moving objects in batches (additional parameter)

+

The time range matching pattern when moving objects. Only objects whose latest modification time is within the configured time range are moved.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: mv_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

bucket-cname

+

Optional (additional parameter)

+

The user-defined domain name bound to the bucket

+
NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0054.html b/docs/obs/tool-obsutil/obs_11_0054.html new file mode 100644 index 000000000..547c299b2 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0054.html @@ -0,0 +1,17 @@ + + +

Fault Locating

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0055.html b/docs/obs/tool-obsutil/obs_11_0055.html new file mode 100644 index 000000000..9788467b3 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0055.html @@ -0,0 +1,36 @@ + + +

Overview

+

obsutil provides multiple methods for users to locate and analyze faults. Table 1 details the methods. Generally, you need to combine these methods for a precise fault locating.

+ +
+ + + + + + + + + + + + + +
Table 1 Fault locating methods

Method

+

Description

+

Log Files

+

obsutil log files include tool logs and SDK logs. The tool logs record the success information and exceptions generated during obsutil running. The SDK logs record the success information and exceptions generated during requesting for OBS.

+

Result Lists

+

Result lists are generated after batch tasks complete and may include success, failure, and warning files.

+

Return Codes

+

obsutil yields different return codes based on different execution results. You can analyze and troubleshoot faults according to these return codes.

+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0056.html b/docs/obs/tool-obsutil/obs_11_0056.html new file mode 100644 index 000000000..3db39c54b --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0056.html @@ -0,0 +1,21 @@ + + +

Log Files

+

Configuring Log Files

obsutil log files include tool logs and SDK logs. You can add the following parameters to the .obsutilconfig file to enable the two logging functions.

+ +
  • For details about the parameter description, see Configuration Parameters.
  • utilLogPath and sdkLogPath indicate the absolute paths of the log files, not the folders that store the log files.
  • If utilLogPath and sdkLogPath are not specified, tool logging and SDK logging are not enabled, and therefore no log file is generated during obsutil running.
  • Log files that are rolled over are named as follows: filename.log.number
+
+
+

If multiple obsutil processes are running at the same time, log files may fail to be written concurrently or may be lost. In this case, add parameter -config when running commands to configure an independent configuration file for each process. Make sure that utilLogPath and sdkLogPath are set to different paths for each process.

+
+

Collecting Log Files

You can collect logs in either of the following methods:

+

Method 1: Use auxiliary commands by referring to Archiving Log Files.

+

Method 2: Locate the paths specified by utilLogPath and sdkLogPath in the configuration file, and then search for the log files in the corresponding paths in the local file system.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0057.html b/docs/obs/tool-obsutil/obs_11_0057.html new file mode 100644 index 000000000..3cdc581de --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0057.html @@ -0,0 +1,16 @@ + + +

Result Lists

+

Configuring Result Lists

Result files are generated when batch tasks complete. By default, they are saved to the subfolder .obsutil_output in the home directory of the user who executes obsutil commands. You can specify another folder to save them by setting the additional parameter -o when executing a command.

+
+

Viewing Result Lists

Result files are classified into success, failure, and warning files. The naming rule is as follows: Operation _{succeed | failed | warning}_report_ Time _TaskId.txt. For example, the name of the result file for successfully uploading a folder is cp_succeed_report_20190417021908_fbbc83e3-98ac-4d19-b23a-64023b1e0c34.txt, among which, fbbc83e3-98ac-4d19-b23a-64023b1e0c34 indicates the task ID.

+
  • If the number of successes, failures, or warnings is zero, the corresponding result file is not generated.
  • The task ID of a result list is unique for each operation.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
  • The maximum size of a single result file is 30 MB.
  • obsutil can retain a maximum of 1,024 result files and does not automatically clear these files. Once the limit is reached, the task stops running. To prevent the batch operation efficiency from being reduced by too many result files, you need to periodically archive and back up the result files in .obsutil_output to another folder.
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0058.html b/docs/obs/tool-obsutil/obs_11_0058.html new file mode 100644 index 000000000..b2062e7ce --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0058.html @@ -0,0 +1,105 @@ + + +

Return Codes

+

If obsutil is invoked by processes, the command output cannot be viewed in real time. obsutil generates different return codes based on different execution results. Table 1 describes the return codes. You can use either the following methods to obtain the return code of the latest execution result and then analyze and rectify the fault based on it:

+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Return codes

Return Code

+

Meaning

+

Example Scenario

+

0

+

Execution succeeded.

+

An object is successfully uploaded.

+

1

+

The file does not exist.

+

The entered file path does not exist for uploading a file by running the cp command.

+

2

+

The task does not exist.

+

The specified task ID does not exist for resuming a failed upload task by running the cp command.

+

3

+

Parameter error

+
  • At least one entered additional parameters is not supported for uploading a file by running the cp command.
  • The entered value of cloud_url is invalid for downloading a file by running the cp command.
    NOTE:

    cloud_url indicates the bucket path or object path. Set cloud_url in the format of obs://bucketname when downloading all objects in a bucket. Set cloud_url in the format of obs://bucketname/key when downloading a specified object in a bucket.

    +
    +
+

4

+

Bucket status error

+

The specified destination bucket does not exist for uploading a folder by running the cp command.

+

5

+

Initialization error during command execution

+
  • An error occurs when loading the configuration file.
  • Parameter -o is configured when running the cp command to upload a folder, but the folder specified by -o for saving the result files fails to be created.
+

6

+

Execution error.

+

When you run the ls command to query the bucket list, the query fails because the network times out.

+

7

+

The operation is not supported.

+

Running the chattri command to change object properties.

+

8

+

A batch task succeeded partially.

+

Some objects fail to be downloaded during a batch download by running the cp command.

+

9

+

Interruption error

+

Users press Ctrl + C to interrupt the command execution.

+

-1

+

Unknown error

+

-

+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0059.html b/docs/obs/tool-obsutil/obs_11_0059.html new file mode 100644 index 000000000..ca291c964 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0059.html @@ -0,0 +1,31 @@ + + +

Using obsutil for Resumable Data Transfer

+

obsutil supports resumable data transfer (upload, download, and copy) for large files by using the multipart algorithms for upload, download, and copy. You can set the threshold size for starting a multipart upload, download, or copy task based on your actual requirements to resume the upload, download, or copy task if the task fails or is interrupted. You can specify the threshold size for starting a multipart task in either of the following ways:

+

Method 1

Set defaultBigfileThreshold in the configuration file. For details, see Configuration Parameters.

+
+

Method 2

Set threshold, a command-level parameter, when you run commands for object uploads, object downloads, object copy, synchronous uploads of incremental objects, synchronous downloads of incremental objects, and synchronous copy of incremental objects.

+

Example: obsutil cp d:\temp\test.txt obs://bucket-test/key -threshold=52428800

+

In this command:

+ +
The following example is based on a Windows OS:
obsutil cp d:\temp\test.txt obs://bucket-test/key -threshold=52428800
+
+Parallel:      3                   Jobs:          3
+Threshold:     50.00MB             PartSize:      auto
+VerifyLength:  false               VerifyMd5:     false
+CheckpointDir: xxxx
+
+[====================================================] 100.00% 1.68 MB/s 5s
+Upload successfully, 8.46MB, d:\temp\test.txt --> obs://bucket-test/key
+
+
+

+
  • Priority: Command level parameter threshold has higher priority than the defaultBigfileThreshold in the configuration file.
  • The threshold size of a multipart task applies to single files or objects. When the size of a file or object is greater than the threshold value, the multipart algorithm is applied to the file or object.
  • The multipart algorithm and resumable data transfer are forcibly bound together. That is, once the multipart algorithm is used, the resumable data transfer is enabled for the task.
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0060.html b/docs/obs/tool-obsutil/obs_11_0060.html new file mode 100644 index 000000000..b8b688597 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0060.html @@ -0,0 +1,13 @@ + + +

Using obsutil to Upload a Symbolic Link

+

obsutil supports the upload of the real path to which the symbolic link points when a file or folder is uploaded. You can specify the command-level parameter link to implement this function when running commands for upload or incremental synchronization upload.

+
  • obsutil can identify symbolic links pointing to folders. If a symbolic link points to a folder, obsutil recursively scans the contents in the folder.
  • Avoid the symbolic link loop of a folder, otherwise, the upload will exit due to panic. If you do not want the system to panic, set panicForSymbolicLinkCircle to false in the configuration file.
  • The symbolic link and the shortcut on the Windows OS are two different types. obsutil cannot identify the shortcut on the Windows OS.
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0061.html b/docs/obs/tool-obsutil/obs_11_0061.html new file mode 100644 index 000000000..da3f0d286 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0061.html @@ -0,0 +1,17 @@ + + +

Creating Access Keys (AK and SK)

+

When you call APIs, you need to use the AK and SK for authentication. To obtain the AK and SK, perform the following steps:

+
  1. Click the login username in the upper right corner and choose My Credentials from the drop-down list.
  2. Choose Access Keys.
  3. Click Create Access Key.
  4. Enter an access key description (optional) and click OK.
  5. Enter the verification code sent to your mobile phone, virtual MFA device, or email, and click OK.

    This step is required only when you have enabled operation protection.

    +
    +

  6. Click Download to obtain the access key file.

    Keep AKs and SKs properly to prevent information leakage.

    +
    +

+

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0062.html b/docs/obs/tool-obsutil/obs_11_0062.html new file mode 100644 index 000000000..b9b620777 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0062.html @@ -0,0 +1,122 @@ + + +

Creating an Authorization Code for Directory Sharing

+

Function

You can use this command to specify the bucket name, object name prefix, and access code to create an authorization code for directory sharing.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

bucket

+

Mandatory

+

The bucket name

+

prefix

+

Optional

+

The prefix of an object name. If this parameter is specified, objects starting with this prefix are shared. If this parameter is left blank, all objects in the bucket are shared.

+
NOTE:

It is recommended that the value end with a slash (/).

+
+

ac

+

Optional (additional parameter)

+

The access code

+
NOTE:
  • If no access code is passed using this parameter, obsutil tool prompts you to enter the access code in interactive mode.
  • An access code is a six-digit string.
+
+

vp

+

Optional (additional parameter)

+

The validity period of an authorization code. The default value is one day, indicating that the generated authorization code is valid for only one day.

+
NOTE:
  • This parameter supports different time units, including: m (month), w (week), d (day), h (hour), min (minute), and s (second). For example, 1d indicates that the authorization code is valid within one day, 2w indicates that the code is valid within two weeks, and 3h indicates that the code is valid within three hours.
  • The default time unit is s (second), for example, 3600 indicates that the authorization code is valid within 3600 seconds.
+
+

dst

+

Optional (additional parameter)

+

The path for storing the generated authorization code

+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+

payer

+

Optional (additional parameter)

+

Specifies that requester pays is enabled.

+
+
+
+

Response

+
+ + + + + + + + + + + + + +

Field

+

Description

+

Authorization Code

+

The code for authorization

+

Access Code

+

The access code

+

Valid Until

+

The expiration time

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0063.html b/docs/obs/tool-obsutil/obs_11_0063.html new file mode 100644 index 000000000..bf767fe99 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0063.html @@ -0,0 +1,143 @@ + + +

Listing Objects by Using an Authorization Code

+

Function

You can use this command to query objects in a bucket with an authorization code. The returned objects are sorted in lexicographical order.

+
+

Command Line Structure

+
+

Examples

+
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

authorization_code

+

or

+

file://authorization_code_file_url

+

Mandatory

+

The code for authorization

+
NOTE:

If the authorization code starts with file://, the authorization code is obtained from a local file.

+
+

ac

+

Optional (additional parameter)

+

The access code

+
NOTE:
  • If no access code is specified using this parameter, obsutil tool prompts you to enter the access code in interactive mode.
  • An access code is a six-digit string.
+
+

prefix

+

Optional (additional parameter)

+

The object name prefix specified for listing objects using an authorization code

+
NOTE:
  • If this parameter is specified, objects starting with this prefix are listed.
  • If this parameter is left blank, all objects in the authorized path are shared.
+
+

s

+

Optional (additional parameter)

+

Displays simplified query result.

+
NOTE:

In the simplified format, the returned result contains only the object name.

+
+

d

+

Optional (additional parameter)

+

Lists only objects and subdirectories in the current directory, instead of recursively listing all objects and subdirectories.

+
NOTE:

According to the naming conventions in OBS, a slash (/) is used as the directory separator.

+
+

marker

+

Optional (additional parameter)

+

The start position for listing objects in a bucket using an authorization code. The objects following this start position are sorted in lexicographical order by object name.

+

bf

+

Optional (additional parameter)

+

The display formats of bytes in the listing result. Possible values are:

+
  • human-readable
  • raw
+
NOTE:

If this parameter is not configured, the display format of bytes in the result is determined by the humanReadableFormat parameter in the configuration file.

+
+

limit

+

Optional (additional parameter)

+

The maximum number of objects that can be listed. If the value is less than or equal to 0, all objects are listed. If it is left blank, 1000 objects are listed by default.

+
NOTE:

If there are a large number of objects in a bucket, you are advised to set this parameter to limit the number of objects to be listed each time. If not all objects are listed, marker of the next request will be returned in the result, which you can use to list the remaining objects.

+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0064.html b/docs/obs/tool-obsutil/obs_11_0064.html new file mode 100644 index 000000000..b3a33fccd --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0064.html @@ -0,0 +1,300 @@ + + +

Downloading Objects by Using an Authorization Code

+

Function

You can use this command to download an object or download objects in a batch by object name prefix to your local PC.

+

Do not change the source objects in the OBS bucket when downloading a single object or objects in batches. Otherwise, the download may fail or data may be inconsistent.

+
+
+

Command Line Structure

+
+

Examples

+ +
+

Parameter Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

+

Optional or Mandatory

+

Description

+

authorization_code

+

or

+

file://authorization_code_file_url

+

Mandatory

+

The code for authorization

+
NOTE:

If the authorization code starts with file://, the authorization code is obtained from a local file.

+
+

file_or_folder_url

+

Mandatory for downloading an object

+

The local file/folder path

+

folder_url

+

Mandatory for downloading objects in a batch

+

The local folder path

+

key

+

Mandatory for downloading an object (additional parameter)

+

Optional for downloading objects in a batch

+

The name of the object to be downloaded, or the name prefix of the objects to be downloaded in batches

+

This parameter cannot be left blank when downloading an object. The saving and naming rules are as follows:

+
  • If this parameter specifies a file or folder path that does not exist, the tool checks whether the value ends with a slash (/) or backslash (\). If yes, a folder is created based on the path, and the object is downloaded to this newly created directory.
  • If this parameter specifies a file or folder path that does not exist and the value does not end with a slash (/) or backslash (\), the object is downloaded to your local PC with the value of the parameter as the file name.
  • If this parameter specifies an existing file, the object is downloaded to your local PC overwriting the existing file, with the value of the parameter as the file name.
  • If this parameter specifies an existing folder, the object is downloaded to the directory specified by file_or_folder_url with the object name as the file name.
+

During batch download, the saving rules are as follows:

+
  • If this parameter is left blank, all objects in the authorized path specified in the authorization code are downloaded to the folder specified by folder_url.
  • If this parameter is configured, objects whose name prefix is the configured value in the bucket are downloaded to the directory specified by folder_url.
+
NOTE:
  • If this parameter is specified, objects starting with this prefix are listed.
  • If this parameter is configured but the flat parameter is not configured when downloading objects in a batch, the name of the downloaded file contains the name prefix of the parent object. If flat is configured, then the name of the downloaded file does not contain the name prefix of the parent object.
+
+
NOTICE:

During batch download, if the flat option is selected and the object name prefix is empty or does not end with a slash (/) during authorization code creation, the downloaded object list may be empty.

+
+

ac

+

Optional (additional parameter)

+

The access code

+
NOTE:
  • If no access code is specified using this parameter, obsutil tool prompts you to enter the access code in interactive mode.
  • An access code is a six-digit string.
+
+

r

+

Mandatory for downloading objects in batches (additional parameter)

+

Copies objects in batches based on a specified object name prefix.

+

fr

+

Optional for downloading an object (additional parameter)

+

Generates an operation result file when downloading an object.

+

flat

+

Optional for downloading objects in batches (additional parameter)

+

The name prefix of the parent object is excluded when downloading objects in a batch.

+

tempFileDir

+

Optional (additional parameter)

+

The directory for storing temporary files during multipart download. The default value is the value of defaultTempFileDir in the configuration file.

+
NOTE:
  • If this parameter is left blank and the defaultTempFileDir parameter in the configuration file is also left blank, temporary files generated during multipart download are saved in the directory where to-be-downloaded files are located and end with the suffix of .obs.temp.
  • Temporary files generated during multipart download are stored in this directory. Therefore, ensure that the user who executes obsutil has the write permission on the path.
  • The available space of the partition where the path is located must be greater than the size of the objects to be downloaded.
+
+

dryRun

+

Optional (additional parameter)

+

Conducts a dry run.

+

u

+

Optional (additional parameter)

+

Indicates incremental download. If this parameter is set, each object can be downloaded only when it does not exist in the local path, its size is different from the namesake one in the local path, or it has the latest modification time.

+

vlength

+

Optional (additional parameter)

+

Checks whether the sizes of the local files are the same as those of the objects in the bucket after the download is complete.

+

vmd5

+

Optional (additional parameter)

+

Checks whether MD5 values of the local files are the same as those of the objects in the bucket after the download is complete.

+
NOTE:

Objects in the bucket must contain metadata x-obs-meta-md5chksum, or MD5 verification will be skipped.

+
+
CAUTION:

If your object needs encryption, do not use this parameter.

+
+

p

+

Optional (additional parameter)

+

The maximum number of concurrent multipart download tasks when downloading an object. The default value is the value of defaultParallels in the configuration file.

+

threshold

+

Optional (additional parameter)

+

The threshold for enabling multipart download, in bytes. The default value is the value of defaultBigfileThreshold in the configuration file.

+
NOTE:
  • If the size of the object to be downloaded is smaller than the threshold, download the object directly. If not, a multipart download is required.
  • If you download an object directly, no part record is generated, and resumable transmission is not supported.
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
+
+

ps

+

Optional (additional parameter)

+

The size of each part in a multipart download task, in bytes. The default value is the value of defaultPartSize in the configuration file.

+
NOTE:
  • This parameter value can contain a unit, for example, 1MB (indicating 1,048,576 bytes).
  • The parameter can be set to auto. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.
+
+

cpd

+

Optional (additional parameter)

+

The folder where the part records reside. The default value is .obsutil_checkpoint, the subfolder in the home directory of the user who executes obsutil commands.

+
NOTE:

A part record is generated during a multipart download and saved to the down subfolder. After the download succeeds, its part record is deleted automatically. If the download fails or is suspended, the system attempts to resume the task according to its part record when you perform the download the next time.

+
+

f

+

Optional for downloading objects in a batch (additional parameter)

+

Runs in force mode.

+

j

+

Optional for downloading objects in a batch (additional parameter)

+

The maximum number of concurrent tasks for downloading objects in a batch. The default value is the value of defaultJobs in the configuration file.

+
NOTE:

The value is ensured to be greater than or equal to 1.

+
+

exclude

+

Optional for downloading objects in a batch (additional parameter)

+

The matching patterns of source objects that are excluded, for example: *.txt

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, abc*.txt indicates any file whose name starts with abc and ends with .txt.
  • You can use \* to represent * and \? to represent ?.
  • If the name of the object to be downloaded matches the value of this parameter, the object is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple exclude parameters can be specified, for example, -exclude=*.xxx -exclude=*.xxx.
+
+

include

+

Optional for downloading objects in a batch (additional parameter)

+

The matching patterns of source objects that are included, for example: *.jpg

+
NOTE:
  • The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
  • You can use \* to represent * and \? to represent ?.
  • Only after identifying that the name of the file to be downloaded does not match the value of exclude, the system checks whether the file name matches the value of this parameter. If yes, the file is downloaded. If not, the file is skipped.
+
+
NOTICE:
  • You are advised to use quotation marks for the matching pattern to prevent special characters from being escaped by the OS and leading to unexpected results. Use single quotation marks for Linux or macOS and double quotation marks for Windows.
  • The matching pattern applies to the absolute path of an object, including the object name prefix and object name starting from the root directory. For example, if the path of an object in the bucket is obs://bucket/src1/src2/test.txt, then the absolute path of the object is src1/src2/test.txt.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
  • Multiple include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
+
+

timeRange

+

Optional for downloading objects in a batch (additional parameter)

+

The time range matching pattern when downloading objects. Only objects whose latest modification time is within the configured time range are downloaded.

+

This pattern has a lower priority than the object matching patterns (exclude/include). That is, the time range matching pattern is executed after the configured object matching patterns.

+
NOTE:
  • The matching time range is represented in time1-time2, where time1 must be earlier than or the same as time2. The time format is yyyyMMddHHmmss.
  • Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.
  • If this parameter is set to *-time2, all files whose latest modification time is earlier than time2 are matched. If it is set to time1-*, all files whose latest modification time is later than time1 are matched.
+
+
NOTICE:
  • Time in the matching pattern is the UTC time.
  • This matching pattern applies only to objects whose names do not end with a slash (/).
+
+

mf

+

Optional (additional parameter)

+

Indicates that the name matching pattern (include or exclude) and the time matching pattern (timeRange) also take effect on objects whose names end with a slash (/).

+

+

o

+

Optional (additional parameter)

+

The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is .obsutil_output, a subfolder in the user's home directory where obsutil commands are executed.

+
NOTE:
  • A result file should be named as follows: share-cp_{succeed | failed | warning}_report_time_TaskId.txt.
  • By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.
  • If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file cp_failed_report_time_TaskId.txt in the result folder and the log files in the log path.
+
+

config

+

Optional (additional parameter)

+

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

+
+
+
+

Response

Refer to Response for uploading an object.

+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0065.html b/docs/obs/tool-obsutil/obs_11_0065.html new file mode 100644 index 000000000..a05e78969 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0065.html @@ -0,0 +1,22 @@ + + +

Deleting All Multipart Upload Tasks in a Bucket

+

All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.

+

Assume that bucket bucket-test contains the following multipart upload tasks:

+
obs://bucket-test/task1.txt uploadid1
+obs://bucket-test/task1.txt uploadid2
+obs://bucket-test/task2.txt uploadid3
+obs://bucket-test/task3.txt uploadid4
+obs://bucket-test/src1/
+obs://bucket-test/src1/task4.txt uploadid5
+obs://bucket-test/src2/
+obs://bucket-test/src2/task5.txt uploadid6
+

You can run the following command to delete all fragments of multipart upload tasks in the bucket at a time:

+
./obsutil abort obs://bucket-test -r -f
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0066.html b/docs/obs/tool-obsutil/obs_11_0066.html new file mode 100644 index 000000000..1ff862052 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0066.html @@ -0,0 +1,35 @@ + + +

Using the obsutil help Command to Search for Functions

+

obsutil provides help commands for viewing the help documents of each command. To query the help document of the bucket creation command, perform the following steps:

+
  1. Run the obsutil help command to query the list of all supported commands.
  2. Find the abbreviation of the command to be viewed based on the document description in the command list. For example, the abbreviation of the command for creating a bucket is mb.
  3. Run the obsutil help mb command to view the usage and detailed functions of the mb command, illustrated as follows:

    Summary:
    +create a bucket with the specified parameters
    +
    +Syntax:
    +  obsutil mb obs://bucket [-fs] [-acl=xxx] [-sc=xxx] [-location=xxx] [-config=xxx]
    +
    +Options:
    +  -fs
    +    create a bucket that supports POSIX
    +
    +  -acl=xxx
    +    the ACL of the bucket, possible values are [private|public-read|public-read-write]
    +
    +  -sc=xxx
    +    the default storage class of the bucket, possible values are: [standard|warm|cold]
    +
    +  -location=xxx
    +    the region where the bucket is located
    +
    +  -config=xxx
    +    the path to the custom config file when running this command
    +

  4. Run the obsutil mb obs://bucket-test -location xxx command to create a bucket named bucket-test in the xxx region.
+
  • For more information about the help command, see Viewing Command Help Information.
  • You can set the helpLanguage parameter in the configuration file to configure the language type of the help command. For example, helpLanguage=Chinese indicates that the language type of the help command is Chinese.
  • The supported languages are Chinese and English. The default language is English.
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0068.html b/docs/obs/tool-obsutil/obs_11_0068.html new file mode 100644 index 000000000..6708a8229 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0068.html @@ -0,0 +1,17 @@ + + +

Configuring an HTTP Proxy for obsutil

+

You can configure an HTTP proxy in either of the following ways:

+
+

Method 1: Set the proxyUrl parameter in the .obsutilconfig file, for example, proxyUrl=http://username:password@your-proxy:8080.

+

Method 2: Use the system environment variable HTTPS_PROXY or HTTP_PROXY, for example, HTTPS_PROXY=http://username:password@your-proxy:8080.

+
  • HTTP proxy format: http://[Username:Password@]Proxy server address:Port number. The Username and Password are optional.
  • The proxyUrl parameter and system environment variables are in the following priority order: proxyUrl > HTTPS_PROXY > HTTP_PROXY.
  • The user name and password cannot contain colons (:) and at signs (@), which will result in parsing errors.
+
+

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0069.html b/docs/obs/tool-obsutil/obs_11_0069.html new file mode 100644 index 000000000..fccd1f9cd --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0069.html @@ -0,0 +1,24 @@ + + +

Using obsutil to Share Directories

+

The directory sharing function allows the owner of a bucket to share directories in a bucket or the entire bucket with other users by using the authorization code and access code. If you have the valid authorization code and access code of a shared folder, you can use OBS tools (OBS Browser and obsutil) to access the folder, list objects, and download objects. Alternatively, you can directly enter the authorization code in the address box of a web browser to list and download objects.

+

obsutil provides three commands to implement directory sharing. The procedure is as follows:

+
  1. Run the obsutil create-share command to create an authorization code for sharing a directory. For example, you can run the following command to share the test directory in the bucket named bucket with the access code set to 123456 and the validity period set to 10 days:

    obsutil create-share obs://bucket/test/ -ac=123456 -vp=10d
    +
    • When creating an authorization code, you are advised to end the name of the directory to be shared always with a slash (/). If no directory name is specified in the command (for example, only obs://bucket is specified in the command), the entire bucket is shared.
    • If you do not use the ac option to set the access code, obsutil will prompt you to enter the access code. The access code must be a six-digit string.
    • For details about this command, see Creating an Authorization Code for Directory Sharing.
    +
    +

  2. Run the obsutil share-ls command to list objects in the bucket. For example, to list the first 100 objects in the test directory in the bucket using the authorization code, run the following command:

    obsutil share-ls file://d:/authorizationCode.txt -ac=123456 -prefix=test/ -limit=100
    +
    • If the value of prefix is not specified, all objects in the authorized path are listed by default. If you do not want to list all objects, set prefix to a subset of the authorized path in the authorization code.
    • For details about this command, see Listing Objects by Using an Authorization Code.
    +
    +

  3. Run the obsutil share-cp command to download objects from the bucket. For example, if you want to download all objects in the sub subdirectory of the test directory, run the following command:

    obsutil share-cp file://d:/authorizationCode.txt ./ -ac=123456 -key=test/sub/ -r -f
    +

    For details about this command, see Downloading Objects by Using an Authorization Code.

    +
    +

+
  • You can also create an authorization code on OBS Console or OBS Browser, and then use obsutil to list and download objects.
  • You can use obsutil to create an authorization code and enter the authorization code in the address box of a web browser to list and download objects, or use the authorization code to log in to OBS Browser to list and download objects.
+
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0073.html b/docs/obs/tool-obsutil/obs_11_0073.html new file mode 100644 index 000000000..5fbc4eef0 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0073.html @@ -0,0 +1,13 @@ + + +

Limiting the Upload and Download Rate for obsutil

+

obsutil allows you to configure the rateLimitThreshold parameter in the .obsutilconfig file to limit the upload and download rate.

+

For detailed parameter description, see Configuration Parameters. If you do not configure this parameter, the upload and download rate will not be limited, but depend on the user's network bandwidth and the number of concurrent tasks. For details about the optimization, see Fine-Tuning obsutil Performance.

+

Parameter rateLimitThreshold limits the global rate of obsutil tasks. This means that if you upload and download files in batches using the cp and sync commands, the actual upper rate is the one specified by rateLimitThreshold, not by the value obtained as follows: Number of concurrent tasks x Value of rateLimitThreshold.

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0074.html b/docs/obs/tool-obsutil/obs_11_0074.html new file mode 100644 index 000000000..7f0b6249e --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0074.html @@ -0,0 +1,25 @@ + + +

FAQs

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0075.html b/docs/obs/tool-obsutil/obs_11_0075.html new file mode 100644 index 000000000..81476748b --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0075.html @@ -0,0 +1,13 @@ + + +

After Some Files Are Deleted in My Local Directory, Can obsutil Synchronously Delete Them from the Bucket?

+

No.

+

obsutil allows you to upload your local directory to an OBS bucket. After the synchronization, if you delete some files in the local directory and then perform an incremental upload, obsutil only checks whether there are incremental files that need to be uploaded. obsutil cannot detect the deleted files, so these files will not be deleted in the bucket.

+

If new files are added to your local directory during an upload, the number of objects uploaded by obsutil may be inconsistent with that in the local directory. To keep the files same in both places, run the incremental upload command after the upload is complete.

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0076.html b/docs/obs/tool-obsutil/obs_11_0076.html new file mode 100644 index 000000000..9027d17b4 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0076.html @@ -0,0 +1,16 @@ + + +

Can I Use obsutil to Directly Save a Listing Result to a Local File?

+

obsutil does not allow you to directly save a listing result to a local file, but you can redirect a listing result displayed on the screen in standard output to a specified local file by relying on the redirection supported by OS. The following uses the listing of objects in a bucket as an example:

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0077.html b/docs/obs/tool-obsutil/obs_11_0077.html new file mode 100644 index 000000000..012ef5da0 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0077.html @@ -0,0 +1,12 @@ + + +

Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?

+

When you use obsutil to list all objects in a bucket, the listing result contains the total size of the objects. If the total size is different from that on OBS Console or OBS Browser+, go through the following list to locate the fault:

+
  1. To query the number of objects in a bucket and the space occupied by the objects, both OBS Browser+ and OBS Console call the API for . The results obtained by them correspond to the output by calling the stat command in obsutil. On OBS Browser+ and OBS Console, the bucket storage statistics are measured in the backend and are not real time. Therefore, you are advised to use obsutil to query the storage usage.
  2. Check whether there are object fragments in the bucket on OBS Browser+ and OBS Console by referring to Listing Multipart Upload Tasks. OBS bucket storage statistics cover the size of both objects and object fragments in a bucket, but obsutil lists only the objects in a bucket.
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0078.html b/docs/obs/tool-obsutil/obs_11_0078.html new file mode 100644 index 000000000..2519a78aa --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0078.html @@ -0,0 +1,13 @@ + + +

How Can I Find Out Why Some Tasks in a Batch Task Failed?

+

After a batch task is completed, there will be results telling you how many tasks succeeded or failed. To find out why those tasks failed, you can check their failure result file or obsutil log file.

+

After a batch task is executed, its task ID will be generated. You can query the failure result file in the .obsutil_output directory based on the task ID. The file is named in the cp_{failed}_report_Time_TaskId.txt format and contains detailed error information about each failed task.

+

In addition, you can view the obsutil log file to query the error records during obsutil running. You are advised to set the log level to DEBUG for fault locating. For details about the log configuration and log path, see Log Files.

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0079.html b/docs/obs/tool-obsutil/obs_11_0079.html new file mode 100644 index 000000000..9d78ca2b0 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0079.html @@ -0,0 +1,15 @@ + + +

How Can I Locate and Rectify I/O Timeout and EOF Errors?

+

I/O timeout and EOF errors usually occur when requests fail due to network fluctuations. Go through the following list to locate the cause.

+
  1. Ping the bucket domain name (bucketName.endpoint) to check the network connection between your local PC and the bucket. If the network connection is abnormal, resolve the network issue first.
  2. If these errors are prone to occur and the bucket domain name can be pinged, use HTTP for the endpoint and capture network packets. Based on the packets captured, check whether packet loss occurs on the actual network link and resolve the errors accordingly.
+

+

Solutions:

+
  1. If the network connection is abnormal, resolve the local network problem first. If you need to configure a proxy, see Configuring an HTTP Proxy for obsutil.
  2. If these errors occur occasionally, retry the command of your operation. During upload, download, or replication operations, specify the -u parameter in the cp command to perform an incremental upload. In this way, you do not need to retry the tasks that have been successfully completed in a batch task.
  3. If the network condition is poor, you can decrease the values of defaultParallels (-p) and defaultJobs (-j) to reduce the number of concurrent upload, download, or replication tasks, to make errors less likely occur.
+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0080.html b/docs/obs/tool-obsutil/obs_11_0080.html new file mode 100644 index 000000000..54cd77c51 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0080.html @@ -0,0 +1,14 @@ + + +

Why Is a Question Mark Displayed in the Batch Task Progress Bar?

+

Possible causes:

+

When a batch upload or download task is being executed, if there are a large number of objects involved, obsutil needs to traverse all objects to collect the total number and size of objects in the task. During this collection process, a question mark (?) is displayed in the progress bar.

+

Solution:

+

After the information is collected, corresponding task details will be displayed in the progress bar.

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0081.html b/docs/obs/tool-obsutil/obs_11_0081.html new file mode 100644 index 000000000..44d3f7c02 --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0081.html @@ -0,0 +1,13 @@ + + +

Can Multiple config Files Be Placed in One Directory?

+

No.

+

obsutil allows you to configure multiple config files, but they cannot be stored in the same directory due to encryption requirements.

+

If multiple config files are required, initialize them to put them in different directories.

+
+
+ +
+ diff --git a/docs/obs/tool-obsutil/obs_11_0084.html b/docs/obs/tool-obsutil/obs_11_0084.html new file mode 100644 index 000000000..e0ec441fa --- /dev/null +++ b/docs/obs/tool-obsutil/obs_11_0084.html @@ -0,0 +1,34 @@ + + +

Can I Rename an Object or a Folder?

+

Yes. You can run the mv command to rename an object or a folder. The following give two examples in Windows.

+ +
+
+ +
+ diff --git a/docs/obs/tool-obsutil/public_sys-resources/caution_3.0-en-us.png b/docs/obs/tool-obsutil/public_sys-resources/caution_3.0-en-us.png new file mode 100644 index 000000000..60f607621 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/caution_3.0-en-us.png differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/danger_3.0-en-us.png b/docs/obs/tool-obsutil/public_sys-resources/danger_3.0-en-us.png new file mode 100644 index 000000000..47a9c7235 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/danger_3.0-en-us.png differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/delta.gif b/docs/obs/tool-obsutil/public_sys-resources/delta.gif new file mode 100644 index 000000000..0d1b1f674 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/delta.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/deltaend.gif b/docs/obs/tool-obsutil/public_sys-resources/deltaend.gif new file mode 100644 index 000000000..cc7da0fc8 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/deltaend.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-arrowdn.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-arrowdn.gif new file mode 100644 index 000000000..379428032 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-arrowdn.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-arrowrt.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-arrowrt.gif new file mode 100644 index 000000000..6aaaa11c2 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-arrowrt.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-caution.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-caution.gif new file mode 100644 index 000000000..079c79b26 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-caution.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-danger.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-danger.gif new file mode 100644 index 000000000..079c79b26 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-danger.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-huawei.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-huawei.gif new file mode 100644 index 000000000..a31d60f89 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-huawei.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-note.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-note.gif new file mode 100644 index 000000000..31be2b039 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-note.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-notice.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-notice.gif new file mode 100644 index 000000000..409070650 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-notice.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-tip.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-tip.gif new file mode 100644 index 000000000..c47bae05c Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-tip.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/icon-warning.gif b/docs/obs/tool-obsutil/public_sys-resources/icon-warning.gif new file mode 100644 index 000000000..079c79b26 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/icon-warning.gif differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/note_3.0-en-us.png b/docs/obs/tool-obsutil/public_sys-resources/note_3.0-en-us.png new file mode 100644 index 000000000..57a0e1f53 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/note_3.0-en-us.png differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/notice_3.0-en-us.png b/docs/obs/tool-obsutil/public_sys-resources/notice_3.0-en-us.png new file mode 100644 index 000000000..fa4b64990 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/notice_3.0-en-us.png differ diff --git a/docs/obs/tool-obsutil/public_sys-resources/warning_3.0-en-us.png b/docs/obs/tool-obsutil/public_sys-resources/warning_3.0-en-us.png new file mode 100644 index 000000000..def5c3565 Binary files /dev/null and b/docs/obs/tool-obsutil/public_sys-resources/warning_3.0-en-us.png differ