[AWS Backup] AWS Backup์„ ์ด์šฉํ•˜์—ฌ Account ๋‚ด ์ธ์Šคํ„ด์Šค ๋ฐ ์Šคํ† ๋ฆฌ์ง€ ๋ฐฑ์—…ํ•˜๊ธฐ

2022. 6. 9. 23:15ใ†AWS

๐Ÿ“ข AWS ์„œ๋น„์Šค ๋ฐ ์›Œํฌ๋กœ๋“œ์—์„œ ๋ฐ์ดํ„ฐ ๋ฐฑ์—…์„ ์ž๋™ํ™”ํ•˜๊ณ  ๊ด€๋ฆฌ๋ฅผ ์ค‘์•™ ์ง‘์ค‘ํ™”ํ•˜๊ธฐ ์œ„ํ•ด AWS Backup์„ ์‚ฌ์šฉํ•ด๋ด…์‹œ๋‹ค~!

→ AWS Backup์ด ์ง€์›ํ•˜๋Š” ๋ฆฌ์†Œ์Šค ๋ณด๊ธฐ


๊ณ„์ • ๋‚ด ์„œ๋น„์Šค๋“ค์— ๋Œ€ํ•ด ๋ฐฑ์—…์„ ํ•  ์˜ˆ์ •์ด๋ผ AWS Backup ์ฝ˜์†”์—์„œ ์•„๋ž˜ ๋ฉ”๋‰ด๋“ค๋งŒ ์ด์šฉํ•˜์—ฌ ๋ฐฑ์—…์„ ์ž๋™ํ™”ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

AWS Backup > ์ขŒ์ธก ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”


 

1. Backup Vaults

๋ฐฑ์—… ๋ณผํŠธ๋ž€? ๋ฐฑ์—…์ด ์ €์žฅ๋˜๋Š” ์ปจํ…Œ์ด๋„ˆ (๊ทธ๋ฃนํ•‘์„ ์œ„ํ•œ ๊ทธ๋ฃน ๋Š๋‚Œ)

AWS Backup > Backup Vault

  • ๋ฐฑ์—… ๋ณผํŠธ์˜ ๋ฐฑ์—…์„ ์•”ํ˜ธํ™”ํ•˜๋Š”๋ฐ ์‚ฌ์šฉ๋˜๋Š” AWS KMS ์•”ํ˜ธํ™” ํ‚ค๋ฅผ ์„ค์ •ํ•˜๊ณ  ๋ฐฑ์—… ๋ณผํŠธ์˜ ๋ฐฑ์—…์— ๋Œ€ํ•œ ์•ก์„ธ์Šค๋ฅผ ์ œ์–ดํ•  ์ˆ˜ ์žˆ๋‹ค.
  • ์—ฌ๋Ÿฌ ๋ฐฑ์—… ๊ทธ๋ฃน์— ๋Œ€ํ•ด ์„œ๋กœ ๋‹ค๋ฅธ ์•”ํ˜ธํ™” ํ‚ค ๋˜๋Š” ์•ก์„ธ์Šค ์ •์ฑ…์ด ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์„ ํƒ์ ์œผ๋กœ ์—ฌ๋Ÿฌ ๋ฐฑ์—… ๋ณผํŠธ๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค.
    ๊ตณ์ด ๊ทธ๋ฃน์„ ๋‚˜๋ˆŒ ํ•„์š”๊ฐ€ ์—†๋‹ค๋ฉด ๋ชจ๋‘ ๊ธฐ๋ณธ ๋ฐฑ์—… ๋ณผํŠธ์— ๊ตฌ์„ฑํ•ด๋„ ์ƒ๊ด€ ์—†์Œ!

 


 

2. Backup Plans

Backup Plans์—์„œ๋Š” ๋ฐฑ์—… ์Šค์ผ€์ค„, ๋ฐฑ์—… ์œ ์ง€ ๊ทœ์น™ ๋ฐ lifecycle ๊ทœ์น™๋“ฑ์„ ์ •์˜ํ•œ๋‹ค.

 

2-1. ๋ฐฑ์—… ๊ตฌ์„ฑ ์„ค์ •

๋ฐฑ์—… ์ •์ฑ… ์ปค์Šคํ„ฐ๋งˆ์ด์ง•์„ ์œ„ํ•ด [Build a new plan] ์„ ํƒํ•˜์ž.

AWS Backup > Backup Plan > Build a new plan

2-2. ๋ฐฑ์—… ๊ทœ์น™ ๊ตฌ์„ฑ

