# Package Build Process

Package creation system for backup generation.

## Build Phases

1. **Pre-Process** - Validation and configuration
2. **Scanning** - File discovery and filtering
3. **Database Export** - SQL dump generation
4. **Archive Creation** - File packaging (DupArchive or ZIP)
5. **Storage Upload** - Transfer to configured destinations

## Key Components

- `DupPackage` - Main package orchestration
- `Runner` - Build execution engine
- `BuildProgress` - Progress tracking
- `PackageArchive` - File handling
- `DatabasePkg` - Database export

## Archive Formats

- **DupArchive** - Custom format, handles large files
- **ZIP** - Standard format via ZipArchive or shell

## Related

- [Storage System](04_1_STORAGE_providers.md)
