Native Backup

对於大部分DBA来说, 使用指令可能还是比较方便, 不论写成Job或是Store Procedure也比较容易维护. AWS也提供RDS指令备份到S3的功能.

  1. 要先为备份准备一个S3 Bucket.
    https://ithelp.ithome.com.tw/upload/images/20211002/200919420GXRAczjL0.png

  2. 到RDS点选 [Option groups], 输入相对应的SQL版本. 例如此实作的databases建立在SQL 2019 Standard Edition, 因此Engine -> sqlserver-se, Version -> 15.00
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942UokT4wjPK2.png

  3. 建立好Group之後, 为它新增option.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942zSvbHc6ZC7.png

  4. 在Option内 [Option name] 选择 [SQLSERVER_BACKUP_RESTORE].
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942irLy4nKaVw.png

  5. 为它建立一个新的 [IAM role], [S3 destination] 选择刚刚建立的bucket.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942R0t4JL6gKZ.png

  6. 在会後要 [Add option] 之前, 点选 [Immediately] 让它立即生效.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942r2A19ZTSB2.png

  7. 建立完成後就会出现绿色通知.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942UYd2bOWHOr.png

  8. 接着回到RDS, 选取来源资料库, 在[Additional configuration] -> [Database options] -> [Option group] 指定刚建立的option.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942NUxwR1Hxaj.png

  9. 最後同样点选 [Immediately] 让它立即生效.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942gtrqqh7cqF.png

  10. 接下来回到S3, 因为需要备份目的地的资讯. S3使用ARN. 点选 [Copy ARN].
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942wlEBpRyxck.png

  11. 在SSMS的msdb使用以下指令备份到S3. (修改相对应的ARN)
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942iWDPVSrYHf.png

  12. 从S3使用指令还原.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942Ej5AlsCjqv.png

  13. 到S3 Bucket内可看到备份的BAK.
    https://ithelp.ithome.com.tw/upload/images/20211002/20091942r6pgx1q0Sn.png


<<:  Day 20【ERC-721】They don't know I own this song's non-fungible token

>>:  Day17 资料库-model的创建(3)

[从0到1] C#小乳牛 练成基础程序逻辑 Day 11 - Flow Chart ○♢▭ 五种流程图案 线上绘制工具

五种流程图案○♢▭ | 线上绘制工具 | draw.io 🐄点此填写今日份随堂测验 ...

javascript基础功能2

现在要来学习如何制作一个表格,并且对其文字粗细加工,还有边框的变换以及表格的样式改变。 首先我们先打...

如何在 WordPress 放上 Google AdSense 广告 - 为网站增加被动收入

当我们经营 WordPress 一段时间之後,许多朋友透过 Google 搜寻或是 FB 或其他社群...

如果你竭尽全力,就不会有时间担心失败。

如果你竭尽全力,就不会有时间担心失败。 If you're doing your best, you...

使用Vertex汇出的模型 | ML#Day26

模型训练完成後,除了使用Vertex的一键部署,若想要自行部署或在自己电脑上使用该怎麽做呢? 跟大家...