AWS Backup > Backup Plan > Backup Rule Configuration

  • Backup valut : 1๋ฒˆ์—์„œ ์ƒ์„ฑํ•œ ๋ฐฑ์—… ๋ณผํŠธ๋ฅผ ์ง€์ •
  • Backup Frequency : ๋ฐฑ์—… ์ฃผ๊ธฐ ์ง€์ •
  • Backup Window
    • Backup Window๋ฅผ ์ง€์ •ํ•˜์—ฌ ๋ฐฑ์—…์„ ์‹œ์ž‘ํ•  ์‹œ๊ฐ„ ๋ฐ ๋ฐฑ์—…์„ ๋๋‚ด์•ผ ํ•˜๋Š” ์‹œ๊ฐ„์„ ์ง€์ •ํ•œ๋‹ค.
    • ๋ฐฑ์—…์„ ํ•ด์•ผํ•˜๋Š” ์šฉ๋Ÿ‰์ด ํฐ ๊ฒฝ์šฐ์— start within๊ณผ complete within์˜ ๊ฐ„๊ฒฉ์„ ๋„“ํžˆ๋Š” ๊ฒƒ์ด ์ข‹๋‹ค. ๊ทธ ์‹œ๊ฐ„ ๋‚ด ๋ฐฑ์—…์„ ์™„๋ฃŒํ•˜์ง€ ๋ชปํ• ์ •๋„๋กœ ๋ฐ์ดํ„ฐ๊ฐ€ ๋งŽ๋‹ค๋ฉด ๋ฐฑ์—…์— ์‹คํŒจํ•œ๋‹ค.
    • UTC time ๊ธฐ์ค€์ž„์„ ์ฃผ์˜ํ•˜์ž
  • Retension Period : ๋ฐฑ์—…ํ•œ ํŒŒ์ผ ์ €์žฅ ๊ธฐ๊ฐ„
    • AWS Backup์€ ๋น„์šฉ ์ ˆ๊ฐ์„ ์œ„ํ•ด ์ž๋™์œผ๋กœ ์„ค์ •ํ•œ ๊ธฐ๊ฐ„ ์ดํ›„์—๋Š” ์ž๋™์œผ๋กœ ์‚ญ์ œํ•œ๋‹ค.

2-3. Advanced backup settings

Windows Server, Microsoft SQL Server, Exchange Server์™€ SharePoint์— ๋Œ€ํ•œ ๋ฐฑ์—… ๊ทœ์น™์„ ์ƒ์„ฑ ์ค‘์ด๋ผ๋ฉด ํ•ด๋‹น ์˜ต์…˜์„ ํ™œ์„ฑํ™”ํ•œ๋‹ค.

AWS Backup > Backup Plan > Advanced backup settings

Windows VSS(Volume Shadow Copt Service)์— ๋Œ€ํ•ด์„  ์ž์„ธํžˆ ์•Œ์ง€ ๋ชปํ•˜์ง€๋งŒ

Windows EC2์— ๋Œ€ํ•œ ๋ฐฑ์—… ํ”Œ๋žœ ์ƒ์„ฑ ์‹œ, Windows Server: ๋ณผ๋ฅจ ์„€๋„ ๋ณต์‚ฌ๋ณธ ๋ฐ Windows Server ๋ฐฑ์—… ์˜ค๋ฅ˜ ๋ฌธ์ œ ํ•ด๊ฒฐ์˜ ์•„๋ž˜ ๋ฌธ๊ตฌ์— ๋”ฐ๋ผ Windows VSS ์˜ต์…˜์„ ํ™œ์„ฑํ™”ํ•˜์˜€๋‹ค.

Windows Server 2003๋ถ€ํ„ฐ ๋ชจ๋“  ๋ฒ„์ „์˜ Windows์—์„œ ๊ธฐ๋ณธ ๋ฐฑ์—… ์œ ํ‹ธ๋ฆฌํ‹ฐ(Windows Server ๋ฐฑ์—…, NTBackup์˜ ํ›„์† ์œ ํ‹ธ๋ฆฌํ‹ฐ)๋Š” ๋ณผ๋ฅจ ์„€๋„ ๋ณต์‚ฌ๋ณธ(VSS, ๋˜๋Š” ๋‹จ์ˆœํžˆ ์„€๋„ ๋ณต์‚ฌ๋ณธ)์— ์˜์กดํ•ฉ๋‹ˆ๋‹ค.

 


 

3. Resource Assignments

2๋ฒˆ์—์„œ ์ƒ์„ฑํ•œ ๋ฐฑ์—… ๊ทœ์น™์— ๋Œ€ํ•ด ์–ด๋–ค ๋ฐฉ์‹์œผ๋กœ ๋ฆฌ์†Œ์Šค๋“ค์„ ํ• ๋‹นํ• ์ง€ ๊ฒฐ์ •ํ•œ๋‹ค.

