# TEMLOL Diagnostic Centre ERP - Disaster Recovery Guide

## 1. Objective & Scope
This document outlines enterprise disaster recovery procedures for TEMLOL Diagnostic Centre live hosting environments (VPS / Dedicated / cPanel).

## 2. Recovery Time Objective (RTO) & Recovery Point Objective (RPO)
- **RTO:** Sub-30 minutes restoration to alternative server instance.
- **RPO:** Sub-6 hours data loss window guaranteed via automated cron MySQL dumps.

## 3. Automated Backup Pipeline
The system executes automated backups via `php artisan temlol:backup`.
1. Dumps MySQL database to `storage/app/backups`.
2. Encrypts SQL archive with OpenSSL.
3. Synchronizes to external Amazon S3 / Cloud Object Storage.

## 4. Bare-Metal Restoration Procedure
In event of catastrophic server corruption:
1. Provision clean Ubuntu VPS with PHP 8.3+ & MySQL 9+.
2. Execute `git clone` or upload codebase.
3. Run `composer install --no-dev`.
4. Restore latest `.sql` file from `storage/app/backups` into MySQL.
5. Execute `php artisan optimize`.
