Files
doc-exports/docs/csbs/umn/en-us_topic_0056584629.html
weihongmin1 c336743d9b CSBS UMN 0729 Version
Reviewed-by: Muller, Martin <martin.muller@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2025-07-31 12:59:04 +00:00

127 lines
19 KiB
HTML

<a name="en-us_topic_0056584629"></a><a name="en-us_topic_0056584629"></a>
<h1 class="topictitle1">Creating a Backup Policy</h1>
<div id="body1502854061769"><p id="en-us_topic_0056584629__p8060118">A <span class="keyword" id="en-us_topic_0056584629__keyword2003327665112740">backup policy</span> can drive the system to automatically execute CSBS backup jobs at the specified interval. <span class="keyword" id="en-us_topic_0056584629__keyword272117820112754">Periodic backups</span> can be used to restore data quickly against data corruption or loss.</p>
<div class="section" id="en-us_topic_0056584629__section3333171185517"><h4 class="sectiontitle">Context</h4><ul id="en-us_topic_0056584629__ul193336145517"><li id="en-us_topic_0056584629__li1833312165517">Automatic backup jobs require enabling the backup policy. The system automatically backs up ECSs associated with the backup policy and deletes expired backups.</li><li id="en-us_topic_0056584629__li733314115519">Each user can create a maximum of 32 backup policies.</li><li id="en-us_topic_0056584629__li391314408556">A maximum of 64 ECSs can be associated with a backup policy.</li></ul>
</div>
<div class="section" id="en-us_topic_0056584629__section1873403013810"><h4 class="sectiontitle">Procedure</h4><ol id="en-us_topic_0056584629__ol751521512917"><li id="en-us_topic_0056584629__li1922917331591"><span>Log in to the CSBS management console.</span><p><ol type="a" id="en-us_topic_0056584629__en-us_topic_0056584642_ol6567385123151"><li id="en-us_topic_0056584629__en-us_topic_0056584642_li5480597823151">Log in to the management console.</li><li id="en-us_topic_0056584629__en-us_topic_0056584642_li69106284253">Click <span><img id="en-us_topic_0056584629__en-us_topic_0056584642_image1844744225011" src="en-us_image_0148411635.png"></span> in the upper left corner of the management console and select a region and a project.</li><li id="en-us_topic_0056584629__en-us_topic_0056584642_li4225424523410">Under Storage &gt; <strong id="en-us_topic_0056584629__en-us_topic_0056584642_b35353584428">Cloud Server Backup Service</strong>.</li></ol>
</p></li><li id="en-us_topic_0056584629__li113753917916"><span>On the <span class="wintitle" id="en-us_topic_0056584629__wintitle1437318995018"><b>Policies</b></span> tab page, click <span class="uicontrol" id="en-us_topic_0056584629__uicontrol14373497504"><b>Create Backup Policy</b></span>. See <a href="#en-us_topic_0056584629__fig1156071920406">Figure 1</a>.</span><p><div class="fignone" id="en-us_topic_0056584629__fig1156071920406"><a name="en-us_topic_0056584629__fig1156071920406"></a><a name="fig1156071920406"></a><span class="figcap"><b>Figure 1 </b>Creating a backup policy</span><br><span><img id="en-us_topic_0056584629__image5969953404" src="en-us_image_0198726086.png" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="en-us_topic_0056584629__li1975152181415"><span>Set the backup policy parameters according to <a href="#en-us_topic_0056584629__table18975142115146">Table 1</a>.</span><p>
<div class="tablenoborder"><a name="en-us_topic_0056584629__table18975142115146"></a><a name="table18975142115146"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0056584629__table18975142115146" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0056584629__row1997514210149"><th align="left" class="cellrowborder" valign="top" width="15.151515151515152%" id="mcps1.3.3.2.3.2.1.2.4.1.1"><p id="en-us_topic_0056584629__p13976421151411">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.515151515151516%" id="mcps1.3.3.2.3.2.1.2.4.1.2"><p id="en-us_topic_0056584629__p1497652113146">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.333333333333336%" id="mcps1.3.3.2.3.2.1.2.4.1.3"><p id="en-us_topic_0056584629__p1597662113147">Remarks</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0056584629__row4976122191416"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.3.2.1.2.4.1.1 "><p id="en-us_topic_0056584629__p6976162141412">Name</p>
</td>
<td class="cellrowborder" valign="top" width="51.515151515151516%" headers="mcps1.3.3.2.3.2.1.2.4.1.2 "><p id="en-us_topic_0056584629__p18976321111413">Backup policy name.</p>
<p id="en-us_topic_0056584629__p79769215148">It is a string of 1 to 255 characters that can contain only digits, letters, underscores (_), and hyphens (-).</p>
</td>
<td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.3.3.2.3.2.1.2.4.1.3 "><p id="en-us_topic_0056584629__p1697662117143">backup_policy</p>
</td>
</tr>
<tr id="en-us_topic_0056584629__row1248223165716"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.3.2.1.2.4.1.1 "><p id="en-us_topic_0056584629__p104838317576">Status</p>
</td>
<td class="cellrowborder" valign="top" width="51.515151515151516%" headers="mcps1.3.3.2.3.2.1.2.4.1.2 "><p id="en-us_topic_0056584629__p548333175713">Whether to enable the backup policy.</p>
<ul id="en-us_topic_0056584629__ul14659163365820"><li id="en-us_topic_0056584629__li12659833135819">Enabled: <span><img id="en-us_topic_0056584629__image82561154143416" src="en-us_image_0238025635.png"></span></li><li id="en-us_topic_0056584629__li37581036155819">Disabled: <span><img id="en-us_topic_0056584629__image192651120192716" src="en-us_image_0148568289.png"></span></li></ul>
</td>
<td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.3.3.2.3.2.1.2.4.1.3 "><p id="en-us_topic_0056584629__p15483131105714">Only after the backup policy is enabled, the system automatically backs up ECSs associated with the backup policy and deletes expired backups.</p>
</td>
</tr>
<tr id="en-us_topic_0056584629__row1631531981516"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.3.2.1.2.4.1.1 "><p id="en-us_topic_0056584629__p331615194152">Execution Time</p>
</td>
<td class="cellrowborder" valign="top" width="51.515151515151516%" headers="mcps1.3.3.2.3.2.1.2.4.1.2 "><p id="en-us_topic_0056584629__p14316419131512">Execution time of the backup policy in a day</p>
<p id="en-us_topic_0056584629__p1445292591817">A maximum of 24 backup times can be set in a day. The backup interval must be one hour or more. If backup jobs are executed in two consecutive days, the interval between the execution times of the last backup of the former day and the first backup of the latter day must be one hour or more.</p>
<p id="en-us_topic_0056584629__p1956165211711"></p>
</td>
<td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.3.3.2.3.2.1.2.4.1.3 "><p id="en-us_topic_0056584629__p631620196155">00:00, 02:00</p>
<p id="en-us_topic_0056584629__p19767124972810">It is recommended that backup jobs be executed during off-peak hours or when there are no services running.</p>
</td>
</tr>
<tr id="en-us_topic_0056584629__row8447021201515"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.3.2.1.2.4.1.1 "><p id="en-us_topic_0056584629__p12447122111511">Backup Period</p>
</td>
<td class="cellrowborder" valign="top" width="51.515151515151516%" headers="mcps1.3.3.2.3.2.1.2.4.1.2 "><p id="en-us_topic_0056584629__p2099535614183">Dates for executing the backup job.</p>
<ul id="en-us_topic_0056584629__ul172457131819"><li id="en-us_topic_0056584629__li112657141810">Weekly<p id="en-us_topic_0056584629__p17814654190"><a name="en-us_topic_0056584629__li112657141810"></a><a name="li112657141810"></a>Specifies on which days of each week the backup job will be executed. You can select multiple days.</p>
</li><li id="en-us_topic_0056584629__li3285711813">Daily<p id="en-us_topic_0056584629__p1510912112020"><a name="en-us_topic_0056584629__li3285711813"></a><a name="li3285711813"></a>Specifies the interval (every 1 to 30 days) for executing the backup job.</p>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.3.3.2.3.2.1.2.4.1.3 "><p id="en-us_topic_0056584629__p20229131519311">Every day</p>
<p id="en-us_topic_0056584629__p35261251144815">If you select <strong id="en-us_topic_0056584629__b12865125557">Daily</strong>, the first backup time is supposed to be on the day when the backup policy is created. If the creation time of the backup policy is later than the latest execution time, the initial backup will be performed in the next backup cycle.</p>
<p id="en-us_topic_0056584629__p780882374520">It is recommended that backup jobs be executed during off-peak hours or when there are no services running.</p>
</td>
</tr>
<tr id="en-us_topic_0056584629__row9482950131718"><td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.3.2.3.2.1.2.4.1.1 "><p id="en-us_topic_0056584629__p1648219506178">Retention Rule</p>
</td>
<td class="cellrowborder" valign="top" width="51.515151515151516%" headers="mcps1.3.3.2.3.2.1.2.4.1.2 "><p id="en-us_topic_0056584629__p9482850191713">Rule that specifies how backups will be retained.</p>
<ul id="en-us_topic_0056584629__ul1544815182330"><li id="en-us_topic_0056584629__li1444810182331">Time Period<p id="en-us_topic_0056584629__p493811214366"><a name="en-us_topic_0056584629__li1444810182331"></a><a name="li1444810182331"></a>You can choose to retain backups for one month, three months, six months, or one year, or for any desired number (1 to 99999) of days.</p>
</li><li id="en-us_topic_0056584629__li789912231335">Backup Quantity<p id="en-us_topic_0056584629__p5958151317388"><a name="en-us_topic_0056584629__li789912231335"></a><a name="li789912231335"></a>Specifies the maximum allowed number of backups for a single ECS. The value ranges from 1 to 99999.</p>
<p id="en-us_topic_0056584629__p6857171719502">You can also set long-term retention rules. Long-term retention rules can be effective together with quantity-based retention rules.</p>
<ul id="en-us_topic_0056584629__ul143454010416"><li id="en-us_topic_0056584629__li1582955715319">The value range for daily backup retention is 0 to 100.</li><li id="en-us_topic_0056584629__li855083661812">The value range for weekly backup retention is 0 to 100.</li><li id="en-us_topic_0056584629__li131821712162412">The value range for monthly backup retention is 0 to 100.</li><li id="en-us_topic_0056584629__li6979171872418">The value range for yearly backup retention is 0 to 100.</li></ul>
<p id="en-us_topic_0056584629__p19619102842411">For example, if you select daily backup, the system retains the latest backup every day. Although the disk is backed up for multiple times in a day, only the last backup of the current day is retained. If you set the retention number to 5, the latest five daily backups are retained. If there are more than five backup files, the system automatically deletes the earliest backups. If the daily backup, weekly backup, monthly backup, and yearly backup are all configured, the union backups are selected for retention. The long-term retention rule and the backup quantity can be executed at the same time, not generating conflicts.</p>
</li><li id="en-us_topic_0056584629__li29981857153016">Permanent<div class="note" id="en-us_topic_0056584629__note5251621114717"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="en-us_topic_0056584629__ul513693919476"><li id="en-us_topic_0056584629__li01369396478">When the number of retained backups exceeds the preset value, the system automatically deletes the earliest backups. When the retention periods of retained backups exceed the preset value, the system automatically deletes all expired backups. By default, the system automatically clears data every other day. The deleted backup does not affect other backups for restoration.</li><li id="en-us_topic_0056584629__li384017714137">This parameter applies only to backups automatically scheduled by a backup policy. Those backups generated by a manually executed backup policy are not affected by this parameter and are not automatically deleted. You can manually delete them from the backup list.</li><li id="en-us_topic_0056584629__li1279668184812">After a backup is used to create an image, the backup will not be counted as a retained backup and will not be deleted automatically.</li><li id="en-us_topic_0056584629__li9912114013475">A maximum of 10 backups are retained for failed periodic backup jobs. They are retained for one month and can be manually deleted.</li></ul>
</div></div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.3.3.2.3.2.1.2.4.1.3 "><p id="en-us_topic_0056584629__p1648275016171">6 months</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="en-us_topic_0056584629__note173011525434"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0056584629__p1673135254313">More frequent backup intervals create more backups or retain backups for a longer time, protecting data with a higher level but occupying more storage space. Set an appropriate backup period as required.</p>
</div></div>
</p></li><li id="en-us_topic_0056584629__li3992613312"><span>Add tags to the backup.</span><p><p id="en-us_topic_0056584629__p679254119335">A tag is represented in the form of a key-value pair. Tags are used to identify, classify, and search for cloud resources.</p>
<p id="en-us_topic_0056584629__p17998613113">Tags added in a backup policy apply to all backups generated using the backup policy. These tags are used to filter and manage backup resources only. A backup policy can have a maximum of 10 tags.</p>
<div class="p" id="en-us_topic_0056584629__p189721255144519"><a href="#en-us_topic_0056584629__table1499463312">Table 2</a> describes parameters of a tag.
<div class="tablenoborder"><a name="en-us_topic_0056584629__table1499463312"></a><a name="table1499463312"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0056584629__table1499463312" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0056584629__row7997693112"><th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.3.2.4.2.3.2.2.4.1.1"><p id="en-us_topic_0056584629__p610096163114">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="63%" id="mcps1.3.3.2.4.2.3.2.2.4.1.2"><p id="en-us_topic_0056584629__p111001683118">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.3.2.4.2.3.2.2.4.1.3"><p id="en-us_topic_0056584629__p13176100134">Example Value</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0056584629__row41005620310"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.3.2.2.4.1.1 "><p id="en-us_topic_0056584629__p51007653114">Key</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.2.4.2.3.2.2.4.1.2 "><p id="en-us_topic_0056584629__p1100765311">Tag key. Each tag of a backup policy has a unique key. The key of a tag is user-definable or is selected from those of existing tags in TMS.</p>
<p id="en-us_topic_0056584629__p1310012619313">The naming rule of a tag key is as follows:</p>
<ul id="en-us_topic_0056584629__ul20115438812"><li id="en-us_topic_0056584629__li375533714499">It ranges from 1 to 36 Unicode characters.</li><li id="en-us_topic_0056584629__li1033383817912">It can contain only letters, digits, hyphens (-), and underscores (_).</li></ul>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.4.2.3.2.2.4.1.3 "><p id="en-us_topic_0056584629__p1617616012310">Key_0001</p>
</td>
</tr>
<tr id="en-us_topic_0056584629__row1310014614314"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.3.2.2.4.1.1 "><p id="en-us_topic_0056584629__p141001968315">Value</p>
</td>
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.2.4.2.3.2.2.4.1.2 "><p id="en-us_topic_0056584629__p1510056203114">Tag value. Tag values can be repetitive or null.</p>
<p id="en-us_topic_0056584629__p2100186133115">The naming rule of a tag value is as follows:</p>
<ul id="en-us_topic_0056584629__ul211610318811"><li id="en-us_topic_0056584629__li6116835814">It ranges from 0 to 43 Unicode characters.</li><li id="en-us_topic_0056584629__li44213463516">It can contain only letters, digits, hyphens (-), and underscores (_).</li></ul>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.4.2.3.2.2.4.1.3 "><p id="en-us_topic_0056584629__p19176601033">Value_0001</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</p></li><li id="en-us_topic_0056584629__li20634736195716"><span>Click <strong id="en-us_topic_0056584629__b842352706161352">OK</strong>.</span></li><li id="en-us_topic_0056584629__li10648123785811"><span>In the row of the backup policy, click <span class="uicontrol" id="en-us_topic_0056584629__uicontrol209678669583616"><b>Associate Server</b></span>. See <a href="#en-us_topic_0056584629__fig154919316596">Figure 2</a>.</span><p><div class="fignone" id="en-us_topic_0056584629__fig154919316596"><a name="en-us_topic_0056584629__fig154919316596"></a><a name="fig154919316596"></a><span class="figcap"><b>Figure 2 </b>Associating servers</span><br><span><img id="en-us_topic_0056584629__image107211449192915" src="en-us_image_0164875135.png" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="en-us_topic_0056584629__li1277412221115"><span>In the available server list, select the ECSs you want to associate. After ECSs are selected, they are added to the list of selected servers.</span><p><div class="note" id="en-us_topic_0056584629__note0642195114215"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0056584629__ul59243521620"><li id="en-us_topic_0056584629__li69257522215">A maximum of 64 ECSs can be associated with a backup policy.</li><li id="en-us_topic_0056584629__li1992515527214">If a selected ECS has been associated with another backup policy, it will be disassociated from the original backup policy automatically and then associated with the new backup policy.</li><li id="en-us_topic_0056584629__li692518521210">If EVS disks on an ECS have been associated with a VBS backup policy, disassociate them from the VBS backup policy. Otherwise, two backups are generated for each of the EVS disks.</li><li id="en-us_topic_0056584629__li174299590201">CSBS supports backing up ECSs with shared EVS disks.</li><li id="en-us_topic_0056584629__li1032673005516">You can only select ECSs that are in the <strong id="en-us_topic_0056584629__b84235270617248">Running</strong> or <strong id="en-us_topic_0056584629__b842352706172415">Stopped</strong> state.</li></ul>
</div></div>
</p></li><li id="en-us_topic_0056584629__li499617216210"><span>Click <strong id="en-us_topic_0056584629__b842352706103741">OK</strong>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0056584624.html">Backup Policies</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>