AWS Backup > Backup Plan > Resource assignments์—์„œ [Assign resources] ๋ฒ„ํŠผ ์„ ํƒ

3-1. IAM Role ์„ค์ •

AWS Backup > Backup Plan > Assign resources (1)

  • Default Role์„ ์„ ํƒํ•˜๋Š” ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์€ IAM ์—ญํ• ์ด ์ƒ์„ฑ๋œ๋‹ค.
arn:aws:iam::{Account-Number}:role/service-role/AWSBackupDefaultServiceRole

 

3-2. Assign Resources

๋ฐฑ์—… ํ”Œ๋žœ์„ ์ ์šฉํ•  ๋ฆฌ์†Œ์Šค ํ• ๋‹น ๋ฐฉ์‹์„ ๊ฒฐ์ •ํ•œ๋‹ค.

AWS Backup > Backup Plan > Assign resources (2)

1. Define resource selection

  • all resource types : AWS ์„œ๋น„์Šค (ex: S3)
  • specific resource types : ID๋กœ ์‹๋ณ„ ๊ฐ€๋Šฅํ•œ AWS ์„œ๋น„์Šค (ex: S3 ๋ฒ„ํ‚ท)
  • ๋ฐฑ์—… ๊ณ„ํš์— ํ• ๋‹นํ•  ๋ฆฌ์†Œ์Šค ์œ ํ˜• ๋˜๋Š” ๋ฆฌ์†Œ์Šค๋ฅผ ์„ธ๋ถ€์ ์œผ๋กœ ์ œ์–ดํ•˜๋ ค๋ฉด [specific resource types]๋ฅผ ์„ ํƒํ•œ๋‹ค.

2. Refine selection using tags

  • ํƒœ๊ทธ๋ฅผ ํ†ตํ•ด ๋ฆฌ์†Œ์Šค์— ํ• ๋‹นํ•  ๋ฐฑ์—… ๊ณ„ํš์„ ์ œ์–ดํ•  ์ˆ˜ ์žˆ๋‹ค.
    ์˜ˆ๋ฅผ ๋“ค์–ด, ์œ„ ์‚ฌ์ง„๊ณผ ๊ฐ™์ด ๋ฆฌ์†Œ์Šค์˜ ํƒœ๊ทธ ํ‚ค๊ฐ€ backup-policy์ด๊ณ  ๊ฐ’์ด backup-policy-01์ธ ๋ฆฌ์†Œ์Šค์— ํ•ด๋‹น ๋ฐฑ์—… ๊ณ„ํš์„ ์ ์šฉ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค.
  • equals ์™ธ์— contains, end with ๋“ฑ ๋‹ค์–‘ํ•œ ์กฐ๊ฑด์„ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋‹ค.
  • ํƒœ๊ทธ ํ‚ค-๊ฐ’ ์กฐํ•ฉ์€ ์—ฌ๋Ÿฌ๊ฐœ ์ถ”๊ฐ€ ๊ฐ€๋Šฅํ•˜๋ฉฐ AND ์กฐ๊ฑด์œผ๋กœ ์ž‘์šฉํ•œ๋‹ค.

 

3. ๋ฆฌ์†Œ์Šค ํƒœ๊ทธ ์ ์šฉ

2๋ฒˆ์—์„œ ์ƒ์„ฑํ•œ ๋ฐฑ์—… ๊ณ„ํš์„ ์ ์šฉ์‹œํ‚ฌ ๋ฆฌ์†Œ์Šค์˜ ํƒœ๊ทธ์— 3-2์—์„œ ์ƒ์„ฑํ•œ ํƒœ๊ทธ ๊ทœ์น™์„ ์ถ”๊ฐ€ํ•˜๋ฉด ํ•ด๋‹น ๋ฆฌ์†Œ์Šค๋Š” AWS Backup์— ์˜ํ•ด ๋ฐฑ์—…์ด ์ž๋™ํ™”๋˜๋ฉฐ ์ค‘์•™์ง‘์ค‘ํ™”ํ•˜์—ฌ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋‹ค.


AWS Backup > Jobs

๐Ÿ”ซ ๋ฐฑ์—… ์ž๋™ํ™” ์„ฑ๊ณต~!

 


๐Ÿ”— ์ฐธ๊ณ  ๋งํฌ

  1. AWS Backup ๊ฐœ์š”
  2. ์œˆ๋„์šฐ VSS ๋ฐฑ์—… ์ƒ์„ฑ
  3. Windows Server: ๋ณผ๋ฅจ ์„€๋„ ๋ณต์‚ฌ๋ณธ ๋ฐ Windows Server ๋ฐฑ์—… ์˜ค๋ฅ˜ ๋ฌธ์ œ ํ•ด๊ฒฐ