Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20211206_jaws-ug_asa_backup

h-ashisan
December 06, 2021

 20211206_jaws-ug_asa_backup

2021.12.6のJAWS-UG朝会で発表した内容です

h-ashisan

December 06, 2021
Tweet

More Decks by h-ashisan

Other Decks in Technology

Transcript

  1. EC2ΠϯελϯεͷBackupͬͯͲ͏͢ΔΜ͚ͩͬʁ  +"846(ேձ ͋͠͞Μ )JSPBLJ"TIJ[BXB

  2. ࣗݾ঺հ  ͋͠͞Μ /Ἑ୔޿ত (͋͟͠ΘͻΖ͖͋) • Ϋϥεϝιουגࣜձࣾ • AWSࣄۀຊ෦ίϯαϧςΟϯά෦ •

    ޷͖ͳαʔϏεɿ • JAWS-UGྺɿ1೥͘Β͍ • ࠷ۙͷϒʔϜɿຑ੃
  3. ࠓ೔࿩͢͜ͱ  EC2ͷόοΫΞοϓํ๏ʹ͍ͭͯ ෮शͯ͠Έͨ

  4.  ͦ΋ͦ΋EC2ͷόοΫΞοϓͬͯʁ

  5.  ɾεφοϓγϣοτͱAMIͷҧ͍ εφοϓγϣοτɿʮEBS ϘϦϡʔϜͷதͷσʔλʯΛಛఆͷλΠϛϯάͰऔಘ͠S3ʹอଘͨ͠΋ ͷ AMIɿʮEBS ϘϦϡʔϜͷதͷσʔλ(εφοϓγϣοτ) ͱΠϯελϯεΛߏ੒͢Δ؅ཧ৘ใʯΛ ؚΉىಈςϯϓϨʔτ https://aws.typepad.com/sajp/2014/04/trainingfaqbest10.html

  6.  ɾόοΫΞοϓͷߟ͑ํʹ͍ͭ ͯɺաڈͷࣾ಺ษڧձ͕ࢀߟʹ ͳͬͨͷͰ͝঺հ https:// dev.classmethod.jp/ articles/orekike-study- snapshot-and-backup/

  7. 

  8.  ֓ཁ ɾόοΫΞοϓʹඞཁͳ΋ͷ=σʔλͷෳ੡+੔߹ੑ(OS/ ΞϓϦ/DB) ɾجຊతͳSnapshot≠όοΫΞοϓ ɾσʔλͷ੔߹ੑΛߟྀͨ͠औಘํ๏΋͋Δ ྫʣϚϧνϘϦϡʔϜΫϥογϡ੔߹ੑɺVSS(WinͷΈ) ɾAMIͰ΋ಉ͘͡੔߹ੑ֬อ͕ඞཁ ɾαʔόͷఀࢭ౳Ͱ੩ࢭ఺ΛऔΓ੔߹ੑΛ֬อ

  9.  ཁ͢Δʹ ʢγεςϜཁ݅ʹ΋ΑΔ͕εφοϓγϣοτɾAMIͲͪΒ΋ʣ σʔλͷ੔߹ੑΛॏࢹ͠ͳ͍όοΫΞοϓΛݕ౼͢Δ৔߹ ͸ɺͦͷํ๏Ͱ΋ຊ౰ʹ໰୊͕ͳ͍͔͔ͬ͠Γ֬ೝ͠Α͏

  10.  ͲΜͳ΍Γํ͕͋Δʁ

  11.  ▪ AWS Backup ɾAWSαʔϏεશମͷόοΫΞοϓͷूத؅ཧΛࣗಈԽ ɾ2019/6/19 ౦ژϦʔδϣϯͰར༻Մೳʹ ɾEC2ରԠ͸2020/1/13ʙ ɾEC2Ҏ֎ʹ΋͞·͟·ͳαʔϏεΛαϙʔτ ɾRDSɺDynamoDBɺNeptuneɺDocumentDBɺEFSɺFsXͳͲ

  12.  ʙAWS Backup௚ۙͷUpdateʙ ɾre:invent2021ʹͯʮS3ʯରԠ ͢Δ͜ͱ͕ൃද ɾݱࡏ͸όʔδχΞ๺෦Ϧʔδϣϯ ɹͷΈରԠ(Preview൛) https://dev.classmethod.jp/ articles/aws-backup-for-s3- reinvent2021/

  13.  ▪ Amazon Data Lifecycle Manager(DLM) ɾSnapshot΍AMIऔಘɺϥΠϑαΠΫϧ؅ཧͷࣗಈԽ͕Ͱ͖Δ ɾ2019/8/22 ౦ژϦʔδϣϯͰར༻։࢝ ɾAWSίϯιʔϧ্͸EBSͷҰػೳͱ͍͏ཱͯ෇͚

  14.  ൺֱͯ͠Έͨ

  15. جຊతͳ͜ͱ  "84#BDLVQ "NB[PO%-. αʔϏεར༻ྉۚ ແྉ  όοΫΞοϓऔಘͷΈͷ৔߹ ఏڙݩ ɾαʔϏεར༻ྉۚ͸ແྉ

    ɾͲͪΒ΋AWSϚωʔδυαʔϏε
  16. όοΫΞοϓํ๏  "84#BDLVQ "NB[PO%-. όοΫΞοϓํ๏ &$".* 4OBQTIPU 4OBQTIPU 744 &$".*

    4OBQTIPU ɾEC2 AMIͱSnapshotͷऔಘ͸ͲͪΒ΋ରԠ ɾAWS Backup͸ɺSnapshot(VSS)ʹରԠ
  17. όοΫΞοϓ࣌ͷ࠶ىಈ  "84#BDLVQ "NB[PO%-. όοΫΞοϓ࣌ͷ ࠶ىಈ ❌  ✅ 

     ˠϙϦγʔͷ Φϓγϣϯࢦఆ ɾAWS Backup͸αʔόఀࢭʹΑΔ੩ࢭ఺͕ͱΕͳ͍ ɾAmazon DLM΋ɺෳ਺Πϯελϯεಉ࣌ʹ࠶ىಈ͕૸ͬͯ͠· ͏৔߹͕͋ΔͷͰɺ࠶ىಈ࣌ؒͷߟྀ͸ඞཁ
  18. ΦϯσϚϯυ खಈ όοΫΞοϓ  "84#BDLVQ "NB[PO%-. ΦϯσϚϯυ खಈ  όοΫΞοϓ

    ✅ ˠ࣮ߦ͔ͯ͠Β ࣌ؒҎ಺ʹ։࢝ ඇରԠ ɾAWS Backup͸ରԠ͍ͯ͠Δ͕ɺଈ࣮࣌ߦͰͳ͍ͷͰ஫ҙ
  19. ϥΠϑαΠΫϧ؅ཧ  "84#BDLVQ "NB[PO%-. ϥΠϑαΠΫϧ؅ཧ FYQJSF SFUBJO ϥΠϑαΠΫϧ؅ཧ͸ҎԼͷ̎ύλʔϯ͕͋Δ ɾretain(อ࣋)ɿอ࣋ݸ਺Λࢦఆɺࢦఆ਺Λ௒͑ͨΒݹ͍΋ͷΛ࡟আ ɾexpire(ظݶ੾Ε)ɿ༗ޮظݶΛࢦఆɺظݶ੾ΕͰ࡟আɹɹɹɹɹɹɹɹ

  20. ΫϩεϦʔδϣϯίϐʔ  "84#BDLVQ "NB[PO%-. ΫϩεϦʔδϣϯ ίϐʔ ✅ ˠόοΫΞοϓϧʔϧຖʹ Ϧʔδϣϯ ✅

    ˠϙϦγʔຖʹ Ϧʔδϣϯ·Ͱ ɾΫϩεϦʔδϣϯίϐʔ͸ͲͪΒ΋ରԠ ɾͦΕͧΕͷ୯ҐͰϦʔδϣϯΛࢦఆ
  21. ͦͷଞ  "84#BDLVQ "NB[PO%-. ΫϩεΞΧ΢ϯτ ίϐʔ ✅ ❌  ίʔϧυετϨʔδҠߦ

    ɾҎԼͷΑ͏ͳػೳ͸AWS BackupͷΈରԠ
  22.  ݁ہͲΕ͕͍͍ͷʁ

  23.  ɾSnapshot or AMIʁ ɾͲͪΒ΋੔߹ੑ֬อ͕ඞཁͳ͜ͱ͸ಉ͡ ɾҎԼͷΑ͏ͳҧ͍͕͋Δ͜ͱΛཧղ͠ɺόοΫΞοϓํࣜ Λݕ౼͢Δ ɾSnapshot=Ϣʔβʔσʔλ ɾAMI=ϝλσʔλ+Ϣʔβʔσʔλ

  24.  ɾBackup or DLM ɾ͜Μͳ৔߹ͳΒAWS Backup ɾ࠶ىಈҎ֎ͷ੩ࢭ఺֬อ͕Մೳɺ΋͘͠͸AMIόοΫΞοϓʹݫ ີͳ੔߹ੑΛཁٻ͞Εͳ͍৔߹ ɾϚϧνΞΧ΢ϯτ؅ཧɺίʔϧυετϨʔδҠߦͳͲͬͪ͜Ͱ͠ ͔Ͱ͖ͳ͍ཁ͕݅͋Δ৔߹

    ɾ͜Μͳ৔߹ͳΒAmazon DLM ɾAMIόοΫΞοϓͰ࠶ىಈʹΑΔ੩ࢭ఺֬อ͕ඞཁͳ৔߹
  25.  ·ͱΊ

  26.  ɾ·ͱΊ ɾSnapshotͱAMIͷҧ͍Λཧղ͠Α͏ ɾόοΫΞοϓͱ͸ʁΛ࠶ೝࣝ͠Α͏ ɾཁ݅ʹ߹ΘͤͯόοΫΞοϓํ๏Λબ୒͠Α͏

  27. None