الفلاتر
طريقة البحث
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • "كلمتان" تجد العبارة بالضبط.
  • --name أو -x تجد خيارًا.
  • #كلمة تبحث داخل الأوامر فقط.
  • @grep تجد الدروس والمعامل التي تستخدم grep.
  • الفلاتر: cat:network · in:labs · level:rhcsa · ch:8 · root:yes. ضع ! قبل كلمة لاستبعادها. OR بين الكلمات تعني إحداها.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث

الفصل 13الاسم في الدورة: Implement backup and recovery

Back up and recover with Azure Backup and Site Recovery

Backups protect against mistakes, ransomware and corruption. Azure Backup keeps restore points of VMs, file shares, databases and disks. Azure Site Recovery replicates whole VMs to another region for disaster recovery.

  • 6 الدروس
  • 1 الأوامر

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

$ مستخدم عادي# بصلاحية root (أو مع sudo)

المهارات في هذا الفصل

  • النسخ الاحتياطي والاستعادة باستخدام Azure Backup و Site Recovery

13.1

Choose a vault

Backups are stored in a vault. There are two kinds.

VaultProtects
Recovery Services vaultAzure VMs, Azure Files, SQL / SAP HANA in VMs, on-premises (MARS agent); also Site Recovery
Backup vaultAzure disks, blobs, PostgreSQL, AKS
az backup vault create -g rg-bkp -n rsv-prod -l westeurope
az backup vault backup-properties set -g rg-bkp -n rsv-prod --backup-storage-redundancy GeoRedundant --cross-region-restore-flag true

تذكّر

Set the storage redundancy (LRS, ZRS, GRS) before the first backup — it can not change later.

الأوامر في هذا الدرس

13.2

Back up a VM

Enable protection with a policy (when and how long). Azure takes snapshots, then copies them to the vault.

az backup protection enable-for-vm -g rg-bkp -v rsv-prod --vm VM_ID --policy-name DefaultPolicy
az backup protection backup-now -g rg-bkp -v rsv-prod -c vm-web1 -i vm-web1 --backup-management-type AzureIaasVM --retain-until 30-11-2026
az backup job list -g rg-bkp -v rsv-prod -o table
Policy partExample
FrequencyDaily at 02:00 (Enhanced policy: every 4 hours)
Instant restoreSnapshots kept 2 – 5 days for fast restores
Retention30 daily, 12 weekly, 12 monthly, 5 yearly points

الأوامر في هذا الدرس

13.3

Restore from a backup

Several restore options, from one file to a whole new VM.

OptionResult
Create new VMA new VM from the restore point
Restore disksDisks only; attach them or build a VM yourself
Replace existingReplace the disks of the existing VM
File recoveryMount the restore point and copy single files
Cross-region restoreRestore in the paired region (GRS vault)
az backup recoverypoint list -g rg-bkp -v rsv-prod -c vm-web1 -i vm-web1 --backup-management-type AzureIaasVM -o table
az backup restore restore-disks -g rg-bkp -v rsv-prod -c vm-web1 -i vm-web1 -r RECOVERY_POINT --storage-account stbkprestore --target-resource-group rg-restore

نصيحة للامتحان

A backup is only proven by a restore. Test one restore every month and write down how long it took.

الأوامر في هذا الدرس

13.4

Back up file shares and blobs

Azure Files backup uses share snapshots managed by the vault. Blob backup uses operational backup (in the account) or vaulted backup (copied to the vault).

az backup protection enable-for-azurefileshare -g rg-bkp -v rsv-prod --storage-account stshop2026 --azure-file-share team --policy-name FileSharePolicy

الأوامر في هذا الدرس

13.5

Protect backups from attackers

Ransomware tries to delete backups first. Turn on the protections.

  • Soft delete: deleted backup data stays 14 days (or longer with enhanced soft delete).
  • Immutable vault: nobody can shorten retention or delete points before they expire.
  • Multi-user authorization: critical actions need approval from a second person (Resource Guard).
  • RBAC: only a few people get Backup Contributor.

13.6

Replicate VMs with Site Recovery

Site Recovery copies VM disks to another region all the time. In a disaster you fail over and run the VMs there.

  1. In the Recovery Services vault (in the target region): Site Recovery → Enable replication for the VMs.
  2. Choose the target region, network, and the replication policy (recovery point retention, app-consistent snapshots).
  3. Test failover into an isolated test VNet — no impact on production.
  4. In a real disaster: Failover, then Commit; later Re-protect and fail back.
TermMeaning
RPOHow much data you may lose (minutes of changes)
RTOHow long until the service runs again
Recovery planThe order and scripts of a failover for a multi-tier app

كل الأوامر في هذا الفصل