feat(KB-327): add automatic database backup system

- Add backup settings to ProjectSettings with schedule, retention, and directory config
- Create BackupManager with create, list, cleanup, and restore operations
- Add CLI backup commands: --create, --list, --restore, --cleanup
- Implement backup validation and automation sync for scheduled backups
- Add dashboard backup settings UI with stats and 'Backup Now' button
- Add backup API routes for settings management and manual operations
- Include comprehensive backup tests and changeset for patch release
- Document backup configuration and recovery in AGENTS.md
This commit is contained in:
gsxdsm
2026-03-31 15:40:25 -07:00
parent b6ceeb8ae3
commit a6f99f90bb
11 changed files with 1395 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
---
"@dustinbyrne/kb": minor
---
Add automatic database backup feature
- Configurable backup schedule (cron expression)
- Configurable retention policy (number of backups to keep)
- Manual backup and restore via CLI (`kb backup --create`, `--list`, `--restore`, `--cleanup`)
- Dashboard settings UI for configuration with backup statistics
- Automatic cleanup of old backups exceeding retention limit
- Pre-restore backup creation for safety