Files
doc-exports/docs/obs/tool-obsutil/obs_11_0044.html
weihongmin1 a41a4e0331 OBS Util 0115 Version
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2026-02-17 10:18:57 +00:00

262 lines
36 KiB
HTML

<a name="obs_11_0044"></a><a name="obs_11_0044"></a>
<h1 class="topictitle1">Synchronously Copying Incremental Objects</h1>
<div id="body1547714132790"><div class="section" id="obs_11_0044__section1479112110815"><h4 class="sectiontitle">Function</h4><p id="obs_11_0044__p3855171642212">You can use this command to synchronize all objects in a specified path of the source bucket to a specified path in the target bucket to ensure data consistency. Incremental synchronization has the following meanings:</p>
<ul id="obs_11_0044__ul11409822182212"><li id="obs_11_0044__li11409172212219">"Incremental" means that the source objects are compared with their counterparts in the target bucket and only the source objects with content changes are copied.</li><li id="obs_11_0044__li840918224228">"Synchronization" means that after the command is executed, all source objects in the specified path of the source bucket have their counterparts in the target bucket.</li></ul>
<div class="notice" id="obs_11_0044__note780411406113"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="obs_11_0044__ul151501843918"><li id="obs_11_0044__li14647135493">Do not change the source objects in the OBS bucket when synchronously copying objects. Otherwise, the synchronization may fail or data may be inconsistent.</li><li id="obs_11_0044__li15737104113143">To copy objects, you must have the read permission on the objects to be copied and the write permission on the destination bucket.</li><li id="obs_11_0044__li824417525518">If the client-side cross-region replication function is not enabled, ensure that the source bucket and destination bucket are in the same region.</li><li id="obs_11_0044__li139841802014">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.</li><li id="obs_11_0044__li1820583712910">If the source bucket is a parallel file system (supporting POSIX), the destination bucket cannot be an object storage bucket.</li></ul>
</div></div>
</div>
<div class="section" id="obs_11_0044__section49408320267"><h4 class="sectiontitle">Command Line Structure</h4><ul id="obs_11_0044__ul9634193211493"><li id="obs_11_0044__li1763473234917">In Windows<pre class="screen" id="obs_11_0044__screen15740822175019">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] </pre>
</li><li id="obs_11_0044__li245683714917">In Linux or macOS<pre class="screen" id="obs_11_0044__screen161391565118">./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] </pre>
</li></ul>
</div>
<div class="note" id="obs_11_0044__note38181439115018"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_11_0044__p8777123720618">The source path and destination path cannot be the same or nested when synchronously copying objects.</p>
</div></div>
<div class="section" id="obs_11_0044__section178241322153911"><h4 class="sectiontitle">Examples</h4><ul id="obs_11_0044__ul78241122143917"><li id="obs_11_0044__li1824192283914">Take the Windows OS as an example. Run the <strong id="obs_11_0044__b350045510522">obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp/</strong> command to synchronously copy objects.<pre class="screen" id="obs_11_0044__screen682472213914"><strong id="obs_11_0044__b98241922193910">obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp </strong>
Start at 2024-09-25 04:48:10.1147483 +0000 UTC
Parallel: 5 Jobs: 5
Threshold: 50.00MB PartSize: auto
CheckpointDir: C:\Users\Administrator\.obsutil_checkpoint
Task id: 104786c8-27c2-48fc-bc6a-5886596fb0e
OutputDir: C:\Users\Administrator\.obsutil_output
[=============================================================] 100.00% 10/s 0s
Succeed count: 5 Failed count: 0
Metrics [max cost:298 ms, min cost:192 ms, average cost:238.00 ms, average tps:9.71, transferred size: 7.20MB]
Task id: 0476929d-9d23-4dc5-b2f8-0a0493f027c5</pre>
</li></ul>
<ul id="obs_11_0044__ul482510223395"><li id="obs_11_0044__li68252222394">For more examples, see <a href="obs_11_0027.html">Common Examples</a>.</li></ul>
</div>
<div class="section" id="obs_11_0044__section3940203142610"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_11_0044__table125609307312" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_11_0044__row456603043117"><th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.5.2.1.4.1.1"><p id="obs_11_0044__p85680303316">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.1.4.1.2"><p id="obs_11_0044__p14572130153112">Optional or Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.99999999999999%" id="mcps1.3.5.2.1.4.1.3"><p id="obs_11_0044__p15751930133118">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_11_0044__row20577630203112"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p18579630143115">srcbucket</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p458314302313">Mandatory</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p34544306544">The source bucket name</p>
</td>
</tr>
<tr id="obs_11_0044__row1059316307314"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p159616306318">dstbucket</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p1559933073119">Mandatory</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p95994308315">The destination bucket name</p>
</td>
</tr>
<tr id="obs_11_0044__row169347719447"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1811911004419">dest</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p9123510204415">Optional</p>
<p id="obs_11_0044__p2123610174413"></p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p1839313263477">The name prefix of destination objects</p>
<div class="note" id="obs_11_0044__note8433105272210"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0044__p204339528229">If the value of this parameter does not end with a slash (/), the obsutil tool automatically adds a slash (/) at the end of the configured value as the name prefix of destination objects.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row106007303311"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1060363010318">key</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p7265911561">Optional</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p176052030183114">The name prefix of source objects</p>
<p id="obs_11_0044__p36061309319">The rules are as follows:</p>
<ul id="obs_11_0044__ul1560743053116"><li id="obs_11_0044__li2074055121716">If this parameter is left blank, objects whose name prefix is the value of <strong id="obs_11_0044__b195566361755">dest</strong> in the destination bucket are the same as all objects in the source bucket.</li><li id="obs_11_0044__li16278104810137">If this parameter is configured, objects whose name prefix is the value of <strong id="obs_11_0044__b1205926171119">dest</strong> in the destination bucket are the same as objects whose name prefix is this configured value in the source bucket.</li></ul>
<div class="note" id="obs_11_0044__note14528254193716"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul17203733184419"><li id="obs_11_0044__li12203113313442">If the value of this parameter does not end with a slash (/), the obsutil tool automatically adds a slash (/) at the end of the configured value as the name prefix of source objects.</li><li id="obs_11_0044__li182039334441">For details about how to use this parameter, see <a href="obs_11_0048.html">Synchronous Copy</a>.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row17612113018317"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1537517155414">dryRun</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p13376216548">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p1137981175411">Conducts a dry run.</p>
</td>
</tr>
<tr id="obs_11_0044__row89691383561"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p19960122065918">crr</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p696012075919">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p1296062012595">Enables the client-side cross-region replication function. In this mode, data is directly copied to the destination bucket from the source bucket through data stream. The buckets can be any two OBS buckets.</p>
<div class="note" id="obs_11_0044__note4424164104813"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul743879115112"><li id="obs_11_0044__li34388965110">If this parameter is configured, ensure that the configuration of client-side cross-region replication is updated in the configuration file. For details, see <a href="obs_11_0023.html">Updating a Configuration File</a>.</li><li id="obs_11_0044__li1283061135112">The configurations of the source bucket and destination bucket are respectively <strong id="obs_11_0044__b19203045172219">akCrr/skCrr/tokenCrr/endpointCrr</strong> and <strong id="obs_11_0044__b320411453221">ak/sk/token/endpoint</strong> in the configuration file.</li></ul>
</div></div>
<div class="notice" id="obs_11_0044__note19922116154811"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><p id="obs_11_0044__p4922106154811">When cross-region replication is enabled, the upload/download bandwidth, CPU, and memory resources of the host where commands are executed will be occupied, which may deteriorate the host performance.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row8357204853013"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1605745105311">vlength</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p12605114512534">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p1660724595316">Verifies whether the object size in the destination bucket is the same as that in the source bucket after the copy task completes.</p>
<div class="note" id="obs_11_0044__note57671113172915"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0044__p1768313182910">This parameter must be used together with <strong id="obs_11_0044__b31314569223">crr</strong>.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row145363458305"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p136091945105315">vmd5</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p461011452539">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p19611745185310">Verifies whether the MD5 value of the destination bucket is the same as that of the source bucket after the copy task completes.</p>
<div class="note" id="obs_11_0044__note13542169102916"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul114913379291"><li id="obs_11_0044__li1814913377295">This parameter must be used together with <strong id="obs_11_0044__b772915112236">crr</strong>.</li><li id="obs_11_0044__li101491137162913">Objects in the source bucket must contain metadata <strong id="obs_11_0044__b1425671251312">x-obs-meta-md5chksum</strong>, or MD5 verification will be skipped.<p id="obs_11_0044__p1765649132314">After the MD5 verification is successful, this parameter value is used for metadata <strong id="obs_11_0044__b148855142519">x-obs-meta-md5chksum</strong> of the destination object, for later MD5 verification during download or copy.</p>
</li></ul>
</div></div>
<div class="caution" id="obs_11_0044__note183475244419"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="obs_11_0044__p98341052114418">If your object needs encryption, do not use this parameter.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row3632193093117"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p26341030163117">p</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p9636183093120">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p7638163013112">The maximum number of concurrent multipart copy tasks when copying an object. The default value is the value of <strong id="obs_11_0044__b787824016220">defaultParallels</strong> in the configuration file.</p>
<div class="caution" id="obs_11_0044__note1680214510416"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="obs_11_0044__obs_11_0017_p1383211014413">For an inter-bucket replication task that does not include the <strong id="obs_11_0044__obs_11_0017_b4449164054017">crr</strong> parameter, the maximum allowable value for this parameter is 10,000.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row363913014313"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p116401030183113">threshold</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p176431304319">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p16441830113114">The threshold for enabling multipart copy, in bytes. The default value is the value of <strong id="obs_11_0044__b289264273012">defaultBigfileThreshold</strong> in the configuration file.</p>
<div class="note" id="obs_11_0044__note1382352674913"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul182059695115"><li id="obs_11_0044__li1320515655118">If the size of the object to be copied is smaller than the threshold, copy the object directly. If not, a multipart copy is required.</li><li id="obs_11_0044__li1651511123516">If you copy an object directly, no part record is generated, and resumable transmission is not supported.</li><li id="obs_11_0044__li1184794414422">This parameter value can contain a unit, for example, <strong id="obs_11_0044__b17925915012">1MB</strong> (indicating 1,048,576 bytes).</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row264453012315"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p964614304315">acl</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p17648193011318">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p16650163083117">The access control policies for destination objects that can be specified when copying objects. Possible values are:</p>
<ul id="obs_11_0044__ul0651183053115"><li id="obs_11_0044__li13652230153113">private</li><li id="obs_11_0044__li1965516308318">public-read</li><li id="obs_11_0044__li1265633023119">public-read-write</li><li id="obs_11_0044__li121231651135216">bucket-owner-full-control</li></ul>
<div class="note" id="obs_11_0044__note1790113183525"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0044__p92982882916">The preceding four values indicate private read and write, public read, public read and write, and bucket owner full control.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row62441623105116"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p13466172515511">sc</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p134681525175117">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p04731025135114">The storage classes of the destination objects that can be specified when copying objects. Possible values are:</p>
<ul id="obs_11_0044__ul175651814214"><li id="obs_11_0044__li1256512172114"><strong id="obs_11_0044__b2436182181114">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_0044__li10565181142113"><strong id="obs_11_0044__b1620415920355">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_0044__li756616110216"><strong id="obs_11_0044__b11137181216356">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_0044__row8659203023112"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1366223093111">meta</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p26631230193118">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p17941525135111">The metadata of destination objects that can be specified when copying objects. This parameter should be configured in the following format: <em id="obs_11_0044__i962962414227">key1</em><strong id="obs_11_0044__b96301824192213">:</strong><em id="obs_11_0044__i136301624102216">value1</em><strong id="obs_11_0044__b36301424112216">#</strong><em id="obs_11_0044__i46301024122216">key2</em><strong id="obs_11_0044__b14630122411220">:</strong><em id="obs_11_0044__i1663082417224">value2</em><strong id="obs_11_0044__b1763112482212">#</strong><em id="obs_11_0044__i06311124122218">key3</em><strong id="obs_11_0044__b963110249229">:</strong><em id="obs_11_0044__i1631724152215">value3</em>.</p>
<div class="note" id="obs_11_0044__note1606229165119"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0044__p686342013559">The format example above indicates that the destination objects contain three groups of custom metadata: <em id="obs_11_0044__i745524218223">key1:value1</em>, <em id="obs_11_0044__i745594262216">key2:value2</em>, and <em id="obs_11_0044__i545684212229">key3:value3</em>.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row466716303317"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1366917307314">ps</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p267203023115">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p1167313023117">The size of each part in a multipart copy task, in bytes. The value ranges from <strong id="obs_11_0044__b193386619576">100KB</strong> to <strong id="obs_11_0044__b933986155716">5GB</strong>. The default value is the value of <strong id="obs_11_0044__b113394685714">defaultPartSize</strong> in the configuration file.</p>
<div class="note" id="obs_11_0044__note12706112664318"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul1876110014518"><li id="obs_11_0044__li17611019459">This parameter value can contain a unit, for example, <strong id="obs_11_0044__b11869135411504">1MB</strong> (indicating 1,048,576 bytes).</li><li id="obs_11_0044__li135831825454">The parameter can be set to <strong id="obs_11_0044__b748691411519">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_0044__row1367463093119"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1967612305318">cpd</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p1367810308316">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p46792307316">The folder where the part records reside. The default value is <strong id="obs_11_0044__b13201154217257">.obsutil_checkpoint</strong>, the subfolder in the home directory of the user who executes obsutil commands.</p>
<div class="note" id="obs_11_0044__note22601842192718"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0044__p118866577266">A part record is generated during a multipart copy and saved to the <strong id="obs_11_0044__b2079243114173">copy</strong> subfolder. After the copy succeeds, its part record is deleted automatically. If the copy fails or is suspended, the system attempts to resume the task according to its part record when you perform the copy the next time.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row20694163013111"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p269613053110">j</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p170013055218">Optional for copying objects in batches (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p4699130153112">The maximum number of concurrent tasks for copying objects synchronously. The default value is the value of <strong id="obs_11_0044__b115698204458">defaultJobs</strong> in the configuration file.</p>
<div class="caution" id="obs_11_0044__note793663513401"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="obs_11_0044__obs_11_0017_p1383211014413_1">For an inter-bucket replication task that does not include the <strong id="obs_11_0044__obs_11_0017_b4449164054017_1">crr</strong> parameter, the maximum allowable value for this parameter is 10,000.</p>
</div></div>
<div class="note" id="obs_11_0044__note891964620819"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0044__p1091964618820">The value is ensured to be greater than or equal to 1.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row8334161131517"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p7660121421518">exclude</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p176621714131512">Optional for copying objects in batches (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p16666614131519">The matching patterns of source objects that are excluded, for example, <strong id="obs_11_0044__b159651549158">*.txt</strong></p>
<div class="note" id="obs_11_0044__note145284716208"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul05604713204"><li id="obs_11_0044__li14580477208">The asterisk (*) represents any group of characters, and the question mark (?) represents any single character. For instance, <strong id="obs_11_0044__b220217189286">abc*.txt</strong> indicates any file whose name starts with <strong id="obs_11_0044__b192030188286">abc</strong> and ends with <strong id="obs_11_0044__b19205318162818">.txt</strong>.</li><li id="obs_11_0044__li134314014354">You can use <strong id="obs_11_0044__b95182011288">\*</strong> to represent <strong id="obs_11_0044__b86520152817">*</strong> and <strong id="obs_11_0044__b147122092814">\?</strong> to represent <strong id="obs_11_0044__b168122032817">?</strong>.</li><li id="obs_11_0044__li20603473203">If the name of the object to be copied matches the value of this parameter, the object is skipped.</li></ul>
</div></div>
<div class="notice" id="obs_11_0044__note179117549207"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0044__ul877892116516"><li id="obs_11_0044__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_0044__li15611821151118">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_0044__b12122835326">obs://bucket/src1/src2/test.txt</strong>, then the absolute path of the object is <strong id="obs_11_0044__b6123739322">src1/src2/test.txt</strong>.</li><li id="obs_11_0044__li1148165015513">This matching pattern applies only to objects whose names do not end with a slash (/).</li><li id="obs_11_0044__li7368540203215">Multiple <strong id="obs_11_0044__b95159411551">exclude</strong> parameters can be specified, for example, <strong id="obs_11_0044__b1752034115513">-exclude=*.xxx -exclude=*.xxx</strong>.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row207003306314"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p11703123012317">include</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p470523013527">Optional for copying objects in batches (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p37071730153119">The matching patterns of source objects that are included, for example: <strong id="obs_11_0044__b1215311571453">*.jpg</strong></p>
<div class="note" id="obs_11_0044__note195168716220"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul752013715229"><li id="obs_11_0044__li135211772221">The asterisk (*) represents any group of characters, and the question mark (?) represents any single character.</li><li id="obs_11_0044__li123514283516">You can use <strong id="obs_11_0044__b1977422872810">\*</strong> to represent <strong id="obs_11_0044__b18775192812287">*</strong> and <strong id="obs_11_0044__b1277872813288">\?</strong> to represent <strong id="obs_11_0044__b977972862815">?</strong>.</li><li id="obs_11_0044__li16523871227">Only after identifying that the name of the file to be copied does not match the value of <strong id="obs_11_0044__b186317308287">exclude</strong>, 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.</li></ul>
</div></div>
<div class="notice" id="obs_11_0044__note9270217202212"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0044__ul9325145114588"><li id="obs_11_0044__li4325205125816">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_0044__li1047272541110">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_0044__b17251611324">obs://bucket/src1/src2/test.txt</strong>, then the absolute path of the object is <strong id="obs_11_0044__b107268673215">src1/src2/test.txt</strong>.</li><li id="obs_11_0044__li4784268114">This matching pattern applies only to objects whose names do not end with a slash (/).</li><li id="obs_11_0044__li165858463328">Multiple <strong id="obs_11_0044__b250612515552">include</strong> parameters can be specified, for example, <strong id="obs_11_0044__b450611585517">-include=*.xxx -include=*.xxx</strong>.</li></ul>
</div></div>
</td>
</tr>
<tr id="obs_11_0044__row68216300459"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p496314014481">timeRange</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p1664510223494">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p16963940134813">The time range matching pattern when synchronously copying objects. Only objects whose latest modification time is within the configured time range are copied.</p>
<p id="obs_11_0044__p25091509569">This pattern has a lower priority than the object matching patterns (<strong id="obs_11_0044__b7671911151012">exclude</strong>/<strong id="obs_11_0044__b468411121013">include</strong>). That is, the time range matching pattern is executed after the configured object matching patterns.</p>
<div class="note" id="obs_11_0044__note8766915165919"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul19272430145915"><li id="obs_11_0044__li12731730115918">The matching time range is represented in <em id="obs_11_0044__i1365769183212">time1</em><strong id="obs_11_0044__b10657499328">-</strong><em id="obs_11_0044__i19658169163210">time2</em>, where <em id="obs_11_0044__i18659119103217">time1</em> must be earlier than or the same as <em id="obs_11_0044__i965919973214">time2</em>. The time format is <em id="obs_11_0044__i465920913326">yyyyMMddHHmmss</em>.</li><li id="obs_11_0044__li32731530185916">Automatic formatting is supported. For example, yyyyMMdd is equivalent to yyyyMMdd000000, and yyyyMM is equivalent to yyyyMM01000000.</li><li id="obs_11_0044__li5185481610">If this parameter is set to <strong id="obs_11_0044__b02567127325">*-</strong><em id="obs_11_0044__i72561112163215">time2</em>, all files whose latest modification time is earlier than <em id="obs_11_0044__i1925721243219">time2</em> are matched. If it is set to <em id="obs_11_0044__i8257151253218">time1</em><strong id="obs_11_0044__b6258312123215">-*</strong>, all files whose latest modification time is later than <em id="obs_11_0044__i2025821253216">time1</em> are matched.</li></ul>
</div></div>
<div class="notice" id="obs_11_0044__note1078981817591"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><ul id="obs_11_0044__ul881073612597"><li id="obs_11_0044__li1740024105917">Time in the matching pattern is the UTC time.</li><li id="obs_11_0044__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_0044__row11426194215815"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p10122175516">mf</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p1562018121550">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p31226718512">Indicates that the name matching pattern (<strong id="obs_11_0044__b72419506411">include</strong> or <strong id="obs_11_0044__b525250441">exclude</strong>) and the time matching pattern (<strong id="obs_11_0044__b13257507415">timeRange</strong>) also take effect on objects whose names end with a slash (/).</p>
<p id="obs_11_0044__p15797105118514"></p>
</td>
</tr>
<tr id="obs_11_0044__row9725193023119"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p1672753013119">o</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p871493095216">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__p137321030143112">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_0044__b31341843151113">.obsutil_output</strong>, a subfolder in the user's home directory where obsutil commands are executed.</p>
<div class="note" id="obs_11_0044__note289083220249"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="obs_11_0044__ul101190347408"><li id="obs_11_0044__li111993418408">A result file should be named as follows: <strong id="obs_11_0044__b8770103010345">sync_{succeed | failed | warning}_report_</strong><em id="obs_11_0044__i16771730173415">time</em><strong id="obs_11_0044__b1877117301346">_TaskId.txt</strong>.<p id="obs_11_0044__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_0044__b21240197366">recordMaxLogSize</strong> and <strong id="obs_11_0044__b3124619143611">recordBackups</strong> in the configuration file.</p>
</li><li id="obs_11_0044__li19366825830">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_0044__obs_11_0013_b5396121718320">cp_failed_report_</strong><em id="obs_11_0044__obs_11_0013_i1639621714325">time</em><strong id="obs_11_0044__obs_11_0013_b1739631753215">_</strong><em id="obs_11_0044__obs_11_0013_i203979172328">TaskId</em><strong id="obs_11_0044__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_0044__row68421620380"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.5.2.1.4.1.1 "><p id="obs_11_0044__p153951131317">config</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.4.1.2 "><p id="obs_11_0044__p12395135316">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.5.2.1.4.1.3 "><p id="obs_11_0044__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>
</tbody>
</table>
</div>
</div>
<div class="section" id="obs_11_0044__section6926520122416"><h4 class="sectiontitle">Response</h4><p id="obs_11_0044__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>