自动备份

<p class="shortdesc">本文主要介绍如何进行自动备份。</p> <section class="section prereq" id="Automated_Backup__prereq_f1d_xbw_2tb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div> <p class="p">您已成功创建常规实例,可参考<a class="xref" href="/ssr/help/database/MySQL/Guide.IM.CIns.CCom" target="_blank" rel="external noopener">创建常规实例</a>。</p> </section> <section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div> <ol class="ol" id="Automated_Backup__ol_ivv_qw2_hsb"> <li class="li">仅常规实例支持备份操作。</li> <li class="li"><span class="ph uicontrol">备份启动时间</span>与<span class="ph uicontrol">维护时间</span>不能存在交集,维护时间的相关内容可参考<a class="xref" href="/ssr/help/database/MySQL/Guide.IM.Time_Segment" target="_blank" rel="external noopener">设置维护时间</a>。</li> </ol> </section> <section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">以资源组管理员身份登录<a class="xref" href="https://www.ocftcloud.com/console/rds/mysql" target="_blank" rel="external noopener">RDS-MySQL管理控制台</a>。</span> </li><li class="li step stepexpand"> <span class="ph cmd"> 单击左侧导航栏<span class="ph uicontrol">RDS-MySQL</span>,进入<span class="ph uicontrol">云数据库管理</span>页面。</span> </li><li class="li step stepexpand"> <span class="ph cmd">选择目标地域。</span> </li><li class="li step stepexpand"> <span class="ph cmd">单击目标实例<span class="ph uicontrol">操作</span>列的<span class="ph uicontrol">管理</span>,选择<span class="ph uicontrol">备份管理</span>页签。</span> </li><li class="li step stepexpand"> <span class="ph cmd">选择<span class="ph uicontrol">备份设置</span>页签,设置并查看自动备份策略。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在<span class="ph uicontrol">备份策略</span>区域,可查看当前的备份策略。</span> <div class="itemgroup info"> <table class="table" id="Automated_Backup__table_oq4_ww2_hsb"><caption></caption><colgroup><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry colsep-1 rowsep-1" id="Automated_Backup__table_oq4_ww2_hsb__entry__1"> <p class="p">配置项</p> </th> <th class="entry colsep-1 rowsep-1" id="Automated_Backup__table_oq4_ww2_hsb__entry__2"> <p class="p">说明</p> </th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__1 "> <p class="p"> 备份保留时间 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__2 "> <p class="p">自动备份的数据保留时间,默认情况是1个月。</p> <p class="p">可通过<span class="ph uicontrol">调整策略</span>区域的<span class="ph uicontrol">数据备份保留时间</span>设置。</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__1 "> <p class="p"> 日志备份保留时间 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__2 "> <p class="p">自动备份的日志保留时间,默认情况是1个月。</p> <p class="p">可通过<span class="ph uicontrol">调整策略</span>区域的<span class="ph uicontrol">日志备份保留时间</span>设置。</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__1 "> <p class="p"> 数据备份周期 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__2 "> <p class="p">自动备份的备份周期,默认情况是每天备份。</p> <p class="p">可通过<span class="ph uicontrol">调整策略</span>区域的<span class="ph uicontrol">备份周期</span>设置。</p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__1 "> <p class="p"> 备份启动时间 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_oq4_ww2_hsb__entry__2 "> <p class="p">自动备份的启动时间,默认情况是23:00-00:00。</p> <p class="p">可通过<span class="ph uicontrol">调整策略</span>区域的<span class="ph uicontrol">备份启动时间</span>设置。</p> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击页面右上角的<span class="ph uicontrol">调整策略</span>,进入<span class="ph uicontrol">调整策略</span>页面。</span> </li><li class="li step stepexpand"> <span class="ph cmd">根据以下信息设置自动备份策略。</span> <div class="itemgroup info"> <table class="table" id="Automated_Backup__table_qqr_zw2_hsb"><caption></caption><colgroup><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry colsep-1 rowsep-1" id="Automated_Backup__table_qqr_zw2_hsb__entry__1"> <p class="p">配置项</p> </th> <th class="entry colsep-1 rowsep-1" id="Automated_Backup__table_qqr_zw2_hsb__entry__2"> <p class="p">说明</p> </th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__1 "> <p class="p"> 数据备份保留时间 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__2 "> <p class="p">默认情况是1个月。可设置为周、月和年:</p> <ul class="ul" id="Automated_Backup__ul_rqr_zw2_hsb"> <li class="li">以周为单位时,取值范围是2~4周</li> <li class="li">以月为单位时,取值范围是1~11月。</li> <li class="li">以年为单位时,取值范围是1~5年。</li> </ul> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__1 "> <p class="p"> 日志备份保留时间 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__2 "> <p class="p">自动备份的数据保留时间,默认情况是1个月。</p> <ul class="ul" id="Automated_Backup__ul_e2v_ctf_m5b"> <li class="li">以周为单位时,取值范围是2~4周</li> <li class="li">以月为单位时,取值范围是1~11。</li> <li class="li">以年为单位时,取值范围是1~5年。</li> </ul> <div class="note note note_note" id="Automated_Backup__note_f2v_ctf_m5b"><span class="note__title">说明:</span> <p class="p"><strong class="ph b">数据备份保留时间</strong>和<strong class="ph b">日志备份保留时间</strong>是同步的,两者的值不能分开设置。</p> </div> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__1 "> <p class="p"> 备份启动时间 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__2 "> <p class="p"> 自动备份的启动时间。 </p> </td> </tr> <tr class="row"> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__1 "> <p class="p"> 数据备份周期 </p> </td> <td class="entry colsep-1 rowsep-1" headers="Automated_Backup__table_qqr_zw2_hsb__entry__2 "> <p class="p"> 设置目标数据备份周期。 </p> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<span class="ph uicontrol">确定</span>。</span> </li></ol></section> <section class="section result"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div> <ul class="ul"> <li class="li">页面底部提示<span class="ph uicontrol">操作成功</span>。</li> <li class="li"> <span class="ph uicontrol">备份策略</span>区域的<span class="ph uicontrol">备份周期</span>设置的目标值。</li> </ul> </section> <section class="section postreq" id="Automated_Backup__postreq_ntk_bx2_hsb"><div class="tasklabel"><h2 class="doc-tairway">后续操作</h2></div> <ul class="ul" id="Automated_Backup__ul_twp_bx2_hsb"> <li class="li">在<span class="ph uicontrol">备份管理</span>页签,选择<span class="ph uicontrol">备份任务</span>,可查看所有备份记录。</li> <li class="li">可根据时间搜索备份数据。</li> <li class="li"><strong class="ph b">备份策略</strong>区域不设置<strong class="ph b">备份周期</strong>,即<strong class="ph b">备份周期</strong>的周一到周日均不勾选,即可<strong class="ph b">关闭自动备份功能</strong>。</li> <li class="li">可选择目标数据备份记录进行恢复,可参考<a class="xref" href="/ssr/help/database/MySQL/Guide.Backup_and_Restore.Restore" target="_blank" rel="external noopener">恢复备份</a>。</li> </ul> </section>
以上内容是否解决了您的问题?
请补全提交信息!
联系我们

电话咨询

400-151-8800

邮件咨询

fincloud@ocft.com

在线客服

工单支持

解决云产品相关技术问题