forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
225 lines
28 KiB
HTML
225 lines
28 KiB
HTML
<a name="obs_11_0038"></a><a name="obs_11_0038"></a>
|
|
|
|
<h1 class="topictitle1">Resuming a Failed Download Task</h1>
|
|
<div id="body1545008187874"><div class="section" id="obs_11_0038__section1479112110815"><h4 class="sectiontitle">Function</h4><p id="obs_11_0038__p11772825481">You can use this command to resume a failed download task based on the task ID.</p>
|
|
</div>
|
|
<div class="section" id="obs_11_0038__section19587175622519"><h4 class="sectiontitle">Command Line Structure</h4><ul id="obs_11_0038__ul4348115485212"><li id="obs_11_0038__li034819548529">In Windows<pre class="screen" id="obs_11_0038__screen15467124815533">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] </pre>
|
|
</li><li id="obs_11_0038__li4476145885216">In Linux or macOS<pre class="screen" id="obs_11_0038__screen2398117135418">./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] </pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="obs_11_0038__section577711134114"><h4 class="sectiontitle">Examples</h4><ul id="obs_11_0038__ul1077811116415"><li id="obs_11_0038__li167781417413">Take the Windows OS as an example. Run the <strong id="obs_11_0038__b1837091253712">obsutil cp -recover=3066a4b0-4d21-4929-bb84-4829c32cbd0f d:\ -f -r</strong> command to download objects in batches.<pre class="screen" id="obs_11_0038__screen19778141134113"><strong id="obs_11_0038__b1777801124112">obsutil cp -recover=3066a4b0-4d21-4929-bb84-4829c32cbd0f -f -r</strong>
|
|
Start at 2024-10-08 01:10:07.3809685 +0000 UTC
|
|
|
|
Parallel: 5 Jobs: 5
|
|
Threshold: 50.00MB PartSize: auto
|
|
VerifyLength: false VerifyMd5: false
|
|
CheckpointDir: xxxx
|
|
|
|
Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3
|
|
OutputDir: xxxx
|
|
TempFileDir: xxxx
|
|
|
|
[========================================================] 100.00% tps:35.71 2.02 KB/s 7.20MB/7.20MB 0s
|
|
Succeed count: 1 Failed count: 0
|
|
Succeed bytes: xxx
|
|
Metrics [max cost:90 ms, min cost:45 ms, average cost:63.80 ms, average tps:35.71, transferred size:70B]
|
|
|
|
Task id: a628d6da-c562-4a1f-b687-4fa125de0dc3</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="obs_11_0038__section175878561255"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_11_0038__table1155454517538" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_11_0038__row6558154516531"><th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.4.2.1.4.1.1"><p id="obs_11_0038__p1656117451534">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27%" id="mcps1.3.4.2.1.4.1.2"><p id="obs_11_0038__p155651545195310">Optional or Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.4.2.1.4.1.3"><p id="obs_11_0038__p165678456530">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_11_0038__row43660596231"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p28307351476">recover</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p198304351672">Mandatory (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p188308358715">The ID of the download task to be resumed</p>
|
|
<div class="note" id="obs_11_0038__note10332165610814"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul625425894"><li id="obs_11_0038__li132547517913">You can obtain the task ID after a download task is complete, or query it based on the file name of the <a href="obs_11_0057.html">result list</a>. A task ID is the 36 characters, excluding the suffix <strong id="obs_11_0038__b11100256172511">.txt</strong>.</li><li id="obs_11_0038__li141241341171212">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 <strong id="obs_11_0038__b1213073355816">o</strong>.</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row07629408710"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p276284012715">tempFileDir</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p122055912103">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p1476264014710">The directory for storing temporary files during download. The default value is the value of <strong id="obs_11_0038__b117932163503">defaultTempFileDir</strong> in the configuration file.</p>
|
|
<div class="note" id="obs_11_0038__note369290203119"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul15994748142619"><li id="obs_11_0038__li49941648132611">Temporary files generated during multipart download are stored in this directory. Therefore, ensure that the user who executes obsutil has the write permission on the path.</li><li id="obs_11_0038__li999594822612">The available space of the partition where the path is located must be greater than the size of the objects to be downloaded.</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row1241495713314"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p156631810914">dryRun</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p10663610617">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p76630101412">Conducts a dry run.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row35998457538"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p206001459530">u</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p10601174595317">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p1260204518534">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.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row9603194595311"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p1605745105311">vlength</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p12605114512534">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p1660724595316">Checks whether the sizes of the local files are the same as those of the objects in the bucket after the download is complete.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row360812456535"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p136091945105315">vmd5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p461011452539">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p19611745185310">Checks whether MD5 values of the local files are the same as those of the objects in the bucket after the download is complete.</p>
|
|
<div class="note" id="obs_11_0038__note17453113313289"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0038__p12303311112719">Objects in the bucket must contain metadata <strong id="obs_11_0038__b137019224615">x-obs-meta-md5chksum</strong>, or MD5 verification will be skipped.</p>
|
|
</div></div>
|
|
<div class="caution" id="obs_11_0038__note183475244419"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="obs_11_0038__p98341052114418">If your object needs encryption, do not use this parameter.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row36131445115310"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p14613194514535">p</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p15615164515317">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p1161744513534">The maximum number of concurrent multipart download tasks when downloading an object. The default value is the value of <strong id="obs_11_0038__b183991353174814">defaultParallels</strong> in the configuration file.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row14617144520537"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p17619545185314">threshold</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p9620645185311">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p262174575315">The threshold for enabling multipart download, in bytes. The default value is the value of <strong id="obs_11_0038__b9910195718483">defaultBigfileThreshold</strong> in the configuration file.</p>
|
|
<div class="note" id="obs_11_0038__note94444118613"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul182059695115"><li id="obs_11_0038__li1320515655118">If the size of the object to be downloaded is smaller than the threshold, download the object directly. If not, a multipart download is required.</li><li id="obs_11_0038__li1651511123516">If you download an object directly, no part record is generated, and resumable transmission is not supported.</li><li id="obs_11_0038__li1184794414422">This parameter value can contain a unit, for example, <strong id="obs_11_0038__b171841242504">1MB</strong> (indicating 1,048,576 bytes).</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row1363634595315"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p3637164545318">ps</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p1264164517532">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p10641184516531">The size of each part in a multipart download task, in bytes. The default value is the value of <strong id="obs_11_0038__b6803227498">defaultPartSize</strong> in the configuration file.</p>
|
|
<div class="note" id="obs_11_0038__note1945367164418"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul148311025104617"><li id="obs_11_0038__li08311325174618">This parameter value can contain a unit, for example, <strong id="obs_11_0038__b4132171611504">1MB</strong> (indicating 1,048,576 bytes).</li><li id="obs_11_0038__li145242794610">The parameter can be set to <strong id="obs_11_0038__b73321536533">auto</strong>. In this case, obsutil automatically sets the part size for each multipart task based on the source object size.</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row196461145155314"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p1764874511530">cpd</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p206482455537">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p1965018458536">The folder where the part records reside. The default value is <strong id="obs_11_0038__b9777187184917">.obsutil_checkpoint</strong>, the subfolder in the home directory of the user who executes obsutil commands.</p>
|
|
<div class="note" id="obs_11_0038__note519835512711"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0038__p118866577266">A part record is generated during a multipart download and saved to the <strong id="obs_11_0038__b17221185615478">down</strong> subfolder. After the download succeeds, its part record is deleted automatically. If the download fails or is suspended, the system attempts to resume the task according to its part record when you perform the download the next time.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row5655184520536"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p56577450535">f</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p15712102082517">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p566014515533">Runs in force mode.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row1566014510533"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p3662204585313">j</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p4719102092513">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p17665114555311">The maximum number of concurrent tasks for downloading objects in a batch. The default value is the value of <strong id="obs_11_0038__b862721920247">defaultJobs</strong> in the configuration file.</p>
|
|
<div class="note" id="obs_11_0038__note891964620819"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0038__p1091964618820">The value is ensured to be greater than or equal to 1.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row109762261097"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p156173113915">exclude</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p1372419203256">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p16666614131519">The matching patterns of source objects that are excluded, for example: <strong id="obs_11_0038__b514617286497">*.txt</strong></p>
|
|
<div class="note" id="obs_11_0038__note145284716208"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul05604713204"><li id="obs_11_0038__li14580477208">The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, <strong id="obs_11_0038__b17220124561010">abc*.txt</strong> indicates any file whose name starts with <strong id="obs_11_0038__b1922154518107">abc</strong> and ends with <strong id="obs_11_0038__b1122313450103">.txt</strong>.</li><li id="obs_11_0038__li1128963020341">You can use <strong id="obs_11_0038__b1734764681019">\*</strong> to represent <strong id="obs_11_0038__b834814619103">*</strong> and <strong id="obs_11_0038__b19349646101016">\?</strong> to represent <strong id="obs_11_0038__b83501467102">?</strong>.</li><li id="obs_11_0038__li20603473203">If the name of the object to be downloaded matches the value of this parameter, the object is skipped.</li></ul>
|
|
</div></div>
|
|
<div class="notice" id="obs_11_0038__note179117549207"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0038__ul877892116516"><li id="obs_11_0038__li1517310321518">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.</li><li id="obs_11_0038__li1790011591794">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 <strong id="obs_11_0038__b36591141163013">obs://bucket/src1/src2/test.txt</strong>, then the absolute path of the object is <strong id="obs_11_0038__b66591141183017">src1/src2/test.txt</strong>.</li><li id="obs_11_0038__li1148165015513">This matching pattern applies only to objects whose names do not end with a slash (/).</li><li id="obs_11_0038__li14625193483418">Multiple <strong id="obs_11_0038__b127761529185913">exclude</strong> parameters can be specified, for example, <strong id="obs_11_0038__b77813296599">-exclude=*.xxx -exclude=*.xxx</strong>.</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row20666154513530"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p186661845145315">include</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p127271520102517">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p37071730153119">The matching patterns of source objects that are included, for example: <strong id="obs_11_0038__b1775843510490">*.jpg</strong></p>
|
|
<div class="note" id="obs_11_0038__note195168716220"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul752013715229"><li id="obs_11_0038__li135211772221">The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.</li><li id="obs_11_0038__li1123713483418">You can use <strong id="obs_11_0038__b422113173113">\*</strong> to represent <strong id="obs_11_0038__b102221617101111">*</strong> and <strong id="obs_11_0038__b202231817151112">\?</strong> to represent <strong id="obs_11_0038__b11224117141111">?</strong>.</li><li id="obs_11_0038__li16523871227">Only after identifying that the name of the file to be downloaded does not match the value of <strong id="obs_11_0038__b1874141931111">exclude</strong>, 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.</li></ul>
|
|
</div></div>
|
|
<div class="notice" id="obs_11_0038__note9270217202212"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0038__ul12136162112586"><li id="obs_11_0038__li1413716213586">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.</li><li id="obs_11_0038__li6647193171013">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 <strong id="obs_11_0038__b19602164573017">obs://bucket/src1/src2/test.txt</strong>, then the absolute path of the object is <strong id="obs_11_0038__b1060314520305">src1/src2/test.txt</strong>.</li><li id="obs_11_0038__li15234151014">This matching pattern applies only to objects whose names do not end with a slash (/).</li><li id="obs_11_0038__li193031540113413">Multiple <strong id="obs_11_0038__b1144183025920">include</strong> parameters can be specified, for example, <strong id="obs_11_0038__b1744253018591">-include=*.xxx -include=*.xxx</strong>.</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row64713716436"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p496314014481">timeRange</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p1664510223494">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p16963940134813">The time range matching pattern when downloading objects. Only objects whose latest modification time is within the configured time range are downloaded.</p>
|
|
<p id="obs_11_0038__p15975633125310">This pattern has a lower priority than the object matching patterns (<strong id="obs_11_0038__b8524185317313">exclude</strong>/<strong id="obs_11_0038__b85251153539">include</strong>). That is, the time range matching pattern is executed after the configured object matching patterns.</p>
|
|
<div class="note" id="obs_11_0038__note8766915165919"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul19272430145915"><li id="obs_11_0038__li12731730115918">The matching time range is represented in <em id="obs_11_0038__i1297864783014">time1</em><strong id="obs_11_0038__b997934713304">-</strong><em id="obs_11_0038__i298074703013">time2</em>, where <em id="obs_11_0038__i109803471301">time1</em> must be earlier than or the same as <em id="obs_11_0038__i29811847203013">time2</em>. The time format is <em id="obs_11_0038__i3982547153012">yyyyMMddHHmmss</em>.</li><li id="obs_11_0038__li32731530185916">Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.</li><li id="obs_11_0038__li5185481610">If this parameter is set to <strong id="obs_11_0038__b5889165023014">*-</strong><em id="obs_11_0038__i2890650113017">time2</em>, all files whose latest modification time is earlier than <em id="obs_11_0038__i68911450133018">time2</em> are matched. If it is set to <em id="obs_11_0038__i489205019306">time1</em><strong id="obs_11_0038__b1089215093014">-*</strong>, all files whose latest modification time is later than <em id="obs_11_0038__i98935500303">time1</em> are matched.</li></ul>
|
|
</div></div>
|
|
<div class="notice" id="obs_11_0038__note1078981817591"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0038__ul881073612597"><li id="obs_11_0038__li1740024105917">Time in the matching pattern is the UTC time.</li><li id="obs_11_0038__li58105368598">This matching pattern applies only to objects whose names do not end with a slash (/).</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row9683191411010"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p10122175516">mf</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p1562018121550">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p31226718512">Indicates that the name matching pattern (<strong id="obs_11_0038__b84215199612">include</strong> or <strong id="obs_11_0038__b14210197613">exclude</strong>) and the time matching pattern (<strong id="obs_11_0038__b194318191866">timeRange</strong>) also take effect on objects whose names end with a slash (/).</p>
|
|
<p id="obs_11_0038__p15797105118514"></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row109093549288"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p143226572287">o</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p3729820102512">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p1632615718282">The folder that stores the result files. After the command is executed, result files (possibly success, failure, and warning files) will be created in the specified folder. The default value is <strong id="obs_11_0038__b19424110181212">.obsutil_output</strong>, a subfolder in the user's home directory where obsutil commands are executed.</p>
|
|
<div class="note" id="obs_11_0038__note1416817409247"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0038__ul101190347408"><li id="obs_11_0038__li111993418408">A result file should be named as follows: <strong id="obs_11_0038__b6404193943117">cp_{succeed | failed | warning}_report_</strong><em id="obs_11_0038__i15404439193110">time</em><strong id="obs_11_0038__b440418399317">_</strong><em id="obs_11_0038__i184041239123117">TaskId</em><strong id="obs_11_0038__b1740523910316">.txt</strong>.<p id="obs_11_0038__li412103664016p0">By default, the maximum size of a single result file is 30 MB and the maximum number of result files that can be retained is 1,024. You can set the maximum size and number by configuring <strong id="obs_11_0038__b1153465412454">recordMaxLogSize</strong> and <strong id="obs_11_0038__b55341854164513">recordBackups</strong> in the configuration file.</p>
|
|
</li><li id="obs_11_0038__li72221155410">If there are multiple folders and files and you need to confirm the details of a failed task, refer to the failure result file <strong id="obs_11_0038__obs_11_0013_b5396121718320">cp_failed_report_</strong><em id="obs_11_0038__obs_11_0013_i1639621714325">time</em><strong id="obs_11_0038__obs_11_0013_b1739631753215">_</strong><em id="obs_11_0038__obs_11_0013_i203979172328">TaskId</em><strong id="obs_11_0038__obs_11_0013_b1639718176326">.txt</strong> in the result folder and the <a href="obs_11_0056.html">log files</a> in the log path.</li></ul>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row196141124145414"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p1214331787">clear</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p112145311787">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p18214731083">Deletes the failure result files after the download task is resumed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row27141035103619"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p153951131317">config</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p12395135316">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__obs_11_0008_p1750111452317">The user-defined configuration file for executing the current command. For details about parameters that can be configured, see <a href="obs_11_0035.html">Configuration Parameters</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0038__row35681824172314"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0038__p1966666191820">payer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0038__p1266611611820">Optional (additional parameter)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0038__p1166617619181">Specifies that requester pays is enabled.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_11_0038__section6926520122416"><h4 class="sectiontitle">Response</h4><p id="obs_11_0038__p21251255183018">Refer to <a href="obs_11_0013.html#obs_11_0013__section6926520122416">Response</a> for uploading an object.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_11_0012.html">Object Commands</a></div>
|
|
</div>
|
|
</div>
|
|
|