# Installer - Restoration Process

Standalone PHP script for site restoration, independent from WordPress.

## Architecture

**Location**: `installer/dup-installer/main.installer.php`

Runs without WordPress - self-contained restoration script.

## Restoration Flow

1. **Validation** - Verify archive and environment
2. **Extraction** - Unpack archive files
3. **Database Import** - Restore database from SQL dump
4. **Search/Replace** - Update URLs and paths
5. **Configuration** - Update wp-config.php
6. **Final Tests** - Verify installation

## Key Features

- Handles large sites via chunked processing
- URL/path search and replace
- Database import with progress tracking
- Independent of WordPress core

## Related

- [Package Creation](02_1_PACKAGE_build-process.md)
