Wednesday, August 6, 2025

✅ 5. Implement Backup and Disaster Recovery on Windows Server 2022








🔹 Part 1: Install Windows Server Backup Feature

✅ Method A: GUI via Server Manager

  1. Open Server Manager

  2. Click Manage > Add Roles and Features

  3. Choose Role-based or feature-based installation

  4. Click Next until you reach Features

  5. Check Windows Server Backup

  6. Click Install


✅ Method B: PowerShell

powershell
Install-WindowsFeature -Name Windows-Server-Backup

🔹 Part 2: Schedule Automated Backups

✅ Step-by-Step (Windows Server Backup)

  1. Open Windows Server Backup (Start Menu)

  2. Click Local Backup > Backup Schedule

  3. Wizard setup:

    • Select Full server or Custom (e.g., files, AD, VMs)

    • Set frequency: Daily or Weekly

    • Choose backup time

  4. Choose backup destination:

    • Dedicated disk

    • Network Share

    • External USB

  5. Confirm and finish

Include in Custom Backup:

  • System State (for AD)

  • D:\Shares (client data)

  • Hyper-V folder (e.g., C:\ProgramData\Microsoft\Windows\Hyper-V)


🔹 Part 3: Backup Storage Best Practices

  • 🧩 Use external drive, NAS, or separate internal disk

  • 🧳 Rotate drives weekly for offsite storage

  • 🧱 Never back up to the same disk as the server OS

  • ☁️ Consider tools like Azure Backup, Veeam, or Altaro


🔹 Part 4: Backup Active Directory (System State)

✅ Method A: PowerShell

powershell
wbadmin start systemstatebackup -backuptarget:D:\

✅ Method B: GUI

  1. Open Windows Server Backup

  2. Click Backup Once > Custom

  3. Select System State

  4. Choose backup location

  5. Start the backup


🔹 Part 5: Backup Hyper-V Virtual Machines

✅ Method A: Export VM (Manual)

  1. Open Hyper-V Manager

  2. Right-click the VM > Export

  3. Choose destination (e.g., E:\Backups\Client1-VM)

  4. Export includes .VHDX, config, and snapshot

✅ Method B: Schedule VM Backup

  1. Open Windows Server Backup

  2. Choose Custom > Add Items

  3. Include folders containing VM files

    • Usually: C:\ProgramData\Microsoft\Windows\Hyper-V\


🔹 Part 6: Test Restore Procedures

✅ File Restore

  1. Open Windows Server Backup > Recover

  2. Select backup location and date

  3. Choose Files and Folders

  4. Restore to original or new location


✅ Active Directory Restore (System State)

  1. Reboot into Directory Services Restore Mode (DSRM)

  2. Log in with DSRM password

  3. Run:

powershell
wbadmin start systemstaterecovery -version:<date> -backuptarget:<drive> -quiet
  1. Reboot after restore


✅ Hyper-V VM Restore

  1. Open Hyper-V Manager

  2. Click Import Virtual Machine

  3. Browse to exported VM folder

  4. Follow the wizard to import

  5. Start the VM and verify


✅ Recommended Backup Frequency

Data TypeFrequencyRetention
System State (AD)Weekly4 weeks
Client DataDaily30 days
Hyper-V VMsWeekly or Before Changes4–8 weeks