تمارين الاستعادة
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
prove backups work by restoring them regularly.
الموضوعات المخطط لها
- Restore a custom-format dump with
pg_restore -d newdb; use--jobsfor parallelism. - Restore into a separate database or host, never over production first.
- Check the result: row counts, application smoke test, and elapsed time (your real recovery time).
- Automate the drill and alert on failure.
- Record the steps in a runbook.
تفاصيل المخطط المبدئي
عرض عملي
createdb shop_restore
pg_restore -d shop_restore --jobs 4 shop.dump
psql shop_restore -c "SELECT count(*) FROM orders;"اختبر فهمك
What number does a restore drill give you that a backup job does not?
أظهر الإجابة
The real recovery time, and proof the backup is usable.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.