Files
doc-exports/docs/obs/tool-obsutil/obs_11_0036.html
weihongmin1 c4291b1dd5 OBS Util 0309 Verion
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2026-03-27 12:15:19 +00:00

261 lines
32 KiB
HTML

<a name="obs_11_0036"></a><a name="obs_11_0036"></a>
<h1 class="topictitle1">Resuming a Failed Upload Task</h1>
<div id="body1545008187874"><div class="section" id="obs_11_0036__section1479112110815"><h4 class="sectiontitle">Function</h4><p id="obs_11_0036__p11772825481">You can use this command to resume a failed upload task based on the task ID.</p>
</div>
<div class="section" id="obs_11_0036__section1220752192216"><h4 class="sectiontitle">Command Line Structure</h4><ul id="obs_11_0036__ul2098662312412"><li id="obs_11_0036__li198632362414">Windows<pre class="screen" id="obs_11_0036__screen13477182952517">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] </pre>
</li><li id="obs_11_0036__li7461142911245">macOS or Linux<pre class="screen" id="obs_11_0036__screen13485493273">./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] </pre>
</li></ul>
</div>
<div class="section" id="obs_11_0036__section030102484018"><h4 class="sectiontitle">Examples</h4><ul id="obs_11_0036__ul830102410405"><li id="obs_11_0036__li4309246406">In Windows, run <strong id="obs_11_0036__b153291461773">obsutil cp -recover 104786c8-27c2-48fc-bc6a-5886596fb0ed -f</strong> to resume a failed upload.<pre class="screen" id="obs_11_0036__screen430102484013"><strong id="obs_11_0036__b1830112420401">obsutil cp <strong id="obs_11_0036__b1830182414400">-recover 104786c8-27c2-48fc-bc6a-5886596fb0ed</strong> -f</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_0036__section6559191102418"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_11_0036__table10831182114445" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_11_0036__row683212154419"><th align="left" class="cellrowborder" valign="top" width="15.151515151515152%" id="mcps1.3.4.2.1.4.1.1"><p id="obs_11_0036__p118329219446">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.262626262626267%" id="mcps1.3.4.2.1.4.1.2"><p id="obs_11_0036__p15137125919108">Optional or Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="58.58585858585859%" id="mcps1.3.4.2.1.4.1.3"><p id="obs_11_0036__p12832121184414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_11_0036__row382993520717"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p28307351476">recover</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p198304351672">Mandatory (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p188308358715">The ID of the upload task to be resumed</p>
<div class="note" id="obs_11_0036__note10332165610814"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul625425894"><li id="obs_11_0036__li132547517913">You can obtain the task ID after an upload task is complete. You can also retrieve it from the <a href="obs_11_0057.html">result list</a> file name, where the task ID is the last 36 characters after the <strong id="obs_11_0036__b18232828387">.txt</strong> suffix is removed.</li><li id="obs_11_0036__li141241341171212">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 <strong id="obs_11_0036__b1845116713389">o</strong>.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row108730315315"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p7755144410481">arcDir</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p13755134434810">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p1175594410487">The path to which the uploaded files are archived</p>
</td>
</tr>
<tr id="obs_11_0036__row1966219101713"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p156631810914">dryRun</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p10663610617">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p76630101412">Conducts a dry run.</p>
</td>
</tr>
<tr id="obs_11_0036__row20808111443516"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p78083143357">u</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p1480891414357">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p20808141443516">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.</p>
</td>
</tr>
<tr id="obs_11_0036__row14823182511325"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p10823125153219">vlength</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p12641397348">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p582315257326">After the upload completes, checks whether the sizes of the objects in the bucket are the same as those of the local files.</p>
</td>
</tr>
<tr id="obs_11_0036__row77547237323"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p16754102323216">vmd5</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p9286153913341">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p10755202313327">After the upload completes, checks whether the MD5 values of the objects in the bucket are the same as those of the local files.</p>
<div class="note" id="obs_11_0036__note9812411501"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul4628165215267"><li id="obs_11_0036__li1862813521266">If the size of the file or folder to be uploaded is too large, using this parameter will degrade the overall performance due to MD5 calculation.</li><li id="obs_11_0036__li2628352202618">After the MD5 verification is successful, this parameter value is used for metadata <strong id="obs_11_0036__b13676163723410">x-obs-meta-md5chksum</strong>, for later MD5 verification during download or copy.</li></ul>
</div></div>
<div class="caution" id="obs_11_0036__note183475244419"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="obs_11_0036__p98341052114418">If your object needs encryption, do not use this parameter.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row14988181814356"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p1098811817356">p</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p14989181813352">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p49897182353">The maximum number of concurrent multipart upload tasks when uploading a file. The default value is the value of <strong id="obs_11_0036__b1823417528251">defaultParallels</strong> in the configuration file.</p>
</td>
</tr>
<tr id="obs_11_0036__row7456112216356"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p1045612212352">threshold</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p74561122123519">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p114561522173511">The threshold for enabling multipart upload, in bytes. The default value is the value of <strong id="obs_11_0036__b371145817257">defaultBigfileThreshold</strong> in the configuration file.</p>
<div class="note" id="obs_11_0036__note956121318501"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul182059695115"><li id="obs_11_0036__li1320515655118">If the size of the file or folder to be uploaded is smaller than the threshold, upload it directly. Otherwise, a multipart upload is required.</li><li id="obs_11_0036__li1651511123516">If you upload a file or folder directly, no part record is generated, and resumable transmission is not supported.</li><li id="obs_11_0036__li1184794414422">This parameter value can contain a unit, for example, <strong id="obs_11_0036__b1551220409500">1MB</strong> (indicating 1,048,576 bytes).</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row13242162823512"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p324212285352">acl</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p82428286353">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p16811512123619">The access control policies that can be specified when uploading files. The value can be:</p>
<ul id="obs_11_0036__ul1273864144412"><li id="obs_11_0036__li17738649445">private</li><li id="obs_11_0036__li1551213137447">public-read</li><li id="obs_11_0036__li1287691813449">public-read-write</li></ul>
<div class="note" id="obs_11_0036__note1790113183525"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0036__p92982882916">The preceding three values indicate private read and write, public read, and public read and write.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row10780184745015"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p19533119154211">sc</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p4533191944218">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p86547153813">The storage classes of objects that can be specified when uploading files. The value can be:</p>
<ul id="obs_11_0036__ul175651814214"><li id="obs_11_0036__li1256512172114"><strong id="obs_11_0036__b11328362115">standard</strong>: 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.</li><li id="obs_11_0036__li10565181142113"><strong id="obs_11_0036__b162491125163619">warm</strong>: 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.</li><li id="obs_11_0036__li756616110216"><strong id="obs_11_0036__b740613216360">cold</strong>: Cold storage class. It provides secure, durable, and inexpensive storage for rarely-accessed (once a year) data.</li></ul>
</td>
</tr>
<tr id="obs_11_0036__row15476193193517"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p15476113117359">meta</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p3476173116357">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p1447673143520">The custom metadata that can be specified during file upload. The format is <strong id="obs_11_0036__b5986113545112">key1:value1#key2:value2#key3:value3</strong>.</p>
<div class="note" id="obs_11_0036__note2863162085514"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0036__p686342013559">The preceding value indicates that the object in the bucket contains three groups of customized metadata after the file is uploaded: <strong id="obs_11_0036__b89423875116">key1:value1</strong>, <strong id="obs_11_0036__b5950387516">key2:value2</strong>, and <strong id="obs_11_0036__b179773875113">key3:value3</strong>.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row1898318335357"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p139834336354">ps</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p20983173343511">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p161953211218">The size of each part in a multipart upload task, in bytes. The value ranges from <strong id="obs_11_0036__b195653813274">100KB</strong> to <strong id="obs_11_0036__b995610384278">5GB</strong>. The default value is the value of <strong id="obs_11_0036__b595717383279">defaultPartSize</strong> in the configuration file.</p>
<div class="note" id="obs_11_0036__note645113418434"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul177981443114514"><li id="obs_11_0036__li14798843184516">This parameter value can contain a unit, for example, <strong id="obs_11_0036__b8550173618507">1MB</strong> (indicating 1,048,576 bytes).</li><li id="obs_11_0036__li15616645134517">The parameter can be set to <strong id="obs_11_0036__b12784171615211">auto</strong>. In this case, obsutil automatically sets the part size for each multipart task based on the source file size.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row83017445358"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p83084493510">cpd</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p830044143513">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p730944183517">The folder where the part records reside. The default value is <strong id="obs_11_0036__b2062954912710">.obsutil_checkpoint</strong>, the subfolder in the home directory of the user who executes obsutil commands.</p>
<div class="note" id="obs_11_0036__note13886557132615"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0036__p118866577266">A part record is generated during a multipart upload and saved to the <strong id="obs_11_0036__b2012163014619">upload</strong> subfolder. After the upload succeeds, its part record is deleted automatically. If the upload fails or is suspended, the system attempts to resume the task according to its part record when you perform the upload the next time.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row45081155113516"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p7508105553515">f</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p202915596214">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p972417362487">Runs in force mode.</p>
</td>
</tr>
<tr id="obs_11_0036__row20127634366"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p51273333618">j</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p5361592215">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p112661531143816">The maximum number of concurrent tasks for uploading a folder. The default value is the value of <strong id="obs_11_0036__b1837402371316">defaultJobs</strong> in the configuration file.</p>
<div class="note" id="obs_11_0036__note891964620819"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0036__p1091964618820">The tool ensures that this value is at least 1.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row152961440116"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p93091157917">exclude</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p1416597217">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p63147571114">The file matching patterns that are excluded, for example: <strong id="obs_11_0036__b767617457280">*.txt</strong></p>
<div class="note" id="obs_11_0036__note860825419155"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul83178571118"><li id="obs_11_0036__li143200571918">The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, <strong id="obs_11_0036__b119768615148">abc*.txt</strong> indicates any file whose name starts with <strong id="obs_11_0036__b298210661412">abc</strong> and ends with <strong id="obs_11_0036__b1798219617141">.txt</strong>.</li><li id="obs_11_0036__li786846153313">You can use <strong id="obs_11_0036__b22181224105510">\*</strong> to represent <strong id="obs_11_0036__b11221824175518">*</strong> and <strong id="obs_11_0036__b222232495511">\?</strong> to represent <strong id="obs_11_0036__b1322322435519">?</strong>.</li><li id="obs_11_0036__li232319571115">If the name of the file to be uploaded matches the value of this parameter, the file is skipped.</li></ul>
</div></div>
<div class="notice" id="obs_11_0036__note17161195812153"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0036__ul877892116516"><li id="obs_11_0036__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_0036__li45952719716">The matching pattern applies to the absolute file path (including the file name and file directory).</li><li id="obs_11_0036__li1148165015513">The matching pattern applies only to files in a folder.</li><li id="obs_11_0036__li031365783316">Multiple <strong id="obs_11_0036__b18710221125520">exclude</strong> parameters can be specified, for example, <strong id="obs_11_0036__b187151221205519">-exclude=*.xxx -exclude=*.xxx</strong>.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row15404620173616"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p64040209360">include</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p24515919220">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p85831634179">The file matching patterns that are included, for example: <strong id="obs_11_0036__b735755210289">*.jpg</strong></p>
<div class="note" id="obs_11_0036__note6126191912710"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul144557173539"><li id="obs_11_0036__li104555174537">The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.</li><li id="obs_11_0036__li19723114811337">You can use <strong id="obs_11_0036__b27721812565">**</strong> to represent <strong id="obs_11_0036__b127759121062">*</strong> and <strong id="obs_11_0036__b12776111211610">\?</strong> to represent <strong id="obs_11_0036__b97786122613">?</strong>.</li><li id="obs_11_0036__li442714198534">The <strong id="obs_11_0036__b1346102791317">exclude</strong> rule is applied first. If the name of the file to be uploaded does not match the <strong id="obs_11_0036__b046202781320">exclude</strong> 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.</li></ul>
</div></div>
<div class="notice" id="obs_11_0036__note7627205718163"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0036__ul17172248195614"><li id="obs_11_0036__li4172114815566">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_0036__li572621113716">The matching pattern applies to the absolute file path (including the file name and file directory).</li><li id="obs_11_0036__li519218125713">The matching pattern applies only to files in a folder.</li><li id="obs_11_0036__li13384102123417">Multiple <strong id="obs_11_0036__b2068392211555">include</strong> parameters can be specified, for example, <strong id="obs_11_0036__b968392265516">-include=*.xxx -include=*.xxx</strong>.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row1839894474"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p2083918918472">at</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p198391493474">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p715611361584">Indicates that when resuming a failed upload task, only the files whose latest access time is within the value of <strong id="obs_11_0036__b2311153153612">timeRange</strong> are uploaded.</p>
<div class="note" id="obs_11_0036__note12558677146"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul855817111418"><li id="obs_11_0036__li7558979145">This parameter must be used together with <strong id="obs_11_0036__b1195175823710">timeRange</strong>.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row1809121510401"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p496314014481">timeRange</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p1664510223494">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p16963940134813">The time range matching pattern when uploading files. Only files whose latest modification time is within the configured time range are uploaded.</p>
<p id="obs_11_0036__p1879635019517">This pattern has a lower priority than the file matching patterns (<strong id="obs_11_0036__b37597075317">exclude</strong>/<strong id="obs_11_0036__b12760501539">include</strong>). That is, the time range matching pattern is executed after the configured file matching patterns.</p>
<div class="note" id="obs_11_0036__note8766915165919"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul19272430145915"><li id="obs_11_0036__li12731730115918">The matching time range is represented in <em id="obs_11_0036__i1525423112818">time1</em><strong id="obs_11_0036__b6526323172819">-</strong><em id="obs_11_0036__i3526192318288">time2</em>, where <em id="obs_11_0036__i1852711231288">time1</em> must be earlier than or the same as <em id="obs_11_0036__i1952818234281">time2</em>. The time format is <em id="obs_11_0036__i1752982319285">yyyyMMddHHmmss</em>.</li><li id="obs_11_0036__li32731530185916">Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.</li><li id="obs_11_0036__li5185481610">If this parameter is set to <strong id="obs_11_0036__b234216229558">*-</strong><em id="obs_11_0036__i1434202245517">time2</em>, all files whose last modification time is earlier than <em id="obs_11_0036__i18342822155514">time2</em> are matched. If it is set to <em id="obs_11_0036__i7342022125519">time1</em><strong id="obs_11_0036__b1934252275518">-*</strong>, all files whose last modification time is later than <em id="obs_11_0036__i1034282210559">time1</em> are matched.</li></ul>
</div></div>
<div class="notice" id="obs_11_0036__note1078981817591"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><p id="obs_11_0036__p95781751171216">Time in the matching pattern is the UTC time.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0036__row1610491411911"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p10122175516">mf</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p1562018121550">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p31226718512">Indicates that the name matching pattern (<strong id="obs_11_0036__b1917013311751">include</strong> or <strong id="obs_11_0036__b917033115519">exclude</strong>) and the time matching pattern (<strong id="obs_11_0036__b517113311754">timeRange</strong>) also take effect on objects whose names end with a slash (/).</p>
<p id="obs_11_0036__p15797105118514"></p>
</td>
</tr>
<tr id="obs_11_0036__row1015315386301"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p13911642133014">o</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p84814592220">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p139151442123019">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_0036__b1726718121212">.obsutil_output</strong>, a subfolder in the user's home directory where obsutil commands are executed.</p>
<div class="note" id="obs_11_0036__note114181972212"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0036__ul101190347408"><li id="obs_11_0036__li111993418408">A result file should be named as follows: <strong id="obs_11_0036__b5786122918311">cp_{succeed | failed | warning}_report_</strong><em id="obs_11_0036__i127868294311">time</em><strong id="obs_11_0036__b147875294312">_</strong><em id="obs_11_0036__i207871129173119">TaskId</em><strong id="obs_11_0036__b3787112983114">.txt</strong>.<p id="obs_11_0036__p934418291340">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_0036__b926518196400">recordMaxLogSize</strong> and <strong id="obs_11_0036__b10265519114014">recordBackups</strong> in the configuration file.</p>
</li><li id="obs_11_0036__li17879146338">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_0036__obs_11_0013_b5396121718320">cp_failed_report_</strong><em id="obs_11_0036__obs_11_0013_i1639621714325">time</em><strong id="obs_11_0036__obs_11_0013_b1739631753215">_</strong><em id="obs_11_0036__obs_11_0013_i203979172328">TaskId</em><strong id="obs_11_0036__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_0036__row202138311816"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p1214331787">clear</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p112145311787">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p18214731083">Deletes the failure result files after the upload task is resumed.</p>
</td>
</tr>
<tr id="obs_11_0036__row19911919359"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p153951131317">config</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p12395135316">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__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_0036__row118273551227"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0036__p1966666191820">payer</p>
</td>
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0036__p1266611611820">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="58.58585858585859%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0036__p1166617619181">Specifies that requester pays is enabled.</p>
<p id="obs_11_0036__p13214143095512"><strong id="obs_11_0036__b116303714634556">Range</strong>:</p>
<p id="obs_11_0036__p13744112545515">requester</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="obs_11_0036__section6926520122416"><h4 class="sectiontitle">Response</h4><p id="obs_11_0036__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>