diff --git a/docs/obs/tool-obsutil/ALL_META.TXT.json b/docs/obs/tool-obsutil/ALL_META.TXT.json index be1688fc5..39625c8a9 100644 --- a/docs/obs/tool-obsutil/ALL_META.TXT.json +++ b/docs/obs/tool-obsutil/ALL_META.TXT.json @@ -98,7 +98,7 @@ "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 ", + "des":"This section uses Linux as an example to describe how to use obsutil to perform basic operations in OBS.You have obtained obsutil and completed initial configuration.You ", "doc_type":"utiltg", "kw":"Quick Start,Getting Started,OBS Client Guide (obsutil)", "search_title":"", @@ -152,7 +152,7 @@ "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] [", + "des":"You can use this command to obtain the bucket list. In the list, bucket names are displayed in lexicographical order.Windowsobsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [-li", "doc_type":"utiltg", "kw":"Listing Buckets,Bucket Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -188,7 +188,7 @@ "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", + "des":"You can use this command to set the properties of a bucket, such as storage classes and access policies.Windowsobsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclXml=", "doc_type":"utiltg", "kw":"Setting Bucket Properties,Bucket Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -278,7 +278,7 @@ "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", + "des":"You can use this command to query the basic properties of an object.Windowsobsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]macOS or Linux./obsutil stat obs://b", "doc_type":"utiltg", "kw":"Querying Object Properties,Object Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -314,7 +314,7 @@ "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 ", + "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.Windowsobsutil ls ", "doc_type":"utiltg", "kw":"Listing Objects,Object Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -494,7 +494,7 @@ "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]", + "des":"You can use this command to resume a failed upload task based on the task ID.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":"", @@ -512,7 +512,7 @@ "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] [", + "des":"You can use this command to resume a failed copy task based on the task ID.Windowsobsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-th", "doc_type":"utiltg", "kw":"Resuming a Failed Copy Task,Object Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -530,7 +530,7 @@ "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]", + "des":"You can use this command to resume a failed download task based on the task ID.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":"", @@ -548,7 +548,7 @@ "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", + "des":"You can use this command to query multipart upload tasks in a bucket.Windowsobsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-limit", "doc_type":"utiltg", "kw":"Listing Multipart Upload Tasks,Object Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -584,7 +584,7 @@ "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", + "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.Windowsobsutil create-share", "doc_type":"utiltg", "kw":"Creating an Authorization Code for Directory Sharing,Object Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -602,7 +602,7 @@ "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", + "des":"You can use this command to query objects in a bucket with an authorization code. The returned objects are sorted in lexicographical order.WindowsEnter an authorization c", "doc_type":"utiltg", "kw":"Listing Objects by Using an Authorization Code,Object Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -656,7 +656,7 @@ "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", + "des":"You can update items in the .obsutilconfig file, including the endpoint, AK, SK, and token.Configuration Parameters describes parameters in the .obsutilconfig file.Window", "doc_type":"utiltg", "kw":"Updating a Configuration File,Auxiliary Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -674,7 +674,7 @@ "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", + "des":"You can use this command to delete part records from a specified directory.Windowsobsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]macOS or Linux./obsutil clear", "doc_type":"utiltg", "kw":"Deleting Part Records,Auxiliary Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -692,7 +692,7 @@ "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", + "des":"You can use this command to view the commands supported by obsutil or view the help information of a specific command.Windowsobsutil help [command]macOS or Linux./obsutil", "doc_type":"utiltg", "kw":"Viewing Command Help Information,Auxiliary Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -710,7 +710,7 @@ "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.", + "des":"You can use this command to query the current version of obsutil.Windowsobsutil versionmacOS or Linux./obsutil versionIn Windows, run the following command to view a vers", "doc_type":"utiltg", "kw":"Querying the Version Number,Auxiliary Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -728,7 +728,7 @@ "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", + "des":"You can use this command to archive log files to a local PC or to a specified bucket.WindowsArchiving to a local PCobsutil archive [file_or_folder_url] [-config=xxx]Archi", "doc_type":"utiltg", "kw":"Archiving Log Files,Auxiliary Commands,OBS Client Guide (obsutil)", "search_title":"", @@ -1160,7 +1160,7 @@ "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", + "des":"Directory sharing allows a bucket owner to share specific directories within a bucket or even the entire bucket with other users by providing an authorization code and an", "doc_type":"utiltg", "kw":"Using obsutil to Share Directories,Best Practices,OBS Client Guide (obsutil)", "search_title":"", @@ -1198,7 +1198,7 @@ "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)", + "kw":"Limiting the Upload and Download Rates for obsutil,Best Practices,OBS Client Guide (obsutil)", "search_title":"", "metedata":[ { @@ -1206,7 +1206,7 @@ "documenttype":"utiltg" } ], - "title":"Limiting the Upload and Download Rate for obsutil", + "title":"Limiting the Upload and Download Rates for obsutil", "githuburl":"" }, { @@ -1268,9 +1268,9 @@ "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", + "des":"When you use obsutil to list all objects in a bucket, the listing result includes the total size of the objects. If the total size is different from that shown on OBS Con", "doc_type":"utiltg", - "kw":"Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?,FAQs,OBS Client", + "kw":"Why Does obsutil Show a Different Total Object Size Than OBS Console?,FAQs,OBS Client Guide (obsutil", "search_title":"", "metedata":[ { @@ -1278,7 +1278,7 @@ "documenttype":"utiltg" } ], - "title":"Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?", + "title":"Why Does obsutil Show a Different Total Object Size Than OBS Console?", "githuburl":"" }, { @@ -1358,7 +1358,7 @@ "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", + "des":"Yes. You can run the mv command to rename an object or a folder. The following gives two examples in Windows.Running obsutil mv obs://bucket-test/key obs://bucket-test/ke", "doc_type":"utiltg", "kw":"Can I Rename an Object or a Folder?,FAQs,OBS Client Guide (obsutil)", "search_title":"", diff --git a/docs/obs/tool-obsutil/CLASS.TXT.json b/docs/obs/tool-obsutil/CLASS.TXT.json index 2350690e2..9c1b5eea7 100644 --- a/docs/obs/tool-obsutil/CLASS.TXT.json +++ b/docs/obs/tool-obsutil/CLASS.TXT.json @@ -45,7 +45,7 @@ "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 ", + "desc":"This section uses Linux as an example to describe how to use obsutil to perform basic operations in OBS.You have obtained obsutil and completed initial configuration.You ", "product_code":"obs", "title":"Quick Start", "uri":"obs_11_0006.html", @@ -72,7 +72,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] [", + "desc":"You can use this command to obtain the bucket list. In the list, bucket names are displayed in lexicographical order.Windowsobsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [-li", "product_code":"obs", "title":"Listing Buckets", "uri":"obs_11_0009.html", @@ -90,7 +90,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", + "desc":"You can use this command to set the properties of a bucket, such as storage classes and access policies.Windowsobsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclXml=", "product_code":"obs", "title":"Setting Bucket Properties", "uri":"obs_11_0040.html", @@ -135,7 +135,7 @@ "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", + "desc":"You can use this command to query the basic properties of an object.Windowsobsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]macOS or Linux./obsutil stat obs://b", "product_code":"obs", "title":"Querying Object Properties", "uri":"obs_11_0015.html", @@ -153,7 +153,7 @@ "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 ", + "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.Windowsobsutil ls ", "product_code":"obs", "title":"Listing Objects", "uri":"obs_11_0014.html", @@ -243,7 +243,7 @@ "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]", + "desc":"You can use this command to resume a failed upload task based on the task ID.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", @@ -252,7 +252,7 @@ "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] [", + "desc":"You can use this command to resume a failed copy task based on the task ID.Windowsobsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-th", "product_code":"obs", "title":"Resuming a Failed Copy Task", "uri":"obs_11_0037.html", @@ -261,7 +261,7 @@ "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]", + "desc":"You can use this command to resume a failed download task based on the task ID.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", @@ -270,7 +270,7 @@ "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", + "desc":"You can use this command to query multipart upload tasks in a bucket.Windowsobsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-limit", "product_code":"obs", "title":"Listing Multipart Upload Tasks", "uri":"obs_11_0019.html", @@ -288,7 +288,7 @@ "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", + "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.Windowsobsutil create-share", "product_code":"obs", "title":"Creating an Authorization Code for Directory Sharing", "uri":"obs_11_0062.html", @@ -297,7 +297,7 @@ "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", + "desc":"You can use this command to query objects in a bucket with an authorization code. The returned objects are sorted in lexicographical order.WindowsEnter an authorization c", "product_code":"obs", "title":"Listing Objects by Using an Authorization Code", "uri":"obs_11_0063.html", @@ -324,7 +324,7 @@ "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", + "desc":"You can update items in the .obsutilconfig file, including the endpoint, AK, SK, and token.Configuration Parameters describes parameters in the .obsutilconfig file.Window", "product_code":"obs", "title":"Updating a Configuration File", "uri":"obs_11_0023.html", @@ -333,7 +333,7 @@ "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", + "desc":"You can use this command to delete part records from a specified directory.Windowsobsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]macOS or Linux./obsutil clear", "product_code":"obs", "title":"Deleting Part Records", "uri":"obs_11_0024.html", @@ -342,7 +342,7 @@ "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", + "desc":"You can use this command to view the commands supported by obsutil or view the help information of a specific command.Windowsobsutil help [command]macOS or Linux./obsutil", "product_code":"obs", "title":"Viewing Command Help Information", "uri":"obs_11_0025.html", @@ -351,7 +351,7 @@ "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.", + "desc":"You can use this command to query the current version of obsutil.Windowsobsutil versionmacOS or Linux./obsutil versionIn Windows, run the following command to view a vers", "product_code":"obs", "title":"Querying the Version Number", "uri":"obs_11_0026.html", @@ -360,7 +360,7 @@ "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", + "desc":"You can use this command to archive log files to a local PC or to a specified bucket.WindowsArchiving to a local PCobsutil archive [file_or_folder_url] [-config=xxx]Archi", "product_code":"obs", "title":"Archiving Log Files", "uri":"obs_11_0045.html", @@ -576,7 +576,7 @@ "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", + "desc":"Directory sharing allows a bucket owner to share specific directories within a bucket or even the entire bucket with other users by providing an authorization code and an", "product_code":"obs", "title":"Using obsutil to Share Directories", "uri":"obs_11_0069.html", @@ -596,7 +596,7 @@ { "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", + "title":"Limiting the Upload and Download Rates for obsutil", "uri":"obs_11_0073.html", "doc_type":"utiltg", "p_code":"57", @@ -630,9 +630,9 @@ "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", + "desc":"When you use obsutil to list all objects in a bucket, the listing result includes the total size of the objects. If the total size is different from that shown on OBS Con", "product_code":"obs", - "title":"Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?", + "title":"Why Does obsutil Show a Different Total Object Size Than OBS Console?", "uri":"obs_11_0077.html", "doc_type":"utiltg", "p_code":"68", @@ -675,7 +675,7 @@ "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", + "desc":"Yes. You can run the mv command to rename an object or a folder. The following gives two examples in Windows.Running obsutil mv obs://bucket-test/key obs://bucket-test/ke", "product_code":"obs", "title":"Can I Rename an Object or a Folder?", "uri":"obs_11_0084.html", diff --git a/docs/obs/tool-obsutil/obs_11_0000.html b/docs/obs/tool-obsutil/obs_11_0000.html index 3f526d12f..3e356b520 100644 --- a/docs/obs/tool-obsutil/obs_11_0000.html +++ b/docs/obs/tool-obsutil/obs_11_0000.html @@ -8,7 +8,13 @@ -
2026-02-12
+2026-02-28
+This issue is the third official release.
+Updated Creating Access Keys (AK and SK), Initializing the Configuration, Quick Start, Using the obsutil help Command to Search for Functions, Why Does obsutil Show a Different Total Object Size Than OBS Console?, and Configuration Parameters.
+2026-02-12
This issue is the third official release.
Updated Downloading and Installing obsutil by adding obsutil signature files.
diff --git a/docs/obs/tool-obsutil/obs_11_0001.html b/docs/obs/tool-obsutil/obs_11_0001.html index d3c0d059d..f69362ce9 100644 --- a/docs/obs/tool-obsutil/obs_11_0001.html +++ b/docs/obs/tool-obsutil/obs_11_0001.html @@ -62,9 +62,9 @@ -Below describes how to use commands in obsutil:
-./obsutil command [parameters...] [options...]
+Below describes how to use commands in obsutil:
+
Enter "exit" or "quit" to logout Enter "help" or "help command" to show help docs diff --git a/docs/obs/tool-obsutil/obs_11_0005.html b/docs/obs/tool-obsutil/obs_11_0005.html index 75f33a9af..5d14176e6 100644 --- a/docs/obs/tool-obsutil/obs_11_0005.html +++ b/docs/obs/tool-obsutil/obs_11_0005.html @@ -5,11 +5,11 @@Prerequisites
- You have obtained the enabled regions and endpoints of OBS.
- You have obtained the AK/SK. For details, see Creating Access Keys (AK and SK).
obsutil Initialization Methods
Run the config command (for more information about config, see Updating a Configuration File):
-
- In Windows +
- Windows
obsutil config -i=xxxxx -k=xxxxx -e=xxxxxUsing a temporary AK/SK pair and a security token:
obsutil config -i=xxxxx -k=xxxxx -t=xxxxx -e=xxxxx-- In Linux or macOS +
- macOS or Linux
./obsutil config -i=xxxxx -k=xxxx -e=xxxxxUsing a temporary AK/SK pair and a security token:
./obsutil config -i=xxxxx -k=xxxxx -t=xxxxx -e=xxxxx@@ -54,8 +54,8 @@
dir-
ls -a+
dir+
ls -a
or
ls -al
Method 3: Initialize obsutil in interactive mode.
-Using a permanent AK/SK pair (you do not need to enter a token, and press Enter to skip it):
+Using a permanent AK/SK pair (you do not need to enter a token, and just press Enter to skip it):
obsutil config -interactive Please input your ak: @@ -94,7 +94,7 @@ Config file url: C:\Users\tools\.obsutilconfig Update config file successfully!-
Using a permanent AK/SK pair (you do not need to enter a token, and press Enter to skip it):
+Using a permanent AK/SK pair (you do not need to enter a token, and press Enter to skip it):
./obsutil config -interactive Please input your ak: @@ -127,11 +127,11 @@ Config file url: Update config file successfully!
After the initial configuration is complete, run the following command to check the connectivity:
-obsutil ls -s-
./obsutil ls -s+
obsutil ls -s+
./obsutil ls -s
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.
This section uses the Linux OS as an example to describe how to use obsutil to perform basic operations in OBS. For details, see .
-This section uses Linux as an example to describe how to use obsutil to perform basic operations in OBS.
+./obsutil mb obs://bucket-test diff --git a/docs/obs/tool-obsutil/obs_11_0008.html b/docs/obs/tool-obsutil/obs_11_0008.html index c382f32b2..6bb3acdc9 100644 --- a/docs/obs/tool-obsutil/obs_11_0008.html +++ b/docs/obs/tool-obsutil/obs_11_0008.html @@ -5,7 +5,7 @@![]()
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.
obsutil mb obs://bucket [-fs] [-acl=xxx] [-sc=xxx] [-location=xxx] [-config=xxx]+
obsutil mb obs://bucket [-fs] [-acl=xxx] [-sc=xxx] [-location=xxx] [-config=xxx]
./obsutil mb obs://bucket [-fs] [-acl=xxx] [-sc=xxx] [-location=xxx] [-config=xxx]
You can use this command to obtain the bucket list. In the list, bucket names are displayed in lexicographical order.
obsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [-limit=1] [-config=xxx]-
./obsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [-limit=1] [-config=xxx]+
obsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [-limit=1] [-config=xxx]+
./obsutil ls [-s] [-sc] [-du] [-fs] [-j=1] [-limit=1] [-config=xxx]
obsutil ls -limit=5 +Examples
- In Windows, run obsutil ls -limit=5 to obtain the bucket list.
obsutil ls -limit=5 Start at 2024-09-29 07:58:46.0506904 +0000 UTC Bucket CreationDate Location BucketType @@ -54,7 +54,7 @@ Bucket number : 5Optional (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.
+NOTE:The tool ensures that this value is at least 1.
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.
obsutil stat obs://bucket [-acl] [-bf=xxx] [-config=xxx] [-payer=xxx]-
./obsutil stat obs://bucket [-acl] [-bf=xxx] [-config=xxx] +-Command Line Structure
- Windows
obsutil stat obs://bucket [-acl] [-bf=xxx] [-config=xxx] [-payer=xxx]+- macOS or Linux
./obsutil stat obs://bucket [-acl] [-bf=xxx] [-config=xxx] [-payer=xxx]Examples
- Take the Windows OS as an example. Run the obsutil stat obs://bucket-test command to query the basic properties of bucket bucket-test.
obsutil stat obs://bucket-test +Examples
- In Windows, run obsutil stat obs://bucket-test to query the basic properties of the bucket-test bucket.
obsutil stat obs://bucket-test Start at 2024-09-29 07:58:46.0506904 +0000 UTC @@ -82,6 +82,8 @@ Quota:Optional (additional parameter)
Specifies that requester pays is enabled.
+Range:
+requester
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.
obsutil rm obs://bucket [-f] [-config=xxx]-
./obsutil rm obs://bucket [-f] [-config=xxx]+
obsutil rm obs://bucket [-f] [-config=xxx]+
./obsutil rm obs://bucket [-f] [-config=xxx]
obsutil rm obs://bucket-test +-Examples
- In Windows, run obsutil rm obs://bucket-test to delete bucket bucket-test.
obsutil rm obs://bucket-test Start at 2024-09-30 07:58:33.736622 +0000 UTC @@ -53,6 +53,8 @@ Delete bucket [bucket-test] successfully!Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0013.html b/docs/obs/tool-obsutil/obs_11_0013.html index 94ed2472c..f87557be0 100644 --- a/docs/obs/tool-obsutil/obs_11_0013.html +++ b/docs/obs/tool-obsutil/obs_11_0013.html @@ -5,15 +5,15 @@ Specifies that requester pays is enabled.
+Range:
+requester
![]()
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.
+-Constraints
obsutil has size limits on uploaded files or folders. You can upload empty files or folders of 0 bytes. A single file can be up to 5 GB in normal upload or up to 48.8 TB in multipart upload.
Command Line Structure
- In Windows
- Uploading a file
obsutil cp file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]+Command Line Structure
- Windows
-
- Uploading a file
obsutil cp file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]- Uploading a folder
obsutil cp folder_url obs://bucket[/key] -r [-arcDir=xxx] [-dryRun] [-link] [-f] [-flat] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- Uploading multiple files/folders
obsutil cp file1_url,folder1_url|filelist_url obs://bucket[/prefix] -msm=1 [-r] [-arcDir=xxx] [-dryRun] [-link] [-f] [-u] [-vlength] [-vmd5] [-flat] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx][-timeRange=time1-time2] [-at] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- In Linux or macOS
- Uploading a file
./obsutil cp file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Uploading a file
./obsutil cp file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]- Uploading a folder
./obsutil cp folder_url obs://bucket[/key] -r [-arcDir=xxx] [-dryRun] [-link] [-f] [-flat] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-at] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- Uploading multiple files/folders
./obsutil cp file1_url,folder1_url|filelist_url obs://bucket[/prefix] -msm=1 [-r] [-arcDir=xxx] [-dryRun] [-link] [-f] [-u] [-vlength] [-vmd5] [-flat] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx][-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]
-In this command, /prefix is the name prefix for uploading folders. For more examples, see Upload.
@@ -21,7 +21,7 @@Examples
- Take the Windows OS as an example. Run the obsutil cp d:\temp\test.txt obs://bucket-test/key command to upload the test.txt file in the temp directory in the D: drive to bucket bucket-test and rename the file as key.
obsutil cp d:\temp\test.txt obs://bucket-test/key +Examples
-
- In Windows, run obsutil cp d:\temp\test.txt obs://bucket-test/key to upload the test.txt file from the temp directory on the D: drive to bucket bucket-test and rename the file to key.
obsutil cp d:\temp\test.txt obs://bucket-test/key Start at 2024-09-30 08:11:41.6724827 +0000 UTC Parallel: 5 Jobs: 5 @@ -32,7 +32,7 @@ CheckpointDir: C:\Users\Administrator\.obsutil_checkpoint [====================================================] 100.00% 1.68 MB/s 8.46MB/8.46MB 5s Upload successfully, 8.46MB, n/a, d:\temp\test.txt --> obs://bucket-test/key, cost [5], status [200], request id [0000016979E1D2B2860BB5181229C72C]
- Take the Windows OS as an example. Run the obsutil cp d:\temp obs://bucket-test -f -r command to recursively upload all files and subfolders in the temp directory in the D: drive to the temp folder in bucket bucket-test.
obsutil cp d:\temp obs://bucket-test -f -r +
- In Windows, run obsutil cp d:\temp obs://bucket-test -f -r to recursively upload all files and subfolders in the temp directory on the D: drive to the temp folder in bucket bucket-test.
obsutil cp d:\temp obs://bucket-test -f -r Start at 2024-09-30 08:14:12.1406275 +0000 UTC Parallel: 5 Jobs: 5 @@ -152,7 +152,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0edOptional (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.
+When this parameter is set, each file is compared with the object at the corresponding path in the bucket. A file is uploaded only when the object does not exist, the object size differs from the file size, or the object was last modified earlier than the file.
@@ -204,7 +204,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed vlength
@@ -195,7 +195,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0edOptional (additional parameter)
The access control policies that can be specified for objects when uploading files.
-Possible values are:
+The value can be:
- 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.
Optional (additional parameter)
@@ -252,7 +252,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed The storage classes of objects that can be specified when uploading files
-Possible values are:
+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.
Optional for uploading a folder or multiple files/folders (additional parameter)
@@ -352,6 +352,8 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed 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.
+NOTE:The tool ensures that this value is at least 1.
Optional (additional parameter)
@@ -397,7 +399,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed Specifies that requester pays is enabled.
+Range:
+requester
- TimeRange
The parameter -timeRange in the request
+The parameter -timeRange in the request
VerifyLength
@@ -422,7 +424,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed- ArcDir
The parameter -arcDir in the request
+The parameter -arcDir in the request
@@ -194,6 +194,8 @@ File number: 2 Succeed count
diff --git a/docs/obs/tool-obsutil/obs_11_0014.html b/docs/obs/tool-obsutil/obs_11_0014.html index 6782b8baf..400c5964d 100644 --- a/docs/obs/tool-obsutil/obs_11_0014.html +++ b/docs/obs/tool-obsutil/obs_11_0014.html @@ -3,11 +3,11 @@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
- In Windows
obsutil ls obs://bucket[/prefix] [-s] [-d][-fs] [-v] [-du] [-marker=xxx] [-versionIdMarker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]-- In Linux or macOS
./obsutil ls obs://bucket[/prefix] [-s][-fs] [-d] [-v] [-du] [-marker=xxx] [-versionIdMarker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]+-Command Line Structure
- Windows
obsutil ls obs://bucket[/prefix] [-s] [-d][-fs] [-v] [-du] [-marker=xxx] [-versionIdMarker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]+- macOS or Linux
./obsutil ls obs://bucket[/prefix] [-s][-fs] [-d] [-v] [-du] [-marker=xxx] [-versionIdMarker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]Examples
- Example 1: Take the Windows OS as an example. Run the obsutil ls obs://bucket-test -limit=10 command to list objects in the bucket.
obsutil ls obs://bucket-test -limit=10 +Examples
-
- Example 1: In Windows, run obsutil ls obs://bucket-test -limit=10 to list a limited number of objects in the bucket.
obsutil ls obs://bucket-test -limit=10 Start at 2024-09-30 08:18:50.0592788 +0000 UTC Listing objects . @@ -39,7 +39,7 @@ Next marker: api/except.txt Folder number: 1 File number: 9
- Example 2: Take the Windows OS as an example. Run the obsutil ls obs://bucket-test2 command to list objects in the bucket.
obsutil ls obs://bucket-test2 +
- Example 2: In Windows, run obsutil ls obs://bucket-test2 to list all objects in the bucket.
obsutil ls obs://bucket-test2 Start at 2024-09-30 08:21:06.6300221 +0000 UTC Listing objects . @@ -58,7 +58,7 @@ obs://bucket-test2/New text file.txt Total size of bucket: 200B Folder number: 0 File number: 4-- Example 3: Take the Windows OS as an example. Run the obsutil ls obs://bucket-test2/prefix command to list objects whose name prefix is prefix in the bucket.
obsutil ls obs://bucket-test2/prefix +- Example 3: In Windows, run obsutil ls obs://bucket-test2/prefix to list objects whose name prefix is prefix in the bucket.
obsutil ls obs://bucket-test2/prefix Start at 2024-09-30 08:24:36.7057148 +0000 UTC Listing objects . @@ -147,7 +147,7 @@ File number: 2- Optional (additional parameter)
The display formats of bytes in the listing result. Possible values are:
+The display formats of bytes in the listing result. The value can be:
- human-readable
- raw
NOTE:@@ -160,7 +160,7 @@ File number: 2If this parameter is not configured, the display format of bytes in the result is determined by the humanReadableFormat parameter in the configuration file.
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.
CAUTION:This parameter is only supported by obsutil 5.4.6 and later.
Optional (additional parameter)
@@ -224,7 +226,7 @@ File number: 2 Specifies that requester pays is enabled.
+Range:
+requester
diff --git a/docs/obs/tool-obsutil/obs_11_0015.html b/docs/obs/tool-obsutil/obs_11_0015.html index 1644936e7..70527394c 100644 --- a/docs/obs/tool-obsutil/obs_11_0015.html +++ b/docs/obs/tool-obsutil/obs_11_0015.html @@ -3,11 +3,11 @@ - StorageClass
The storage class of an object. Possible values are:
+The storage class of an object. 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.
Querying Object Properties
-Function
You can use this command to query the basic properties of an object.
Command Line Structure
- In Windows
obsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]-- In Linux or macOS
./obsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]+-Command Line Structure
- Windows
obsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]+- macOS or Linux
./obsutil stat obs://bucket/key [-acl][-bf=xxx] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil stat obs://bucket-test/key command to query the basic properties of an object.
obsutil stat obs://bucket-test/key +-Examples
- In Windows, run obsutil stat obs://bucket-test/key to query the basic properties of an object.
obsutil stat obs://bucket-test/key Start at 2024-09-25 04:48:10.1147483 +0000 UTC @@ -63,7 +63,7 @@ Metadata:- Optional (additional parameter)
The display format of the object size (in bytes). Possible values are:
+The display format of the object size (in bytes). The value can be:
- 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.
@@ -90,6 +90,8 @@ Metadata:Optional (additional parameter)
@@ -122,7 +124,7 @@ Metadata: Specifies that requester pays is enabled.
+Range:
+requester
diff --git a/docs/obs/tool-obsutil/obs_11_0016.html b/docs/obs/tool-obsutil/obs_11_0016.html index 5099e9be0..cac96813b 100644 --- a/docs/obs/tool-obsutil/obs_11_0016.html +++ b/docs/obs/tool-obsutil/obs_11_0016.html @@ -5,23 +5,23 @@ StorageClass
The storage class of the object
-Possible values are:
+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. For an object whose storage class is cold, restore the object first and then specify its storage class.
![]()
- 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
- In Windows
- Restoring an object
obsutil restore obs://bucket/key [-d=1] [-t=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]+-Command Line Structure
- Windows
-
- Restoring an object
obsutil restore obs://bucket/key [-d=1] [-t=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]- Restoring objects in batches
obsutil restore obs://bucket[/key] -r [-f] [-v] [-d=1] [-t=xxx] [-o=xxx] [-j=1] [-config=xxx]- Restoring all objects in a specific directory at a time
obsutil restore obs://bucket/folder/ -r [-f] [-v] [-d=1] [-t=xxx] [-o=xxx] [-j=1] [-config=xxx]- In Linux or macOS
- Restoring an object
./obsutil restore obs://bucket/key [-d=1] [-t=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Restoring an object
./obsutil restore obs://bucket/key [-d=1] [-t=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]- Restoring objects in batches
./obsutil restore obs://bucket[/key] -r [-f] [-v] [-d=1] [-t=xxx] [-o=xxx] [-j=1] [-config=xxx]
- Restoring all objects in a specific directory at a time
./obsutil restore obs://bucket/folder/ -r [-f] [-v] [-d=1] [-t=xxx] [-o=xxx] [-j=1] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil restore obs://bucket-test/key command to restore a single object whose storage class is cold.
obsutil restore obs://bucket-test/key +-Examples
-
- In Windows, run obsutil restore obs://bucket-test/key to restore a single object whose storage class is cold.
obsutil restore obs://bucket-test/key Start at 2024-09-30 08:56:17.9537365 +0000 UTC Start to restore object [key] in the bucket [bucket-test] successfully, cost [252] ms, request id [0000019242250F754015F23EE0B7876E]
- Take the Windows OS as an example. Run the obsutil restore obs://bucket-test -r -f command to restore objects whose storage class is cold in the bucket in batches.
obsutil restore obs://bucket-test -r -f +
- In Windows, run obsutil restore obs://bucket-test -r -f to restore all objects whose storage class is cold in the bucket.
obsutil restore obs://bucket-test -r -f Start at 2024-09-30 08:57:11.3565648 +0000 UTC [================================================] 100.00% 3s @@ -67,9 +67,9 @@ Task id: 96f104ee-d0bf-40ff-95dd-31dec0d8f4f4- Optional (additional parameter)
The options for restoring objects. Possible values are:
+@@ -123,7 +123,7 @@ Task id: 96f104ee-d0bf-40ff-95dd-31dec0d8f4f4 The options for restoring objects. The value can be:
-
- 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.
NOTE:
- expedited indicates that objects can be quickly restored from Archive storage within one to five minutes.
- standard indicates that objects can be restored from Archive storage within three to five hours.
- If this parameter is not configured, an expedited restore is used by default.
Optional for batch restoring objects whose storage class is cold (additional parameter)
@@ -139,6 +139,8 @@ Task id: 96f104ee-d0bf-40ff-95dd-31dec0d8f4f4 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.
+NOTE:The tool ensures that this value is at least 1.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0017.html b/docs/obs/tool-obsutil/obs_11_0017.html index e6223e8b3..e71c5a086 100644 --- a/docs/obs/tool-obsutil/obs_11_0017.html +++ b/docs/obs/tool-obsutil/obs_11_0017.html @@ -5,18 +5,18 @@ Specifies that requester pays is enabled.
+Range:
+requester
![]()
- 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
- The source path and destination path cannot be the same.
- The source path and destination path cannot be overlapped either.
+
- If the source path overlaps with the prefix of the destination path, recursive replication applies.
- If the destination path overlaps with the prefix of the source path, the replication may overwrite objects in the source path.
-Constraints
- The source and destination paths cannot be the same.
- The source and destination paths cannot be nested during a batch copy.
- If the destination path has the source path as its prefix, recursive copy may occur.
- If the source path has the destination path as its prefix, overwriting may occur.
Command Line Structure
- In Windows
- Copying a single object
obsutil cp obs://srcbucket/key obs://dstbucket/[dest] [-dryRun][-u] [-crr] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]+-Command Line Structure
- Windows
-
- Copying a single object
obsutil cp obs://srcbucket/key obs://dstbucket/[dest] [-dryRun][-u] [-crr] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]- Copying objects in batches
obsutil cp obs://srcbucket[/key] obs://dstbucket[/dest] -r [-dryRun][-f] [-flat] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- In Linux or macOS
- Copying a single object
./obsutil cp obs://srcbucket/key obs://dstbucket/[dest] [-dryRun] [-u] [-crr] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Copying a single object
./obsutil cp obs://srcbucket/key obs://dstbucket/[dest] [-dryRun] [-u] [-crr] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]- Copying objects in batches
./obsutil cp obs://srcbucket[/key] obs://dstbucket[/dest] -r [-dryRun] [-f] [-flat] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil cp obs://bucket-test/key obs://bucket-test2 command to copy a single object.
obsutil cp obs://bucket-test/key obs://bucket-test2 +Examples
-
- In Windows, run obsutil cp obs://bucket-test/key obs://bucket-test2 to copy a single object.
obsutil cp obs://bucket-test/key obs://bucket-test2 Start at 2024-09-30 08:30:09.0815415 +0000 UTC Parallel: 3 Jobs: 3 @@ -28,7 +28,7 @@ Waiting for the copied key to be completed on server side. Copy successfully, 19B, obs://bucket-test/key --> obs://bucket-test2/key ext.txt, cost [1708], status [200], request id [00000192420D227E4017336A12F1DC22]
- Take the Windows OS as an example. Run the obsutil cp obs://bucket-test/temp/ obs://bucket-test2 -f -r command to copy objects in batches.
obsutil cp obs://bucket-test/temp/ obs://bucket-test2 -r -f +
- In Windows, run obsutil cp obs://bucket-test/temp/ obs://bucket-test2 -f -r to copy objects in batches.
obsutil cp obs://bucket-test/temp/ obs://bucket-test2 -r -f Start at 2024-09-30 08:34:02.7819703 +0000 UTC Parallel: 5 Jobs: 5 @@ -176,7 +176,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5Optional (additional parameter)
@@ -185,7 +185,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 The access control policies for destination objects that can be specified when copying objects
-Possible values are:
+The value can be:
- 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.
Optional (additional parameter)
@@ -234,7 +234,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 The storage classes of the destination objects that can be specified when copying objects
-Possible values are:
+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.
@@ -246,7 +246,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
+NOTE:The tool ensures that this value is at least 1.
- 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.
NOTE:@@ -261,7 +261,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5
- 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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path is src1/src2/test.txt.
Example:
./obsutil cp obs://src-bucket/ obs://target-bucket/ -include=/src-object/* -f -rThis 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.
NOTE:@@ -312,6 +312,8 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5
- 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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path is src1/src2/test.txt.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0018.html b/docs/obs/tool-obsutil/obs_11_0018.html index b0517d898..26d170573 100644 --- a/docs/obs/tool-obsutil/obs_11_0018.html +++ b/docs/obs/tool-obsutil/obs_11_0018.html @@ -5,15 +5,15 @@ Specifies that requester pays is enabled.
+Range:
+requester
![]()
- 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
- In Windows
- Downloading a single object
obsutil cp obs://bucket/key file_or_folder_url [-tempFileDir=xxx] [-dryRun] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]+-Command Line Structure
- Windows
-
- Downloading a single object
obsutil cp obs://bucket/key file_or_folder_url [-tempFileDir=xxx] [-dryRun] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]- Downloading objects in batches
obsutil cp obs://bucket[/key] folder_url -r [-tempFileDir=xxx] [-dryRun] [-f] [-flat] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- In Linux or macOS
- Downloading a single object
./obsutil cp obs://bucket/key file_or_folder_url [-tempFileDir=xxx] [-dryRun] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Downloading a single object
./obsutil cp obs://bucket/key file_or_folder_url [-tempFileDir=xxx] [-dryRun] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-versionId=xxx] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]- Downloading objects in batches
./obsutil cp obs://bucket[/key] folder_url -r [-tempFileDir=xxx] [-dryRun] [-f] [-flat] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil cp obs://bucket-test/key d:\temp\test.txt command to download a single object.
obsutil cp obs://bucket-test/key d:\temp\test.txt +-Examples
-
- In Windows, run obsutil cp obs://bucket-test/key d:\temp\test.txt to download a single object.
obsutil cp obs://bucket-test/key d:\temp\test.txt Start at 2024-09-30 08:39:34.180766 +0000 UTC Parallel: 5 Jobs: 5 @@ -23,9 +23,9 @@ CheckpointDir: xxxx TempFileDir: xxxx [==========================================] 100.00% 4.86 KB/s 8.46MB/8.46MB 0s -Download successfully, 8.46MB, obs://bucket-test/key --> d:\temp\test.txtt, cost [41], status [200], request id [000001924215BEC84019EDF4044A5451]+Download successfully, 8.46MB, obs://bucket-test/key --> d:\temp\test.txt, cost [41], status [200], request id [000001924215BEC84019EDF4044A5451]
- Take the Windows OS as an example. Run the obsutil cp obs://bucket-test/temp d:\ -f -r command to download objects in batches.
obsutil cp obs://bucket-test/temp d:\ -f -r +
- In Windows, run obsutil cp obs://bucket-test/temp d:\ -f -r to download objects in batches.
obsutil cp obs://bucket-test/temp d:\ -f -r Start at 2024-09-30 08:41:56.0306522 +0000 UTC Parallel: 5 Jobs: 5 @@ -79,7 +79,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0fkey
Mandatory for downloading an object
-Optional for downloading objects in a batch
+Optional for downloading objects in batches
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:
@@ -124,7 +124,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f- 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.
+Indicates incremental download. When this parameter is set, each object is compared with the file at the corresponding local path. An object is downloaded only when the file does not exist, the file size differs from the object size, or the file was last modified earlier than the object.
@@ -216,7 +216,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f vlength
@@ -205,7 +205,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0fOptional 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.
+NOTE:The tool ensures that this value is at least 1.
@@ -225,9 +225,9 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f 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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
Optional for downloading objects in batches (additional parameter)
@@ -237,7 +237,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f 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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be downloaded does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is downloaded; if it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
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.
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 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.
NOTICE:@@ -281,6 +281,8 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f
- Time in the matching pattern is the UTC time.
- This matching pattern applies only to objects whose names do not end with a slash (/).
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0019.html b/docs/obs/tool-obsutil/obs_11_0019.html index e3c8faf89..11a18fe24 100644 --- a/docs/obs/tool-obsutil/obs_11_0019.html +++ b/docs/obs/tool-obsutil/obs_11_0019.html @@ -3,11 +3,11 @@ Specifies that requester pays is enabled.
+Range:
+requester
Listing Multipart Upload Tasks
-Function
You can use this command to query multipart upload tasks in a bucket.
Command Line Structure
- In Windows
obsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-limit=1] [-config=xxx]-- In Linux or macOS
./obsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-limit=1] [-config=xxx]+-Command Line Structure
- Windows
obsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-limit=1] [-config=xxx]+- macOS or Linux
./obsutil ls obs://bucket[/prefix] [-s] [-d] -m [-a] [-uploadIdMarker=xxx] [-marker=xxx] [-limit=1] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil ls obs://bucket-test -m -limit=10 command to query the multipart upload tasks in the bucket.
obsutil ls obs://bucket-test -m -limit=10 +Examples
- In Windows, run obsutil ls obs://bucket-test -m -limit=10 to list the multipart upload tasks in the bucket.
obsutil ls obs://bucket-test -m -limit=10 Listing multipart uploads. @@ -129,6 +129,8 @@ Upload number: 6Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0020.html b/docs/obs/tool-obsutil/obs_11_0020.html index 98ff532f8..41bd42058 100644 --- a/docs/obs/tool-obsutil/obs_11_0020.html +++ b/docs/obs/tool-obsutil/obs_11_0020.html @@ -3,15 +3,15 @@ Specifies that requester pays is enabled.
+Range:
+requester
Deleting a Multipart Upload Task
-Function
- 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 tasks in batches based on a specified object name prefix.
Command Line Structure
- In Windows
- Deleting a single multipart upload task
obsutil abort obs://bucket/key -u=xxx [-f] [-fr] [-o=xxx] [-config=xxx]+-Command Line Structure
- Windows
-
- Deleting a single multipart upload task
obsutil abort obs://bucket/key -u=xxx [-f] [-fr] [-o=xxx] [-config=xxx]- Deleting multipart upload tasks in batches
obsutil abort obs://bucket[/key] -r [-f] [-o=xxx] [-j=1] [-config=xxx]- In Linux or macOS
- Deleting a single multipart upload task
./obsutil abort obs://bucket/key -u=xxx [-f] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Deleting a single multipart upload task
./obsutil abort obs://bucket/key -u=xxx [-f] [-fr] [-o=xxx] [-config=xxx]- Deleting multipart upload tasks in batches
./obsutil abort obs://bucket[/key] -r [-f] [-o=xxx] [-j=1] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil abort obs://bucket-test/key -u=xxx -f command to delete a single multipart upload task.
obsutil abort obs://bucket-test/key -u=xxx -f +Examples
-
- In Windows, run obsutil abort obs://bucket-test/key -u=xxx -f to delete a single multipart upload.
obsutil abort obs://bucket-test/key -u=xxx -f Start at 2024-10-08 01:25:55.6771288 +0000 UTC @@ -21,7 +21,7 @@ Metrics [max cost:54 ms, min cost:54 ms, average cost:54.00 ms, average tps:8.77 Task id: 4972589c-c775-41be-a288-bbee3edaaee9
- Take the Windows OS as an example. Run the obsutil abort obs://bucket-test -r -f command to delete all multipart upload tasks in the bucket in batches.
obsutil abort obs://bucket-test -r -f +
- In Windows, run obsutil abort obs://bucket-test -r -f to delete all multipart uploads in the bucket in batches.
obsutil abort obs://bucket-test -r -f Start at 2024-10-08 01:28:29.1980739 +0000 UTC [-----------------------------------------------] 100.00% tps:2924.55 3/3 202ms @@ -92,7 +92,7 @@ Task id: cd2fd08e-fc31-47d9-b4b0-9f9a3376435fOptional for deleting multipart upload tasks (additional parameter)
@@ -117,6 +117,8 @@ Task id: cd2fd08e-fc31-47d9-b4b0-9f9a3376435f 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.
+NOTE:The tool ensures that this value is at least 1.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0021.html b/docs/obs/tool-obsutil/obs_11_0021.html index 6c9321fd5..9ae4e27d6 100644 --- a/docs/obs/tool-obsutil/obs_11_0021.html +++ b/docs/obs/tool-obsutil/obs_11_0021.html @@ -8,21 +8,21 @@ Specifies that requester pays is enabled.
+Range:
+requester
-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:
- 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.
- Configure a lifecycle rule for directories so that they can be deleted in background based on the preset lifecycle rule.
Command Line Structure
- In Windows
- Deleting a single object
obsutil rm obs://bucket/key [-f] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]+-Command Line Structure
- Windows
-
- Deleting a single object
obsutil rm obs://bucket/key [-f] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]- Deleting objects in batches
obsutil rm obs://bucket/[key] -r [-j=1] [-f] [-v] [-o=xxx] [-config=xxx]- In Linux or macOS
- Deleting a single object
./obsutil rm obs://bucket/key [-f] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Deleting a single object
./obsutil rm obs://bucket/key [-f] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]- Deleting objects in batches
./obsutil rm obs://bucket/[key] -r [-j=1] [-f] [-v] [-o=xxx] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil rm obs://bucket-test/key -f command to delete a single object named key in bucket bucket-test.
obsutil rm obs://bucket-test/key -f +-Examples
-
- In Windows, run obsutil rm obs://bucket-test/key -f to delete the key object in bucket bucket-test.
obsutil rm obs://bucket-test/key -f Start at 2024-09-25 04:48:10.1147483 +0000 UTC Delete object [key] in the bucket [bucket-test] successfully, cost [152], request id [0000016979E1D2B2860BB5181229C72C]
- Take the Windows OS as an example. Run the obsutil rm obs://bucket-test -r -f command to delete all objects in bucket bucket-test.
obsutil rm obs://bucket-test -r -f +
- In Windows, run obsutil rm obs://bucket-test -r -f to delete all objects in bucket bucket-test.
obsutil rm obs://bucket-test -r -f Start at 2024-09-30 08:46:55.5335644 +0000 UTC [===============================================] 100.00% 21s @@ -30,7 +30,7 @@ Succeed count: 1313 Failed count: 0 Task id: 95936984-f81a-441a-bba0-1fd8254d9241
- Take the Windows OS as an example. Run the obsutil rm obs://bucket-test/key -r -f command to delete all objects and folders prefixed with key in bucket bucket-test.
obsutil rm obs://bucket-test/key -r -f +
- In Windows, run obsutil rm obs://bucket-test/key -r -f to delete all objects and folders prefixed with key in bucket bucket-test.
obsutil rm obs://bucket-test/key -r -f Start at 2024-09-30 08:49:09.5602115 +0000 UTC [===============================================] 100.00% 21s @@ -98,7 +98,7 @@ Task id: 79ab59ec-7e00-4f22-8c88-465faa834125Optional for deleting objects in batches (additional parameter)
@@ -139,6 +139,8 @@ Task id: 79ab59ec-7e00-4f22-8c88-465faa834125 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.
+NOTE:The tool ensures that this value is at least 1.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0023.html b/docs/obs/tool-obsutil/obs_11_0023.html index a94354f92..82724a5cc 100644 --- a/docs/obs/tool-obsutil/obs_11_0023.html +++ b/docs/obs/tool-obsutil/obs_11_0023.html @@ -4,11 +4,11 @@ Specifies that requester pays is enabled.
+Range:
+requester
-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
- In Windows
obsutil config -interactive [-crr] [-config=xxx]-- In Linux or macOS
./obsutil config -interactive [-crr] [-config=xxx]+-Command Line Structure
- Windows
obsutil config -interactive [-crr] [-config=xxx]+- macOS or Linux
./obsutil config -interactive [-crr] [-config=xxx]Examples
- Take Windows as an example. Run the obsutil config -interactive command to update the access keys and OBS endpoint in the default configuration file.
obsutil config -interactive +Examples
- In Windows, run obsutil config -interactive to update the access keys and OBS endpoint in the default configuration file.
obsutil config -interactive Please input your ak: xxxxxxxxxxxxxxxxxxxxxxxxx @@ -22,7 +22,7 @@ Config file url: C:\Users\tools\.obsutilconfig Update config file successfully!-- Take Linux as an example. Run the ./obsutil config -interactive command to update the access keys and OBS endpoint in the default configuration file.
./obsutil config -interactive +- In Linux, run ./obsutil config -interactive to update the access keys and OBS endpoint in the default configuration file.
./obsutil config -interactive Please input your ak: xxxxxxxxxxxxxxxxxxxxxxxxx diff --git a/docs/obs/tool-obsutil/obs_11_0024.html b/docs/obs/tool-obsutil/obs_11_0024.html index dd839760f..0e0b96359 100644 --- a/docs/obs/tool-obsutil/obs_11_0024.html +++ b/docs/obs/tool-obsutil/obs_11_0024.html @@ -3,11 +3,11 @@Deleting Part Records
-Function
You can use this command to delete part records from a specified directory.
Command Line Structure
- In Windows
obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]-- In Linux or macOS
./obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]+-Command Line Structure
- Windows
obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]+- macOS or Linux
./obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil clear -u command to delete the part records of multipart upload tasks in the default directory.
obsutil clear -u +Examples
- In Windows, run obsutil clear -u to delete the checkpoint files for multipart uploads in the default directory.
obsutil clear -u Clear checkpoint files for uploading in folder [xxxxx] Start at 2024-10-08 01:49:37.6541204 +0000 UTC diff --git a/docs/obs/tool-obsutil/obs_11_0025.html b/docs/obs/tool-obsutil/obs_11_0025.html index d67be6815..ebe613f93 100644 --- a/docs/obs/tool-obsutil/obs_11_0025.html +++ b/docs/obs/tool-obsutil/obs_11_0025.html @@ -3,11 +3,11 @@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
- In Windows
obsutil help [command]-- In Linux or macOS
./obsutil help [command]+-Command Line Structure
- Windows
obsutil help [command]+- macOS or Linux
./obsutil help [command]Examples
- Take the Windows OS as an example. Run the obsutil help mb command to view the help information about the command for creating a bucket.
obsutil help mb +Examples
- In Windows, run obsutil help mb to view the help information for the command that creates a bucket.
obsutil help mb Summary: create a bucket with the specified parameters diff --git a/docs/obs/tool-obsutil/obs_11_0026.html b/docs/obs/tool-obsutil/obs_11_0026.html index e2912bd88..0fcdb1091 100644 --- a/docs/obs/tool-obsutil/obs_11_0026.html +++ b/docs/obs/tool-obsutil/obs_11_0026.html @@ -3,11 +3,11 @@Querying the Version Number
-Function
You can use this command to query the current version of obsutil.
Command Line Structure
- In Windows
obsutil version-- In Linux or macOS
./obsutil version+-Command Line Structure
- Windows
obsutil version+- macOS or Linux
./obsutil versionExamples
Take the Windows OS as an example.
+diff --git a/docs/obs/tool-obsutil/obs_11_0035.html b/docs/obs/tool-obsutil/obs_11_0035.html index 082612e41..978dde717 100644 --- a/docs/obs/tool-obsutil/obs_11_0035.html +++ b/docs/obs/tool-obsutil/obs_11_0035.html @@ -313,7 +313,7 @@ faultTolerantMode=<value>Examples
In Windows, run the following command to view a version number.
obsutil version obsutil version:5.1.9, obssdk version:2.2.12 diff --git a/docs/obs/tool-obsutil/obs_11_0028.html b/docs/obs/tool-obsutil/obs_11_0028.html index 75a548d13..202888c48 100644 --- a/docs/obs/tool-obsutil/obs_11_0028.html +++ b/docs/obs/tool-obsutil/obs_11_0028.html @@ -10,21 +10,21 @@ ├── src3 └── test3.txtBased on the preceding folder structure, different upload scenarios require different commands.
-
- To upload the test3.txt file in the local src1 folder to the root directory of bucket bucket-test, the command is as follows:
./obsutil cp /src1/test3.txt obs://bucket-test+
- To upload the test3.txt file from the local src1 folder to the root directory of the bucket-test bucket, use the following command:
./obsutil cp /src1/test3.txt obs://bucket-testAfter the upload completes, the following object is generated in the bucket:
./obs://bucket-test/test3.txt-- To upload the test3.txt file in the local src1 folder to the root directory of bucket bucket-test and rename it to aaa.txt, the command is as follows:
./obsutil cp /src1/test3.txt obs://bucket-test/aaa.txt+- To upload the test3.txt file from the local src1 folder to the root directory of the bucket-test bucket and rename it to aaa.txt, use the following command:
./obsutil cp /src1/test3.txt obs://bucket-test/aaa.txtAfter the upload completes, the following object is generated in the bucket:
./obs://bucket-test/aaa.txt-- To upload the test3.txt file in the local src1 folder to the src folder in bucket bucket-test, the command is as follows:
./obsutil cp /src1/test3.txt obs://bucket-test/src/+- To upload the test3.txt file from the local src1 folder to the src folder in the bucket-test bucket, use the following command:
./obsutil cp /src1/test3.txt obs://bucket-test/src/After the upload completes, the following object is generated in the bucket:
./obs://bucket-test/src/test3.txt-- To recursively upload the entire local src2 folder to the root directory of bucket bucket-test in force mode, the command is as follows:
./obsutil cp /src1/src2 obs://bucket-test -r -f+- To recursively upload the entire local src2 folder to the root directory of the bucket-test bucket in force mode, use the following command:
./obsutil cp /src1/src2 obs://bucket-test -r -fAfter the upload completes, the following objects are generated in the bucket:
obs://bucket-test/src2/ obs://bucket-test/src2/test1.txt obs://bucket-test/src2/test2.txt-- To recursively upload the entire local src1 folder to the src folder in bucket bucket-test in force mode, the command is as follows:
./obsutil cp /src1 obs://bucket-test/src -r -f+- To recursively upload the entire local src1 folder to the src folder in the bucket-test bucket in force mode, use the following command:
./obsutil cp /src1 obs://bucket-test/src -r -fAfter the upload completes, the following objects are generated in the bucket:
obs://bucket-test/src/src1/ obs://bucket-test/src/src1/src2/ @@ -32,7 +32,7 @@ obs://bucket-test/src/src1/src2/test1.txt obs://bucket-test/src/src1/src2/test2.txt obs://bucket-test/src/src1/src3/ obs://bucket-test/src/src1/test3.txt-- To recursively upload the all files and subfolders in the local src1 folder to the src folder in bucket bucket-test in force mode, the command is as follows:
./obsutil cp /src1 obs://bucket-test/src -r -f -flat+- To recursively upload all files and subfolders from the local src1 folder to the src folder in the bucket-test bucket in force mode, use the following command:
./obsutil cp /src1 obs://bucket-test/src -r -f -flatAfter the upload completes, the following objects are generated in the bucket:
obs://bucket-test/src/ obs://bucket-test/src/src2/ @@ -40,7 +40,7 @@ obs://bucket-test/src/src2/test1.txt obs://bucket-test/src/src2/test2.txt obs://bucket-test/src/src3/ obs://bucket-test/src/test3.txt-- To upload the file1 file to the bucket-test bucket, and resume the upload if the upload fails, run the following commands:
./obsutil cp /file1 obs://bucket-test/file -f+- To upload the local file1 file to the bucket-test bucket and resume the upload if it fails, use the following command:
./obsutil cp /file1 obs://bucket-test/file -fThe upload fails. The command output is as follows:
./obsutil cp /file1 obs://bucket-test/file -f @@ -59,7 +59,7 @@ CheckpointDir: xxxx [====================================================] 100% 307.42MB/s 4.88GB/4.88GB 5.308s Upload successfully, 4.88GB, n/a, /file1 --> obs://bucket-test/file, cost [6325], status [200], request id [xxxxx]-- To incrementally upload all files from the local src1 folder to the src directory of bucket bucket-test, the command is as follows:
./obsutil cp /src1 obs://bucket-test/src -f -r -u+- To incrementally upload all files and subfolders from the local src1 folder to the src directory of the bucket-test bucket, use the following command:
./obsutil cp /src1 obs://bucket-test/src -f -r -uFour objects are successfully uploaded, one of which is a new object. The command output contains Skip count.
./obsutil cp /src1 obs://bucket-test/src -f -r -uStart at 2024-10-08 02:00:18.8906532 +0000 UTC @@ -74,7 +74,7 @@ OutputDir: xxxx Succeed count: 4 Failed count: 0 Skip count: 3 Succeed bytes: 2.09KB Metrics [max cost:6 ms, min cost:6 ms, average cost:1.50 ms, average tps:52.63, transferred size :2.09KB]-- Run the following command to exclude the src2 folder (including all files and folders contained) when uploading the src1 folder:
./obsutil cp /src1 obs://bucket-test/src -exclude "*src1/src2*" -f -r -mf+- To exclude the src2 folder (along with all of its contents) when uploading the src1 folder, use the following command:
./obsutil cp /src1 obs://bucket-test/src -exclude "*src1/src2*" -f -r -mfFive objects are successfully uploaded, and the upload information contains exclude and the specific content.
./obsutil cp /src1 obs://bucket-test/src -exclude "*src1/src2*" -f -r -mf Start at 2024-10-08 02:04:27.7752009 +0000 UTC diff --git a/docs/obs/tool-obsutil/obs_11_0029.html b/docs/obs/tool-obsutil/obs_11_0029.html index 12e1e36e9..927b4c1e5 100644 --- a/docs/obs/tool-obsutil/obs_11_0029.html +++ b/docs/obs/tool-obsutil/obs_11_0029.html @@ -16,27 +16,27 @@ obs://bucket-test/src2/test8.txt obs://bucket-test/src2/src3/ obs://bucket-test/src2/src3/test9.txtBased on the structure of objects in the bucket, different download scenarios require different commands.
-
- To download the test1.txt file from bucket bucket-test to the local src1 folder, the command is as follows:
./obsutil cp obs://bucket-test/test1.txt /src1+
- To download the test1.txt file from the bucket-test bucket to the local src1 folder, use the following command:
./obsutil cp obs://bucket-test/test1.txt /src1After the download is complete, the following file is generated on the local PC:
└── src1 └── test1.txt-- Run the following command to download the test1.txt file to your local PC. If there is no test.txt on the local PC, the test1.txt file is directly downloaded and you can rename it to test.txt. If test.txt already exists, test1.txt is downloaded and overwrites the original local test.txt file after renaming.
./obsutil cp obs://bucket-test/test1.txt /test.txt+- To download the test1.txt file from the bucket-test bucket to your local PC, use the following command. If test.txt does not exist locally, the test1.txt file will be downloaded and saved as test.txt. If test.txt already exists, the download will overwrite it with the contents of test1.txt.
./obsutil cp obs://bucket-test/test1.txt /test.txtAfter the download is complete, the following file is generated on the local PC:
└── test.txt-- To recursively download the entire src2 folder from bucket bucket-test to the local src1 folder in force mode, the command is as follows:
./obsutil cp obs://bucket-test/src2 /src1 -r -f+- To recursively download the entire src2 folder from the bucket-test bucket to the local src1 folder in force mode, use the following command:
./obsutil cp obs://bucket-test/src2 /src1 -r -fAfter the download is complete, the following files are generated on the local PC:
└── src1 └── src2 ├── src3 └── test9.txt └── test8.txt-- To recursively download all files and subfolders in the src2 folder from bucket bucket-test to the local src1 folder in force mode, the command is as follows:
./obsutil cp obs://bucket-test/src2 /src1 -r -f -flat+- To recursively download all files and subfolders from the src2 folder of the bucket-test bucket to the local src1 folder in force mode, use the following command:
./obsutil cp obs://bucket-test/src2 /src1 -r -f -flatAfter the download is complete, the following files are generated on the local PC:
└── src1 ├── src3 └── test9.txt └── test8.txt-- To recursively download the all objects in bucket bucket-test to the local src0 folder in force mode, the command is as follows:
./obsutil cp obs://bucket-test /src0 -r -f+- To recursively download all objects from the bucket-test bucket to the local src0 folder in force mode, use the following command:
./obsutil cp obs://bucket-test /src0 -r -fAfter the download is complete, the following files are generated on the local PC:
└── src0 ├── test1.txt @@ -51,7 +51,7 @@ obs://bucket-test/src2/src3/test9.txt├── src3 └── test9.txt └── test8.txt -- Run the following command to exclude the src2 folder (including all files and folders contained) when downloading the src1 folder from the bucket-test bucket:
./obsutil cp obs://bucket-test/src1/ src1 -exclude "*src1/src2*" -r -f -mf+- To exclude the src2 folder (including all of its contents) when downloading the src1 folder from the bucket-test bucket, use the following command:
./obsutil cp obs://bucket-test/src1/ src1 -exclude "*src1/src2*" -r -f -mfFour objects are successfully downloaded, and the download information contains exclude and the specific content.
./obsutil cp obs://bucket-test/src1/ src1 -exclude "*src1/src2*" -r -f -mf diff --git a/docs/obs/tool-obsutil/obs_11_0030.html b/docs/obs/tool-obsutil/obs_11_0030.html index f443113ec..1ea1cc189 100644 --- a/docs/obs/tool-obsutil/obs_11_0030.html +++ b/docs/obs/tool-obsutil/obs_11_0030.html @@ -16,22 +16,22 @@ obs://bucket-src/src2/test8.txt obs://bucket-src/src2/src3/ obs://bucket-src/src2/src3/test9.txtBased on the structure of objects in the bucket, different copy scenarios require different commands.
-
- To copy the test1.txt file from bucket bucket-src to bucket bucket-dest, the command is as follows:
./obsutil cp obs://bucket-src/test1.txt obs://bucket-dest+
- To copy the test1.txt file from the bucket-src bucket to the bucket-dest bucket, use the following command:
./obsutil cp obs://bucket-src/test1.txt obs://bucket-destAfter the copy is complete, the following object is generated in bucket bucket-dest:
obs://bucket-dest/test1.txt-- To copy the content of the test1.txt file in bucket bucket-src to the text.txt file in bucket bucket-dest, the command is as follows:
./obsutil cp obs://bucket-src/test1.txt obs://bucket-dest/test.txt+- To copy the contents of the test1.txt file in the bucket-src bucket to the test.txt file in the bucket-dest bucket, use the following command:
./obsutil cp obs://bucket-src/test1.txt obs://bucket-dest/test.txtAfter the copy is complete, the following object is generated in bucket bucket-dest:
obs://bucket-dest/test.txt-- To copy the test1.txt file in bucket bucket-src to the text folder in bucket bucket-dest, the command is as follows:
./obsutil cp obs://bucket-src/test1.txt obs://bucket-dest/test/+- To copy the test1.txt file in the bucket-src bucket to the test folder in the bucket-dest bucket, use the following command:
./obsutil cp obs://bucket-src/test1.txt obs://bucket-dest/test/After the copy is complete, the following object is generated in bucket bucket-dest:
obs://bucket-dest/test/test1.txt-- Run the following command to recursively copy the entire src2 folder in bucket bucket-src to bucket bucket-dest in force mode:
./obsutil cp obs://bucket-src/src2 obs://bucket-dest -r -f+- To recursively copy the entire src2 folder from the bucket-src bucket to the bucket-dest bucket in force mode, use the following command:
./obsutil cp obs://bucket-src/src2 obs://bucket-dest -r -fAfter the copy is complete, the following objects are generated in bucket bucket-dest:
obs://bucket-dest/src2/ obs://bucket-dest/src2/test8.txt obs://bucket-dest/src2/src3/ obs://bucket-dest/src2/src3/test9.txt-- To recursively copy all files and subfolders in the src2 folder in bucket bucket-src to bucket bucket-dest in force mode, the command is as follows:
./obsutil cp obs://bucket-src/src2 obs://bucket-dest -r -f -flat+- To recursively copy all files and subfolders from the src2 folder in the bucket-src bucket to the bucket-dest bucket in force mode, use the following command:
./obsutil cp obs://bucket-src/src2 obs://bucket-dest -r -f -flatAfter the copy is complete, the following objects are generated in bucket bucket-dest:
obs://bucket-dest/test8.txt obs://bucket-dest/src3/ diff --git a/docs/obs/tool-obsutil/obs_11_0031.html b/docs/obs/tool-obsutil/obs_11_0031.html index c8fde61c7..8cb9763f7 100644 --- a/docs/obs/tool-obsutil/obs_11_0031.html +++ b/docs/obs/tool-obsutil/obs_11_0031.html @@ -14,17 +14,17 @@ obs://bucket-test/src1/test7.txt obs://bucket-test/src2/ obs://bucket-test/src2/test8.txtBased on the structure of objects in the bucket, different object listing scenarios require different commands.
-
- To list three objects in bucket bucket-test, the command is as follows:
./obsutil ls obs://bucket-test -limit=3+
- To list three objects in the bucket-test bucket, use the following command:
./obsutil ls obs://bucket-test -limit=3The returned result is listed in lexicographical order by object name and version ID as follows:
obs://bucket-test/test1.txt obs://bucket-test/test2.txt obs://bucket-test/test3.txt-- To list three objects following test3.txt in bucket bucket-test, the command is as follows:
./obsutil ls obs://bucket-test -limit=3 -marker=test3.txt+- To list the three objects that come after test3.txt in the bucket-test bucket, use the following command:
./obsutil ls obs://bucket-test -limit=3 -marker=test3.txtThe returned result is listed in lexicographical order by object name and version ID as follows:
obs://bucket-test/test4.txt obs://bucket-test/test5.txt obs://bucket-test/test6.txt-- To list the files and subdirectories in the root directory of bucket bucket-test in non-recursive mode, that is, files in the subdirectories are not listed, the command is as follows:
./obsutil ls obs://bucket-test -d+- To list the files and subdirectories in the root directory of the bucket-test bucket in non-recursive mode, meaning files inside subdirectories are not listed, use the following command:
./obsutil ls obs://bucket-test -dThe returned result is listed in lexicographical order by object name and version ID as follows:
obs://bucket-test/test1.txt obs://bucket-test/test2.txt diff --git a/docs/obs/tool-obsutil/obs_11_0032.html b/docs/obs/tool-obsutil/obs_11_0032.html index 3d3eb0396..ba833516f 100644 --- a/docs/obs/tool-obsutil/obs_11_0032.html +++ b/docs/obs/tool-obsutil/obs_11_0032.html @@ -11,12 +11,12 @@ obs://bucket-test/src1/ obs://bucket-test/src1/task4.txt uploadid5 obs://bucket-test/src2/ obs://bucket-test/src2/task5.txt uploadid6-
- Run the following command to list three multipart upload tasks in bucket bucket-test:
./obsutil ls obs://bucket-test -m -limit=3+
- To list three multipart upload tasks in the bucket-test bucket, use the following command:
./obsutil ls obs://bucket-test -m -limit=3The returned result is listed in lexicographical order by object name as follows:
obs://bucket-test/task1.txt uploadid1 obs://bucket-test/task1.txt uploadid2 obs://bucket-test/task2.txt uploadid3-- To list the rest multipart upload tasks following uploadid1, the command is as follows:
./obsutil ls obs://bucket-test -m -limit=3 -marker=task1.txt -uploadIdMarker=uploadid1+- To list the remaining multipart upload tasks that follow uploadid1, use the following command:
./obsutil ls obs://bucket-test -m -limit=3 -marker=task1.txt -uploadIdMarker=uploadid1The returned result is listed in lexicographical order by object name and upload ID as follows:
obs://bucket-test/task1.txt uploadid2 obs://bucket-test/task2.txt uploadid3 diff --git a/docs/obs/tool-obsutil/obs_11_0033.html b/docs/obs/tool-obsutil/obs_11_0033.html index ab38b9e9c..6829cb350 100644 --- a/docs/obs/tool-obsutil/obs_11_0033.html +++ b/docs/obs/tool-obsutil/obs_11_0033.html @@ -22,7 +22,7 @@- Using obsutil to Replicate Data Across Regions on the Client Side
-
- Limiting the Upload and Download Rate for obsutil
+- Limiting the Upload and Download Rates for obsutil
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.
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 obsutil logging is enabled, all logs generated during command execution are saved to the obsutil log file for problem analysis and troubleshooting.
- Ensure that the user who runs the command has the read and write permissions on the path.
NOTICE:@@ -370,6 +370,8 @@ faultTolerantMode=<value>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.
Optional
Maximum number of result files of successful or failed batch tasks that can be retained. The default value is 1024.
+CAUTION:This parameter applies only to a single command. When N tasks are run, the current directory will contain up to N × 1024 result files by default.
+@@ -406,7 +408,7 @@ faultTolerantMode=<value> N/A
Optional
Language of the help documents. Options are as follows:
-+
- Chinese
- English
- English
- Chinese
The default value is English.
N/A
diff --git a/docs/obs/tool-obsutil/obs_11_0036.html b/docs/obs/tool-obsutil/obs_11_0036.html index 072fbabba..c5f732631 100644 --- a/docs/obs/tool-obsutil/obs_11_0036.html +++ b/docs/obs/tool-obsutil/obs_11_0036.html @@ -3,11 +3,11 @@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
- In Windows
obsutil cp -recover=xxx [-arcDir=xxx] [-dryRun] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]-- In Linux or macOS
./obsutil cp -recover=xxx [-arcDir=xxx] [-dryRun] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]+-Command Line Structure
- Windows
obsutil cp -recover=xxx [-arcDir=xxx] [-dryRun] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]+- macOS or Linux
./obsutil cp -recover=xxx [-arcDir=xxx] [-dryRun] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil cp -recover 104786c8-27c2-48fc-bc6a-5886596fb0ed -f command to resume the failed upload task.
obsutil cp -recover 104786c8-27c2-48fc-bc6a-5886596fb0ed -f +Examples
- In Windows, run obsutil cp -recover 104786c8-27c2-48fc-bc6a-5886596fb0ed -f to resume a failed upload.
obsutil cp -recover 104786c8-27c2-48fc-bc6a-5886596fb0ed -f Start at 2024-10-08 01:10:07.3809685 +0000 UTC Parallel: 5 Jobs: 5 @@ -41,7 +41,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3Mandatory (additional parameter)
@@ -104,7 +104,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
NOTE:
- You can obtain the task ID after an upload task is complete. You can also retrieve it from the result list file name, where the task ID is the last 36 characters after the .txt suffix is removed.
- 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.
- Optional (additional parameter)
The access control policies that can be specified when uploading files. Possible values are:
+The access control policies that can be specified when uploading files. The value can be:
- private
- public-read
- public-read-write
NOTE:@@ -114,7 +114,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3The preceding three values indicate private read and write, public read, and public read and write.
- Optional (additional parameter)
The storage classes of objects that can be specified when uploading files. Possible values are:
+@@ -122,7 +122,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 The storage classes of objects that can be specified when uploading files. 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.
- Optional (additional parameter)
The customized metadata that can be specified when uploading files. The format is key1:value1#key2:value2#key3:value3.
+@@ -157,7 +157,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 The custom metadata that can be specified during file upload. 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.
Optional (additional parameter)
@@ -177,7 +177,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
+NOTE:The tool ensures that this value is at least 1.
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.
NOTE:
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use ** to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the file to be uploaded does not match the exclude rule, the system then checks whether the file name matches this parameter. If it does, the file is uploaded. If it does not, the file is skipped.
NOTICE:@@ -198,7 +198,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3
- 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.
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.
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 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.
NOTICE:@@ -241,6 +241,8 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3Time in the matching pattern is the UTC time.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0037.html b/docs/obs/tool-obsutil/obs_11_0037.html index 9cc62e3f2..a7ab48c1b 100644 --- a/docs/obs/tool-obsutil/obs_11_0037.html +++ b/docs/obs/tool-obsutil/obs_11_0037.html @@ -3,12 +3,13 @@ Specifies that requester pays is enabled.
+Range:
+requester
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
- In Windows
obsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]-- In Linux or macOS
./obsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]+-Command Line Structure
- Windows
obsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]+- macOS or Linux
./obsutil cp -recover=xxx [-dryRun] [-f] [-u] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil cp -recover=0476929d-9d23-4dc5-b2f8-0a0493f027c5 -f command to copy objects in batches.
obsutil cp -recover=0476929d-9d23-4dc5-b2f8-0a0493f027c5 -f-Start at 2024-10-08 01:10:07.3809685 +0000 UTC +Examples
- In Windows, run obsutil cp -recover=0476929d-9d23-4dc5-b2f8-0a0493f027c5 -f to resume a failed copy task.
obsutil cp -recover=0476929d-9d23-4dc5-b2f8-0a0493f027c5 -f + +Start at 2024-10-08 01:10:07.3809685 +0000 UTC Parallel: 5 Jobs: 5 Threshold: 50.00MB PartSize: auto @@ -41,7 +42,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3Mandatory (additional parameter)
@@ -111,7 +112,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
NOTE:
- You can obtain the task ID after a copy task is complete. You can also retrieve it from the result list file name, where the task ID is the last 36 characters after the .txt suffix is removed.
- 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.
- Optional (additional parameter)
The access control policies for destination objects that can be specified when copying objects. Possible values are:
+The access control policies for destination objects that can be specified when copying objects. The value can be:
- private
- public-read
- public-read-write
NOTE:@@ -121,7 +122,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3The preceding three values indicate private read and write, public read, and public read and write.
- Optional (additional parameter)
The storage classes of the destination objects that can be specified when copying objects. Possible values are:
+@@ -164,7 +165,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 The storage classes of the destination objects that can be specified when copying objects. 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.
Optional (additional parameter)
@@ -175,7 +176,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
+NOTE:The tool ensures that this value is at least 1.
@@ -184,9 +185,9 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
Optional (additional parameter)
@@ -196,7 +197,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be copied does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is copied. If it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
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.
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 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.
NOTICE:@@ -239,6 +240,8 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3
- Time in the matching pattern is the UTC time.
- This matching pattern applies only to objects whose names do not end with a slash (/).
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0038.html b/docs/obs/tool-obsutil/obs_11_0038.html index d3225acc1..fb46b0d47 100644 --- a/docs/obs/tool-obsutil/obs_11_0038.html +++ b/docs/obs/tool-obsutil/obs_11_0038.html @@ -3,11 +3,11 @@ Specifies that requester pays is enabled.
+Range:
+requester
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
- In Windows
obsutil cp -recover=xxx [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]-- In Linux or macOS
./obsutil cp -recover=xxx [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]+-Command Line Structure
- Windows
obsutil cp -recover=xxx [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]+- macOS or Linux
./obsutil cp -recover=xxx [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-clear] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil cp -recover=3066a4b0-4d21-4929-bb84-4829c32cbd0f d:\ -f -r command to download objects in batches.
obsutil cp -recover=3066a4b0-4d21-4929-bb84-4829c32cbd0f -f -r +Examples
- In Windows, run obsutil cp -recover=3066a4b0-4d21-4929-bb84-4829c32cbd0f d:\ -f -r to resume a failed download task.
obsutil cp -recover=3066a4b0-4d21-4929-bb84-4829c32cbd0f -f -r Start at 2024-10-08 01:10:07.3809685 +0000 UTC Parallel: 5 Jobs: 5 @@ -41,7 +41,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3Mandatory (additional parameter)
@@ -65,7 +65,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
NOTE:
- You can obtain the task ID after a download task is complete. You can also retrieve it from the result list file name, where the task ID is the last 36 characters after the .txt suffix is removed.
- 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.
- 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.
+Indicates incremental download. When this parameter is set, each object is compared with the file at the corresponding local path. An object is downloaded only when the file does not exist, the file size differs from the object size, or the file was last modified earlier than the object.
@@ -143,7 +143,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 vlength
@@ -132,7 +132,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3Optional (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.
+NOTE:The tool ensures that this value is at least 1.
@@ -152,9 +152,9 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
Optional (additional parameter)
@@ -164,7 +164,7 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3 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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be downloaded does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is downloaded; if it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
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.
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 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.
NOTICE:@@ -207,6 +207,8 @@ Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3
- Time in the matching pattern is the UTC time.
- This matching pattern applies only to objects whose names do not end with a slash (/).
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0039.html b/docs/obs/tool-obsutil/obs_11_0039.html index a86abf2de..349a74da8 100644 --- a/docs/obs/tool-obsutil/obs_11_0039.html +++ b/docs/obs/tool-obsutil/obs_11_0039.html @@ -2,22 +2,22 @@ Specifies that requester pays is enabled.
+Range:
+requester
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:
-
- 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+
- Run the obsutil config command to configure the AK, SK, and endpoint of the source bucket account.
-
- Windows
obsutil config -interactive -crr+- Linux
./obsutil config -interactive -crr- 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+- Run the obsutil config command to configure the AK, SK, and endpoint of the destination bucket account.
-
- Windows
obsutil config -interactive+- Linux
./obsutil config -interactive- 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 connectivity to ensure that the destination bucket is correctly configured.
- Windows
obsutil ls -s+- macOS or Linux
./obsutil ls -sCheck 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 it contains "Bucket number", the configuration is correct.
- If it contains "Http status [403]", the access keys may be incorrect.
- 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.
- 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+- Run the cp command to specify that cross-region replication method is used to copy objects from the source bucket to the destination bucket.
-
- 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+
- Linux
./obsutil cp obs://src-bucket obs://dst-bucket -f -r -crr![]()
diff --git a/docs/obs/tool-obsutil/obs_11_0040.html b/docs/obs/tool-obsutil/obs_11_0040.html index 744a77142..cbb89f545 100644 --- a/docs/obs/tool-obsutil/obs_11_0040.html +++ b/docs/obs/tool-obsutil/obs_11_0040.html @@ -3,11 +3,11 @@
- 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.
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
- In Windows
obsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-config=xxx]-- In Linux or macOS
./obsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-config=xxx]+-Command Line Structure
- Windows
obsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-config=xxx]+- macOS or Linux
./obsutil chattri obs://bucket [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil chattri obs://bucket-test -acl=private command to change the access control policy of the bucket to private read and write.
obsutil chattri obs://bucket-test -acl=private +Examples
- In Windows, run obsutil chattri obs://bucket-test -acl=private to change the bucket ACL to private read/write.
obsutil chattri obs://bucket-test -acl=private Start at 2024-09-29 07:58:46.0506904 +0000 UTC @@ -34,7 +34,7 @@ Set the acl of bucket [bucket-test] to [private] successfully, request id [04050- Optional (additional parameter)
The default storage class of the bucket. Possible values are:
+@@ -42,7 +42,7 @@ Set the acl of bucket [bucket-test] to [private] successfully, request id [04050 The default storage class of the bucket. 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.
- Optional (additional parameter)
The predefined access control policy of the bucket. Possible values are:
+The predefined access control policy of the bucket. The value can be:
- private
- public-read
- public-read-write
NOTE:@@ -99,6 +99,8 @@ Set the acl of bucket [bucket-test] to [private] successfully, request id [04050The preceding three values indicate private read and write, public read, and public read and write.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0041.html b/docs/obs/tool-obsutil/obs_11_0041.html index a2d02244a..a61ea9954 100644 --- a/docs/obs/tool-obsutil/obs_11_0041.html +++ b/docs/obs/tool-obsutil/obs_11_0041.html @@ -5,20 +5,20 @@ Specifies that requester pays is enabled.
+Range:
+requester
![]()
You can set storage classes only for buckets whose version is 3.0.
Command Line Structure
- In Windows
- Setting properties of a single object
obsutil chattri obs://bucket/key [-meta=aaa:bbb#ccc:ddd] [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]+-Command Line Structure
- Windows
-
- Setting properties of a single object
obsutil chattri obs://bucket/key [-meta=aaa:bbb#ccc:ddd] [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]- Setting properties of objects in batches
obsutil chattri obs://bucket[/key] -r [-f] [-v] [-meta=aaa:bbb#ccc:ddd] [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-o=xxx] [-j=1] [-config=xxx]- In Linux or macOS
- Setting properties of a single object
./obsutil chattri obs://bucket/key [-meta=aaa:bbb#ccc:ddd] [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Setting properties of a single object
./obsutil chattri obs://bucket/key [-meta=aaa:bbb#ccc:ddd] [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-versionId=xxx] [-fr] [-o=xxx] [-config=xxx]- Setting properties of objects in batches
./obsutil chattri obs://bucket[/key] -r [-f] [-v] [-meta=aaa:bbb#ccc:ddd] [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-o=xxx] [-j=1] [-config=xxx]Examples
- Take the Windows OS as an example, run the obsutil chattri obs://bucket-test/key -acl=public-read command to set the access permission to an object to public read.
obsutil chattri obs://bucket-test/key -acl=public-read +Examples
-
- In Windows, run obsutil chattri obs://bucket-test/key -acl=public-read to set the object ACL to public read.
obsutil chattri obs://bucket-test/key -acl=public-read Start at 2024-09-30 08:17:15.5572914 +0000 UTC Set the acl of object [key] in the bucket [bucket-test] to [public-read] successfully, request id [04050000016836DDFA73B2B5320E2651]
- Take the Windows OS as an example, run the obsutil chattri obs://bucket-test -r -f -acl=public-read command to set the access permission to all objects in the bucket to public read.
obsutil chattri obs://bucket-test -r -f -acl=public-read +
- In Windows, run obsutil chattri obs://bucket-test -r -f -acl=public-read to set the ACL of all objects in the bucket to public read.
obsutil chattri obs://bucket-test -r -f -acl=public-read Start at 2024-09-30 08:18:03.105373 +0000 UTC [------------------------------------------------] 100.00% tps:155.15 5/5 233ms @@ -75,7 +75,7 @@ Task id: 9d7f73ff-f747-4fdd-9b2a-815ba2dc3b07- Optional (additional parameter)
The storage class of an object. Possible values are:
+@@ -84,7 +84,7 @@ Task id: 9d7f73ff-f747-4fdd-9b2a-815ba2dc3b07 The storage class of an object. 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.
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.
- Optional (additional parameter)
The predefined access control policy of an object. Possible values are:
+@@ -166,7 +166,7 @@ Task id: 9d7f73ff-f747-4fdd-9b2a-815ba2dc3b07 The predefined access control policy of an object. The value can be:
- private
- public-read
- public-read-write
- bucket-owner-full-control
Optional when setting properties of objects in batches (additional parameter)
@@ -191,6 +191,8 @@ Task id: 9d7f73ff-f747-4fdd-9b2a-815ba2dc3b07 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.
+NOTE:The tool ensures that this value is at least 1.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0042.html b/docs/obs/tool-obsutil/obs_11_0042.html index cd9a868f1..b4cf05214 100644 --- a/docs/obs/tool-obsutil/obs_11_0042.html +++ b/docs/obs/tool-obsutil/obs_11_0042.html @@ -4,17 +4,17 @@ Specifies that requester pays is enabled.
+Range:
+requester
-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:
- "Incremental" means that the local source files are compared with their counterparts in the target bucket and only those with content changes are uploaded.
- "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.
-![]()
- Do not change the local file or folder during synchronization. Otherwise, the synchronization may fail or data may be inconsistent.
- During synchronous upload, each file is compared with the object at the corresponding path in the bucket. A file is uploaded only when the object does not exist, the object size differs from the file size, or the object was last modified earlier than the file.
Command Line Structure
- In Windows
- Uploading a file synchronously
obsutil sync file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-config=xxx]+-Command Line Structure
- Windows
-
- Uploading a file synchronously
obsutil sync file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-config=xxx]- Uploading a folder synchronously
obsutil sync folder_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-at] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- In Linux or macOS
- Uploading a file synchronously
./obsutil sync file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-config=xxx]+- macOS or Linux
- Uploading a file synchronously
./obsutil sync file_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-vlength] [-vmd5] [-p=1] [-threshold=5248800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-o=xxx] [-cpd=xxx] [-fr] [-config=xxx]- Uploading a folder synchronously
./obsutil sync folder_url obs://bucket[/key] [-arcDir=xxx] [-dryRun] [-link] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-at] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil sync d:\temp\test.txt obs://bucket-test/key command to synchronously upload a file.
obsutil sync d:\temp\test.txt obs://bucket-test/key +-Examples
-
- In Windows, run obsutil sync d:\temp\test.txt obs://bucket-test/key to synchronously upload a file.
obsutil sync d:\temp\test.txt obs://bucket-test/key Start at 2024-09-25 04:48:10.1147483 +0000 UTC @@ -26,7 +26,7 @@ CheckpointDir: C:\Users\Administrator\.obsutil_checkpoint [====================================================] 100.00% 1.68 MB/s 8.46MB/8.46MB 5s Upload successfully, 8.46MB, d:\temp\test.txt --> obs://bucket-test/key, cost [55], status [200], request id [00000192421F4E224012B8470C0CCCDC]
- Take the Windows OS as an example. Run the obsutil sync d:\temp obs://bucket-test/temp command to synchronously upload a folder.
obsutil sync d:\temp obs://bucket-test/temp +
- In Windows, run obsutil sync d:\temp obs://bucket-test/temp to synchronously upload a folder.
obsutil sync d:\temp obs://bucket-test/temp Start at 2024-09-25 04:48:10.1147483 +0000 UTC @@ -82,7 +82,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed@@ -155,7 +155,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed 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.
- During a synchronous file upload, if this parameter is left blank, the file is uploaded to the bucket's root directory, and the object name is the same as the file name. If the value ends with a slash (/), it is used as the object name prefix during the upload, and the object name becomes the value plus the file name. If the value does not end with a slash (/), the file is uploaded using the value as the full object name.
- During a synchronous folder upload, if this parameter is left blank, all objects in the bucket's root directory are synchronized with the contents of the local folder. If this parameter is set, the objects whose name prefix is the specified parameter value are synchronized with the contents of 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.
- Optional (additional parameter)
The access control policies that can be specified when synchronously uploading files. Possible values are:
+The access control policies that can be specified when synchronously uploading files. The value can be:
- private
- public-read
- public-read-write
- bucket-owner-full-control
NOTE:@@ -165,7 +165,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0edThe preceding four values indicate private read and write, public read, public read and write, and bucket owner full control.
- Optional (additional parameter)
The storage classes of objects that can be specified when synchronously uploading files. Possible values are:
+@@ -173,7 +173,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed The storage classes of objects that can be specified when synchronously uploading files. 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.
- Optional (additional parameter)
The customized metadata that can be specified when uploading files. The format is key1:value1#key2:value2#key3:value3.
+@@ -201,7 +201,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed The custom metadata that can be specified during file upload. 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.
Optional for synchronously uploading a folder (additional parameter)
@@ -221,7 +221,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed 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.
+NOTE:The tool ensures that this value is at least 1.
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.
NOTE:
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the file to be uploaded does not match the exclude rule, the system then checks whether the file name matches this parameter. If it does, the file is uploaded. If it does not, the file is skipped.
NOTICE:@@ -249,7 +249,7 @@ Task id: 104786c8-27c2-48fc-bc6a-5886596fb0ed
- 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.
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.
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 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.
NOTICE:diff --git a/docs/obs/tool-obsutil/obs_11_0043.html b/docs/obs/tool-obsutil/obs_11_0043.html index 76b8fb618..52746bd6f 100644 --- a/docs/obs/tool-obsutil/obs_11_0043.html +++ b/docs/obs/tool-obsutil/obs_11_0043.html @@ -6,11 +6,11 @@Time in the matching pattern is the UTC time.
![]()
- 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
- In Windows
obsutil sync obs://bucket[/key] folder_url [-tempFileDir=xxx] [-dryRun] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]-- In Linux or macOS
./obsutil sync obs://bucket[/key] folder_url [-tempFileDir=xxx] [-dryRun] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]+-Command Line Structure
- Windows
obsutil sync obs://bucket[/key] folder_url [-tempFileDir=xxx] [-dryRun] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]+- macOS or Linux
./obsutil sync obs://bucket[/key] folder_url [-tempFileDir=xxx] [-dryRun] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil sync obs://bucket-test/temp d:\ temp command to download objects synchronously.
obsutil sync obs://bucket-test/temp d:\temp +Examples
- In Windows, run obsutil sync obs://bucket-test/temp d:\temp to download objects synchronously.
obsutil sync obs://bucket-test/temp d:\temp Start at 2024-09-30 08:53:22.327072 +0000 UTC Parallel: 5 Jobs: 5 @@ -138,7 +138,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0fOptional for downloading objects in batches (additional parameter)
@@ -149,7 +149,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f 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.
+NOTE:The tool ensures that this value is at least 1.
@@ -158,9 +158,9 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f 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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
Optional for downloading objects in batches (additional parameter)
@@ -170,7 +170,7 @@ Task id: 3066a4b0-4d21-4929-bb84-4829c32cbd0f 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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be downloaded does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is downloaded; if it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
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.
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 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.
NOTICE:diff --git a/docs/obs/tool-obsutil/obs_11_0044.html b/docs/obs/tool-obsutil/obs_11_0044.html index 78a53cd77..cf5362905 100644 --- a/docs/obs/tool-obsutil/obs_11_0044.html +++ b/docs/obs/tool-obsutil/obs_11_0044.html @@ -6,13 +6,13 @@
- Time in the matching pattern is the UTC time.
- This matching pattern applies only to objects whose names do not end with a slash (/).
![]()
- 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
- In Windows
obsutil sync obs://srcbucket[/key] obs://dstbucket[/dest] [-dryRun] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]-- In Linux or macOS
./obsutil sync obs://srcbucket[/key] obs://dstbucket[/dest] [-dryRun] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]+Command Line Structure
- Windows
obsutil sync obs://srcbucket[/key] obs://dstbucket[/dest] [-dryRun] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]+- macOS or Linux
./obsutil sync obs://srcbucket[/key] obs://dstbucket[/dest] [-dryRun] [-crr] [-vlength] [-vmd5] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]-![]()
The source path and destination path cannot be the same or nested when synchronously copying objects.
Examples
- Take the Windows OS as an example. Run the obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp/ command to synchronously copy objects.
obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp +Examples
- In Windows, run obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp/ to synchronously copy objects.
obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp Start at 2024-09-25 04:48:10.1147483 +0000 UTC @@ -135,7 +135,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5- Optional (additional parameter)
The access control policies for destination objects that can be specified when copying objects. Possible values are:
+The access control policies for destination objects that can be specified when copying objects. The value can be:
- private
- public-read
- public-read-write
- bucket-owner-full-control
NOTE:@@ -145,7 +145,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5The preceding four values indicate private read and write, public read, public read and write, and bucket owner full control.
- Optional (additional parameter)
The storage classes of the destination objects that can be specified when copying objects. Possible values are:
+@@ -183,7 +183,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 The storage classes of the destination objects that can be specified when copying objects. 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.
@@ -194,7 +194,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
+NOTE:The tool ensures that this value is at least 1.
@@ -203,9 +203,9 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
Optional for copying objects in batches (additional parameter)
@@ -215,7 +215,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be copied does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is copied. If it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
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.
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 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.
NOTICE:diff --git a/docs/obs/tool-obsutil/obs_11_0045.html b/docs/obs/tool-obsutil/obs_11_0045.html index 49a0a2df7..54bd42620 100644 --- a/docs/obs/tool-obsutil/obs_11_0045.html +++ b/docs/obs/tool-obsutil/obs_11_0045.html @@ -3,15 +3,15 @@
- Time in the matching pattern is the UTC time.
- This matching pattern applies only to objects whose names do not end with a slash (/).
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
- In Windows
- Archiving to a local PC
obsutil archive [file_or_folder_url] [-config=xxx]+-Command Line Structure
- Windows
-
- Archiving to a local PC
obsutil archive [file_or_folder_url] [-config=xxx]- Archiving to a specified bucket
obsutil archive obs://bucket[/key] [-config=xxx]- In Linux or macOS
- Archiving to a local PC
obsutil archive [file_or_folder_url] [-config=xxx]+- macOS or Linux
- Archiving to a local PC
obsutil archive [file_or_folder_url] [-config=xxx]- Archiving to a specified bucket
obsutil archive obs://bucket[/key] [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil archive command to archive log files to the same directory where the tool is executed.
obsutil archive +Examples
- In Windows, run obsutil archive to archive log files to the same directory where the tool is executed.
obsutil archive [----------------------------------------------------------] 100.00% 15/15 35ms Succeed to archive log files to [D:\obsutil\obsutil_log.zip]diff --git a/docs/obs/tool-obsutil/obs_11_0046.html b/docs/obs/tool-obsutil/obs_11_0046.html index 7984557f5..1234764d0 100644 --- a/docs/obs/tool-obsutil/obs_11_0046.html +++ b/docs/obs/tool-obsutil/obs_11_0046.html @@ -15,14 +15,14 @@ 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.
-
- To synchronize the test3.txt file in the local src1 folder to the root directory of bucket bucket-test, the command is as follows:
./obsutil sync /src1/test3.txt obs://bucket-test+
- To synchronize the test3.txt file from the local src1 folder to the root directory of the bucket-test bucket, use the following command:
./obsutil sync /src1/test3.txt obs://bucket-testAfter the synchronization is successful, the test3.txt file is directly uploaded to the bucket because there is no test3.txt in bucket bucket-test. Then, objects in the bucket are as follows:
obs://bucket-test/test3.txt obs://bucket-test/src1/ obs://bucket-test/src1/src2/ obs://bucket-test/src1/src2/test1.txt obs://bucket-test/src1/src3/-- To synchronize all files and subfolders in the local src1 folder to the src1 folder in bucket bucket-test, the command is as follows:
./obsutil sync /src1 obs://bucket-test/src1+- To synchronize all files and subfolders from the local src1 folder to the src1 folder in the bucket-test bucket, use the following command:
./obsutil sync /src1 obs://bucket-test/src1After the synchronization, the objects in the bucket are as follows:
obs://bucket-test/src1/ obs://bucket-test/src1/test3.txt diff --git a/docs/obs/tool-obsutil/obs_11_0047.html b/docs/obs/tool-obsutil/obs_11_0047.html index c542cee75..e626acb61 100644 --- a/docs/obs/tool-obsutil/obs_11_0047.html +++ b/docs/obs/tool-obsutil/obs_11_0047.html @@ -13,7 +13,7 @@ obs://bucket-test/src1/src3/└── src1 └── test3.txtBased on the structure of the preceding local folder and objects in the bucket, different synchronous download scenarios require different commands.
-
- To synchronize all files and subfolders in the src1 folder in bucket bucket-test to the local src1 folder, the command is as follows:
./obsutil sync obs://bucket-test/src1 /src1+
- To synchronize all files and subfolders from the src1 folder in the bucket-test bucket to the local src1 folder, use the following command:
./obsutil sync obs://bucket-test/src1 /src1After the synchronization is successful, the following files are generated in the local src1 folder:
└── src1 ├── src2 diff --git a/docs/obs/tool-obsutil/obs_11_0048.html b/docs/obs/tool-obsutil/obs_11_0048.html index 8b8cfaf1e..ac6be4c4d 100644 --- a/docs/obs/tool-obsutil/obs_11_0048.html +++ b/docs/obs/tool-obsutil/obs_11_0048.html @@ -13,7 +13,7 @@ obs://bucket-src/src1/src3/obs://bucket-dest/src1/ obs://bucket-dest/src1/test3.txtBased on the structure of objects in the bucket, different synchronous copy scenarios require different commands.
-
- To synchronize all files and subfolders in the src1 folder in bucket bucket-src to the src1 folder in bucket bucket-dest, the command is as follows:
./obsutil sync obs://bucket-src/src1 obs://bucket-dest/src1+
- To synchronize all files and subfolders from the src1 folder in the bucket-src bucket to the src1 folder in the bucket-dest bucket, use the following command:
./obsutil sync obs://bucket-src/src1 obs://bucket-dest/src1After the synchronous copy is complete, the objects in the destination bucket bucket-dest are as follows:
obs://bucket-dest/src1/ obs://bucket-dest/src1/test3.txt diff --git a/docs/obs/tool-obsutil/obs_11_0049.html b/docs/obs/tool-obsutil/obs_11_0049.html index c88112628..4d37818d6 100644 --- a/docs/obs/tool-obsutil/obs_11_0049.html +++ b/docs/obs/tool-obsutil/obs_11_0049.html @@ -17,21 +17,21 @@- 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-- 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.
+- Run the vi /etc/profile command. Press i to enter the Insert mode and add export PATH=$PATH:/obsutil at the end of the file. Then press Esc to exit the editing mode and type :wq! and press Enter to save the changes and exit.
-![]()
Skip this step if the new line already exists in the /etc/profile file.
- 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.
- Check whether the configuration is successful: Run the obsutil help command in any directory. If the help information is displayed, the configuration is successful.
+- Run the echo $PATH command to query the current environment variables. If the query result includes :/obsutil, indicating that the /obsutil environment variable already exists, go to the next step. Otherwise, run the source /etc/profile command.
- 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
- 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-- How do I delete obsutil commands after setting them as built-in commands?
- In Windows:
- Run the where obsutil command to locate the path of obsutil commands.
where obsutil +- How do I delete obsutil commands after setting them as built-in commands?
- Windows:
-
- Run the where obsutil command to locate the path of obsutil commands.
where obsutil E:\tools\bin\obsutil.exe- 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:
- Run the which obsutil command to locate the path of obsutil commands.
which obsutil +- macOS or Linux
- Run the which obsutil command to locate the path of obsutil commands.
which obsutil /obsutil/obsutil- 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.
diff --git a/docs/obs/tool-obsutil/obs_11_0050.html b/docs/obs/tool-obsutil/obs_11_0050.html index 1f6df61b6..50f2bbca2 100644 --- a/docs/obs/tool-obsutil/obs_11_0050.html +++ b/docs/obs/tool-obsutil/obs_11_0050.html @@ -5,15 +5,15 @@-![]()
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
- In Windows
- Creating a folder in a specified bucket
obsutil mkdir obs://bucket/folder[/subfolder1/subfolder2] [-config=xxx]+-Command Line Structure
- Windows
-
- Creating a folder in a specified bucket
obsutil mkdir obs://bucket/folder[/subfolder1/subfolder2] [-config=xxx]- Creating a folder in the local file system
obsutil mkdir folder_url [-config=xxx]- In Linux or macOS
- Creating a folder in a specified bucket
./obsutil mkdir obs://bucket/folder[/subfolder1/subfolder2] [-config=xxx]+- macOS or Linux
- Creating a folder in a specified bucket
./obsutil mkdir obs://bucket/folder[/subfolder1/subfolder2] [-config=xxx]- Creating a folder in the local file system
./obsutil mkdir folder_url [-config=xxx]Examples
- Take the Windows OS as an example. Run the obsutil mkdir obs://bucket-test/folder1/folder2 command to create a folder in a bucket.
obsutil mkdir obs://bucket-test/folder1/folder2 +Examples
- In Windows, run obsutil mkdir obs://bucket-test/folder1/folder2 to create a folder in the bucket.
obsutil mkdir obs://bucket-test/folder1/folder2 The bucket [bucket-test] does not support POSIX, create folder(s) step by step Create folder [obs://bucket-test/folder1/] successfully, request id [0000016979E1D23C860BB3D8E4577C5E] @@ -71,6 +71,8 @@ Create folder [obs://bucket-test/folder1/folder2] successfully, request id [0000Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0051.html b/docs/obs/tool-obsutil/obs_11_0051.html index 4eb30365e..ae259eaef 100644 --- a/docs/obs/tool-obsutil/obs_11_0051.html +++ b/docs/obs/tool-obsutil/obs_11_0051.html @@ -3,10 +3,10 @@ Specifies that requester pays is enabled.
+Range:
+requester
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
- In Windows
- Generating the download link of a single object
obsutil sign obs://bucket/key [-e=300] [-config=xxx]+Command Line Structure
- Windows
-
- Generating the download link of a single object
obsutil sign obs://bucket/key [-e=300] [-config=xxx]- Generating the download links of objects in batches by object name prefix
obsutil sign obs://bucket[/key] -r [-e=300] [-timeRange=time1-time2] [-include=*.xxx] [-exclude=*.xxx] [-o=xxx] [-config=xxx]- In Linux or macOS
@@ -69,7 +69,7 @@ Task id: af4dc692-6a88-4541-8156-ff1a889d2288
- Generating the download link of a single object
./obsutil sign obs://bucket/key [-e=300] [-config=xxx]+- macOS or Linux
- Generating the download link of a single object
./obsutil sign obs://bucket/key [-e=300] [-config=xxx]- Generating the download links of objects in batches by object name prefix
./obsutil sign obs://bucket[/key] -r [-e=300] [-timeRange=time1-time2] [-include=*.xxx] [-exclude=*.xxx] [-o=xxx] [-config=xxx]@@ -78,9 +78,9 @@ Task id: af4dc692-6a88-4541-8156-ff1a889d2288 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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
Optional when generating download links of objects in batches (additional parameter)
@@ -90,7 +90,7 @@ Task id: af4dc692-6a88-4541-8156-ff1a889d2288 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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be downloaded does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is downloaded; if it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
@@ -116,6 +116,8 @@ Task id: af4dc692-6a88-4541-8156-ff1a889d2288 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.
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 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.
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0052.html b/docs/obs/tool-obsutil/obs_11_0052.html index 03d6a397b..bd10dd596 100644 --- a/docs/obs/tool-obsutil/obs_11_0052.html +++ b/docs/obs/tool-obsutil/obs_11_0052.html @@ -33,7 +33,7 @@ Specifies that requester pays is enabled.
+Range:
+requester
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.
+For the upload, download, and copy commands, obsutil provides the -p and -ps parameters to control the number of concurrent tasks and part size, respectively. obsutil then executes the tasks according to the values you specified. 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)
diff --git a/docs/obs/tool-obsutil/obs_11_0053.html b/docs/obs/tool-obsutil/obs_11_0053.html index 78d2709f2..fbe2047d9 100644 --- a/docs/obs/tool-obsutil/obs_11_0053.html +++ b/docs/obs/tool-obsutil/obs_11_0053.html @@ -5,17 +5,17 @@![]()
- 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
- In Windows
- Moving a single object
obsutil mv obs://srcbucket/key obs://dstbucket/[dest] [-dryRun] [-u] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]+Command Line Structure
- Windows
-
- Moving a single object
obsutil mv obs://srcbucket/key obs://dstbucket/[dest] [-dryRun] [-u] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]- Moving objects in batches
obsutil mv obs://srcbucket[/key] obs://dstbucket[/dest] -r [-dryRun] [-f] [-flat] [-u] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- In Linux or macOS
-
- Moving a single object
./obsutil mv obs://srcbucket/key obs://dstbucket/[dest] [-dryRun] [-u] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Moving a single object
./obsutil mv obs://srcbucket/key obs://dstbucket/[dest] [-dryRun] [-u] [-p=1] [-threshold=52428800] [-versionId=xxx] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-cpd=xxx] [-fr] [-o=xxx] [-config=xxx]- Moving objects in batches
./obsutil mv obs://srcbucket[/key] obs://dstbucket[/dest] -r [-dryRun] [-f] [-flat] [-u] [-j=1] [-p=1] [-threshold=52428800] [-acl=xxx] [-sc=xxx] [-meta=aaa:bbb#ccc:ddd] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]
-+
- 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.
![]()
- The source and destination paths cannot be the same.
- The source and destination paths cannot be nested during batch moves.
- Batch object moves are not supported for parallel file systems.
Examples
- Take the Windows OS as an example. Run the obsutil mv obs://bucket-test/key obs://bucket-test2 command to move a single object.
obsutil mv obs://bucket-test/key obs://bucket-test2 +Examples
-
- In Windows, run obsutil mv obs://bucket-test/key obs://bucket-test2 to move a single object.
obsutil mv obs://bucket-test/key obs://bucket-test2 Start at 2024-09-30 08:36:01.3934921 +0000 UTC Parallel: 5 Jobs: 5 @@ -27,7 +27,7 @@ Waiting for the copied key to be completed on server side. Move successfully, 19B, obs://bucket-test/key --> obs://bucket-test2/key, cost [1815], status [200], request id [00000192421282AC401423183A8B83A1]
- Take the Windows OS as an example. Run the obsutil mv obs://bucket-test/temp/ obs://bucket-test2 -f -r command to move objects in batches.
obsutil mv obs://bucket-test/temp/ obs://bucket-test2 -f -r +
- In Windows, run obsutil mv obs://bucket-test/temp/ obs://bucket-test2 -f -r to move objects in batches.
obsutil mv obs://bucket-test/temp/ obs://bucket-test2 -f -r Start at 2024-09-30 08:37:32.2454905 +0000 UTC Parallel: 5 Jobs: 5 @@ -144,7 +144,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5- Optional (additional parameter)
The access control policies for destination objects that can be specified when moving objects. Possible values are:
+The access control policies for destination objects that can be specified when moving objects. The value can be:
- private
- public-read
- public-read-write
- bucket-owner-full-control
NOTE:@@ -154,7 +154,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5The preceding four values indicate private read and write, public read, public read and write, and bucket owner full control.
- Optional (additional parameter)
The storage classes of the destination objects that can be specified when moving objects. Possible values are:
+@@ -163,7 +163,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 The storage classes of the destination objects that can be specified when moving objects. 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.
Optional (additional parameter)
@@ -204,7 +204,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
+NOTE:The format example above indicates that the destination objects contain three groups of custom metadata: key1:value1, key2:value2, and key3:value3.
Optional for moving objects in batches (additional parameter)
@@ -215,7 +215,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
+NOTE:The tool ensures that this value is at least 1.
@@ -224,9 +224,9 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
Optional for moving objects in batches (additional parameter)
@@ -236,7 +236,7 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5 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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be moved does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is moved. If it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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.
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.
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 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.
NOTICE:@@ -280,6 +280,8 @@ Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5
- Time in the matching pattern is the UTC time.
- This matching pattern applies only to objects whose names do not end with a slash (/).
Optional (additional parameter)
diff --git a/docs/obs/tool-obsutil/obs_11_0055.html b/docs/obs/tool-obsutil/obs_11_0055.html index 9788467b3..bba261d0d 100644 --- a/docs/obs/tool-obsutil/obs_11_0055.html +++ b/docs/obs/tool-obsutil/obs_11_0055.html @@ -11,7 +11,7 @@ Specifies that requester pays is enabled.
+Range:
+requester
- 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.
+obsutil log files include both tool logs and SDK logs. The tool logs record success and exception information while obsutil is running. The SDK logs record success and exception information when obsutil sends requests to OBS.
diff --git a/docs/obs/tool-obsutil/obs_11_0058.html b/docs/obs/tool-obsutil/obs_11_0058.html index b2062e7ce..d90112913 100644 --- a/docs/obs/tool-obsutil/obs_11_0058.html +++ b/docs/obs/tool-obsutil/obs_11_0058.html @@ -1,7 +1,7 @@ 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:
+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 the following methods to obtain the return code of the latest execution result and then analyze and rectify the fault based on it:
@@ -69,7 +69,7 @@
- In the macOS or Linux OS, run the following command to obtain the return code of the latest execution result:
echo $?- In the Windows OS, run the following command to obtain the return code of the latest execution result:
echo %errorlevel%- The operation is not supported.
Running the chattri command to change object properties.
+Running the chattri command to change object properties is not supported.
diff --git a/docs/obs/tool-obsutil/obs_11_0063.html b/docs/obs/tool-obsutil/obs_11_0063.html index bf767fe99..2726be155 100644 --- a/docs/obs/tool-obsutil/obs_11_0063.html +++ b/docs/obs/tool-obsutil/obs_11_0063.html @@ -3,10 +3,10 @@ 8
diff --git a/docs/obs/tool-obsutil/obs_11_0059.html b/docs/obs/tool-obsutil/obs_11_0059.html index ca291c964..b151e8af7 100644 --- a/docs/obs/tool-obsutil/obs_11_0059.html +++ b/docs/obs/tool-obsutil/obs_11_0059.html @@ -20,7 +20,7 @@ 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.
![]()
- 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 tightly coupled. Using the multipart algorithm automatically enables resumable data transfer for the task.
diff --git a/docs/obs/tool-obsutil/obs_11_0061.html b/docs/obs/tool-obsutil/obs_11_0061.html index da3f0d286..2490356a5 100644 --- a/docs/obs/tool-obsutil/obs_11_0061.html +++ b/docs/obs/tool-obsutil/obs_11_0061.html @@ -2,7 +2,7 @@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:
-
- Click the login username in the upper right corner and choose My Credentials from the drop-down list.
- Choose Access Keys.
- Click Create Access Key.
- Enter an access key description (optional) and click OK.
- 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.
+
- Log in to the console.
- Click the login username in the upper right corner and choose My Credentials from the drop-down list.
- Choose Access Keys.
- Click Create Access Key.
- Enter an access key description (optional) and click OK.
- 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.
- Click Download to obtain the access key file.
diff --git a/docs/obs/tool-obsutil/obs_11_0062.html b/docs/obs/tool-obsutil/obs_11_0062.html index b9b620777..fe3408eac 100644 --- a/docs/obs/tool-obsutil/obs_11_0062.html +++ b/docs/obs/tool-obsutil/obs_11_0062.html @@ -3,11 +3,11 @@![]()
Keep AKs and SKs properly to prevent information leakage.
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
- In Windows
obsutil create-share obs://bucket[/prefix] [-ac=xxx] [-vp=xxx] [-dst=xxx] [-config=xxx]-- In Linux or macOS
./obsutil create-share obs://bucket[/prefix] [-ac=xxx] [-vp=xxx] [-dst=xxx] [-config=xxx]+-Command Line Structure
- Windows
obsutil create-share obs://bucket[/prefix] [-ac=xxx] [-vp=xxx] [-dst=xxx] [-config=xxx]+- macOS or Linux
./obsutil create-share obs://bucket[/prefix] [-ac=xxx] [-vp=xxx] [-dst=xxx] [-config=xxx]Examples
- In Windows, you can run the obsutil create-share obs://bucket/test/ -ac=123456 -vp=1m command to create an authorization code that is valid within one month.
obsutil create-share obs://bucket/test/ -ac=123456 -vp=1m +Examples
- In Windows, run obsutil create-share obs://bucket/test/ -ac=123456 -vp=1m to create an authorization code that is valid for one month.
obsutil create-share obs://bucket/test/ -ac=123456 -vp=1m Authorization Code: token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx @@ -81,6 +81,8 @@ Sat, 26 Oct 2019 11:28:10 GMT +0800Optional (additional parameter)
Specifies that requester pays is enabled.
+Range:
+requester
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
- In Windows
- Enter an authorization code directly.
obsutil share-ls authorization_code [-ac=xxx] [-prefix=xxx] [-s] [-d] [-marker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]+Command Line Structure
- Windows
-
- Enter an authorization code directly.
obsutil share-ls authorization_code [-ac=xxx] [-prefix=xxx] [-s] [-d] [-marker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]- Use the file path to pass an authorization code.
obsutil share-ls file://authorization_code_file_url [-ac=xxx] [-prefix=xxx] [-s] [-d] [-marker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]- In Linux or macOS
@@ -108,7 +108,7 @@ The authorized prefix is [test/]
- Enter an authorization code directly.
./obsutil share-ls authorization_code [-ac=xxx] [-prefix=xxx] [-s] [-d] [-marker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]+- macOS or Linux
- Enter an authorization code directly.
./obsutil share-ls authorization_code [-ac=xxx] [-prefix=xxx] [-s] [-d] [-marker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]- Use the file path to pass an authorization code.
./obsutil share-ls file://authorization_code_file_url [-ac=xxx] [-prefix=xxx] [-s] [-d] [-marker=xxx] [-bf=xxx] [-limit=1] [-config=xxx]- Optional (additional parameter)
The display formats of bytes in the listing result. Possible values are:
+The display formats of bytes in the listing result. The value can be:
- human-readable
- raw
NOTE:diff --git a/docs/obs/tool-obsutil/obs_11_0064.html b/docs/obs/tool-obsutil/obs_11_0064.html index b3a33fccd..1eb417b90 100644 --- a/docs/obs/tool-obsutil/obs_11_0064.html +++ b/docs/obs/tool-obsutil/obs_11_0064.html @@ -5,12 +5,12 @@If this parameter is not configured, the display format of bytes in the result is determined by the humanReadableFormat parameter in the configuration file.
-![]()
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
- In Windows
- Enter the authorization code to download a single object.
obsutil share-cp authorization_code file_or_folder_url -key=xxx [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]+Command Line Structure
- Windows
-
- Enter the authorization code to download a single object.
obsutil share-cp authorization_code file_or_folder_url -key=xxx [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]- Use the file path to transfer the authorization code and download a single object.
obsutil share-cp file://authorization_code_file_url file_or_folder_url -key=xxx [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]- Enter the authorization code to download objects in a batch.
obsutil share-cp authorization_code folder_url -r [-key=xxx] [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5] [-flat] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- Use the file path to transfer the authorization code and download objects in a batch.
obsutil share-cp file://authorization_code_file_url folder_url -r [-key=xxx] [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5] [-flat] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]- In Linux or macOS
- Enter the authorization code to download a single object.
./obsutil share-cp authorization_code file_or_folder_url -key=xxx [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]+- macOS or Linux
- Enter the authorization code to download a single object.
./obsutil share-cp authorization_code file_or_folder_url -key=xxx [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]- Use the file path to transfer the authorization code and download a single object.
./obsutil share-cp file://authorization_code_file_url file_or_folder_url -key=xxx [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-u] [-vlength] [-vmd5] [-p=1] [-threshold=52428800] [-ps=auto] [-cpd=xxx][-fr] [-o=xxx] [-config=xxx]
- Enter the authorization code to download objects in a batch.
./obsutil share-cp authorization_code folder_url -r [-key=xxx] [-ac=xxx] [-dryRun] [-tempFileDir=xxx] [-f] [-u] [-vlength] [-vmd5] [-flat] [-j=1] [-p=1] [-threshold=52428800] [-ps=auto] [-include=*.xxx] [-exclude=*.xxx] [-timeRange=time1-time2] [-mf] [-o=xxx] [-cpd=xxx] [-config=xxx]@@ -85,7 +85,7 @@ The authorized prefix is [test/]- folder_url
Mandatory for downloading objects in a batch
+Mandatory for downloading objects in batches
@@ -93,14 +93,14 @@ The authorized prefix is [test/] The local folder path
key
Mandatory for downloading an object (additional parameter)
-Optional for downloading objects in a batch
+Optional for downloading objects in batches
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.
NOTE:
- If this parameter is specified, objects starting with this prefix are listed.
- For batch downloads, if this parameter is configured and the flat parameter is not, the name of the downloaded file includes the parent object's name prefix. If flat is configured, the name of the downloaded file does not include the parent object's name prefix.
NOTICE:@@ -156,7 +156,7 @@ The authorized prefix is [test/]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.
- 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.
+Indicates incremental download. When this parameter is set, each object is compared with the file at the corresponding local path. An object is downloaded only when the file does not exist, the file size differs from the object size, or the file was last modified earlier than the object.
vlength
@@ -213,49 +213,49 @@ The authorized prefix is [test/]- f
Optional for downloading objects in a batch (additional parameter)
+Optional for downloading objects in batches (additional parameter)
Runs in force mode.
- j
Optional for downloading objects in a batch (additional parameter)
+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.
+NOTE:The tool ensures that this value is at least 1.
- exclude
Optional for downloading objects in a batch (additional parameter)
+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.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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)
+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.
NOTE:-
- The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.
- You can use \* to represent * and \? to represent ?.
- The exclude rule is applied first. If the name of the object to be downloaded does not match the exclude rule, the system then checks whether the object name matches this parameter. If it does, the object is downloaded; if it does not, 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 include parameters can be specified, for example, -include=*.xxx -include=*.xxx.
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 object's absolute path, which includes the object name prefix and the object name starting from the root directory. For example, if an object's path in the bucket is obs://bucket/src1/src2/test.txt, its absolute path 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)
+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.
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 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.
NOTICE:diff --git a/docs/obs/tool-obsutil/obs_11_0065.html b/docs/obs/tool-obsutil/obs_11_0065.html index a05e78969..3c8cc8bf7 100644 --- a/docs/obs/tool-obsutil/obs_11_0065.html +++ b/docs/obs/tool-obsutil/obs_11_0065.html @@ -11,7 +11,7 @@ obs://bucket-test/src1/ obs://bucket-test/src1/task4.txt uploadid5 obs://bucket-test/src2/ obs://bucket-test/src2/task5.txt uploadid6 -
- Time in the matching pattern is the UTC time.
- This matching pattern applies only to objects whose names do not end with a slash (/).
You can run the following command to delete all fragments of multipart upload tasks in the bucket at a time:
+You can run the following command to delete all fragments of multipart upload tasks in the bucket at once:
./obsutil abort obs://bucket-test -r -fdiff --git a/docs/obs/tool-obsutil/obs_11_0066.html b/docs/obs/tool-obsutil/obs_11_0066.html index 1ff862052..5b558e9f9 100644 --- a/docs/obs/tool-obsutil/obs_11_0066.html +++ b/docs/obs/tool-obsutil/obs_11_0066.html @@ -24,7 +24,7 @@ Options: -config=xxx the path to the custom config file when running this command- 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.
![]()
- 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 currently supported languages are English and Chinese, with English as the default.
diff --git a/docs/obs/tool-obsutil/obs_11_0069.html b/docs/obs/tool-obsutil/obs_11_0069.html index fccd1f9cd..29ca0435b 100644 --- a/docs/obs/tool-obsutil/obs_11_0069.html +++ b/docs/obs/tool-obsutil/obs_11_0069.html @@ -1,10 +1,10 @@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.
+Directory sharing allows a bucket owner to share specific directories within a bucket or even the entire bucket with other users by providing an authorization code and an 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:
- 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.
![]()
- When creating an authorization code, always end the name of the directory to be shared with a slash (/). If you do not specify a directory name in the command (for example, if the command only includes obs://bucket), the entire bucket will be 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.
- 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![]()
diff --git a/docs/obs/tool-obsutil/obs_11_0073.html b/docs/obs/tool-obsutil/obs_11_0073.html index 5fbc4eef0..9d3baca75 100644 --- a/docs/obs/tool-obsutil/obs_11_0073.html +++ b/docs/obs/tool-obsutil/obs_11_0073.html @@ -1,6 +1,6 @@ -
- 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.
Limiting the Upload and Download Rate for obsutil
+Limiting the Upload and Download Rates 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 index 7f0b6249e..82e6cb3b0 100644 --- a/docs/obs/tool-obsutil/obs_11_0074.html +++ b/docs/obs/tool-obsutil/obs_11_0074.html @@ -8,7 +8,7 @@- Can I Use obsutil to Directly Save a Listing Result to a Local File?
-
- Why Is the Size of Objects Queried by obsutil Inconsistent with That on OBS Console?
+- Why Does obsutil Show a Different Total Object Size Than OBS Console?
- How Can I Find Out Why Some Tasks in a Batch Task Failed?
diff --git a/docs/obs/tool-obsutil/obs_11_0075.html b/docs/obs/tool-obsutil/obs_11_0075.html index 81476748b..0e11c8334 100644 --- a/docs/obs/tool-obsutil/obs_11_0075.html +++ b/docs/obs/tool-obsutil/obs_11_0075.html @@ -3,7 +3,7 @@
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.
+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 the same in both places, run the incremental upload command after the upload is complete.
diff --git a/docs/obs/tool-obsutil/obs_11_0077.html b/docs/obs/tool-obsutil/obs_11_0077.html index 012ef5da0..b942552c2 100644 --- a/docs/obs/tool-obsutil/obs_11_0077.html +++ b/docs/obs/tool-obsutil/obs_11_0077.html @@ -1,8 +1,8 @@ -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:
-+
- 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.
- 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.
Why Does obsutil Show a Different Total Object Size Than OBS Console?
+When you use obsutil to list all objects in a bucket, the listing result includes the total size of the objects. If the total size is different from that shown on OBS Console or OBS Browser+, the mismatch usually comes from two factors:
+
- OBS Browser+ and OBS Console both use the API for obtaining storage information of a bucket to check how many objects a bucket contains and how much storage they use. This is the same information returned by the stat command in obsutil. However, the bucket storage data on OBS Browser+ and OBS Console is measured in the backend, so it is not updated in real time. Because of this delay, the values on OBS Browser+ and OBS Console should not be used for real-time verification.
- The data shown on OBS Browser+ and OBS Console covers the size of both objects and fragments in a bucket, but obsutil lists only the objects in a bucket. You can check whether there are fragments in the bucket on OBS Browser+ or OBS Console or by using the obsutil command that lists multipart uploads.
diff --git a/docs/obs/tool-obsutil/obs_11_0079.html b/docs/obs/tool-obsutil/obs_11_0079.html index 9d78ca2b0..5cca05a6a 100644 --- a/docs/obs/tool-obsutil/obs_11_0079.html +++ b/docs/obs/tool-obsutil/obs_11_0079.html @@ -5,7 +5,7 @@
- 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.
- 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:
-+
- 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.
- 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.
- 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.
- 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.
- 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.
- If the network condition is poor, you can lower the values of defaultParallels (-p) and defaultJobs (-j) to reduce the number of concurrent upload, download, or replication tasks, to make errors less likely to occur.
diff --git a/docs/obs/tool-obsutil/obs_11_0084.html b/docs/obs/tool-obsutil/obs_11_0084.html index e0ec441fa..2d85760b4 100644 --- a/docs/obs/tool-obsutil/obs_11_0084.html +++ b/docs/obs/tool-obsutil/obs_11_0084.html @@ -1,7 +1,7 @@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.
+Yes. You can run the mv command to rename an object or a folder. The following gives two examples in Windows.
- Running obsutil mv obs://bucket-test/key obs://bucket-test/key2 to rename object key to key2
obsutil mv obs://bucket-test/key obs://bucket-test/key2 Parallel: 5 Jobs: 5