Backup & Restore
Backup Methods
Section titled “Backup Methods”Traditional tar.gz packaging — bundles site files + database export. Best for small sites.
restic-based incremental backup with block-level deduplication, AES-256 encryption. A 100GB site’s daily delta may only be a few MB. Supports local, S3, and SFTP backends.
Incremental Backup (restic)
Section titled “Incremental Backup (restic)”Initialize
Section titled “Initialize”First-time setup: go to Backup → Incremental tab, click Initialize Repository. The system generates and persists an encryption password.
Repository location: /opt/llstack/backups/restic/
Create Snapshots
Section titled “Create Snapshots”Select a site to back up. The system exports the database, runs restic incremental backup, and cleans up temporary files. Only changed blocks are transferred after the initial backup.
Retention Policy
Section titled “Retention Policy”| Parameter | Description | Default |
|---|---|---|
keep-last | Keep last N snapshots | 7 |
keep-daily | One per day, up to N days | 30 |
keep-weekly | One per week, up to N weeks | - |
keep-monthly | One per month, up to N months | - |
Automated Backup Schedule
Section titled “Automated Backup Schedule”Configure automatic incremental backups on a recurring schedule:
| Frequency | Description |
|---|---|
| Every 1 hour | High-frequency for active development sites |
| Every 3 hours | Balanced for busy production sites |
| Every 6 hours | Standard for most sites |
| Every 12 hours | Light-traffic sites |
| Every 24 hours | Daily backup |
Schedules are managed via cron jobs created automatically by the panel.
Restore
Section titled “Restore”Select a snapshot and target path. Restore to a temporary directory first to verify data integrity.
Selective Restore
Section titled “Selective Restore”Choose what to restore from a snapshot:
- All — restore both site files and database
- Files only — restore site files without overwriting the database
- Database only — restore the database without touching site files
Repository Stats
Section titled “Repository Stats”View total repository size and deduplication ratio.
Panel Database Backup
Section titled “Panel Database Backup”The panel’s SQLite database is automatically backed up daily at 2:30 AM using the WAL-safe sqlite3.backup() API.