How david-crty/databasement works
Databasement is a self-hosted database-backup management application. Users configure database servers and storage, then trigger or schedule backups; the system runs database-specific dumps, stores snapshots, monitors jobs, and can restore snapshots to compatible servers. The README documents remote agents, scheduling, integrations, and automation; source-index references support the key model and query relationships. Several implementation details were not sampled, so those links are limited to documented product flows.
Main entry points: ProcessBackupJob.php Backup jobs · Livewire Web interface · BackupTask.php Database dump engine · Snapshot.php Snapshots
Components 25
User management
- Web interface
app/Livewire - REST API
app/Http/Controllers/Api/V1 - MCP tools
app/Mcp/Tools - Database servers
app/Models/DatabaseServer.php - SSH configuration
app/Models/DatabaseServerSshConfig.php - OAuth login
app/Services/OAuthService.php - Monitoring dashboard
app/Livewire/Dashboard.php
Backup operations
- Backup configuration
app/Models/Backup.php - Backup schedules
app/Models/BackupSchedule.php - Schedule dispatcher
bootstrap/app.php - Backup jobs
app/Jobs/ProcessBackupJob.php - Database dump engine
app/Services/Backup/BackupTask.php - Database drivers
app/Services/Backup/Databases/DatabaseProvider.php - Compression
app/Services/Backup/Compressors/CompressorFactory.php - Snapshots
app/Models/Snapshot.php
Restore operations
- Restore workflow
app/Services/Backup/RestoreTask.php - Restore jobs
app/Jobs/ProcessRestoreJob.php
Agent execution
- Remote agent
app/Services/Agent/Runners/AgentJobRunner.php - Agent API
app/Http/Controllers/Api/V1/AgentController.php
Storage and integrations
- Snapshot files
app/Models/SnapshotFile.php - Storage volumes
app/Models/Volume.php - Storage drivers
app/Services/Backup/Filesystems/FilesystemProvider.php - Job notifications
app/Services/NotificationService.php - Adminer browser
app/Services/AdminerService.php
Other components
- User
Connections 30
- User → Web interface: manages
README.md - User → REST API: automates
README.md - User → MCP tools: automates
README.md - Web interface → Database servers: configures
- Web interface → Backup configuration: configures
- Web interface → Backup schedules: configures
- REST API → Database servers: manages
README.md - REST API → Backup jobs: triggers
README.md - MCP tools → Backup jobs: triggers
README.md - Backup schedules → Schedule dispatcher: registers
bootstrap/app.php - Schedule dispatcher → Backup jobs: dispatches
bootstrap/app.php - Backup jobs → Remote agent: dispatches
README.md - Remote agent → Agent API: connects outbound
README.md - Backup jobs → Database dump engine: runs
- Database dump engine → Database drivers: uses
- Database dump engine → Compression: compresses
README.md - Database dump engine → Snapshots: records
- Snapshots → Snapshot files: tracks
app/Models/Snapshot.php - Snapshot files → Storage volumes: stored on
app/Models/Volume.php - Storage volumes → Storage drivers: uses
- User → Restore jobs: requests restore
README.md - Restore jobs → Restore workflow: runs
- Restore workflow → Snapshots: reads snapshot
README.md - Restore workflow → Database servers: restores to
README.md - Backup jobs → Job notifications: reports failure
README.md - Restore jobs → Job notifications: reports failure
README.md - User → Adminer browser: browses data
README.md - User → OAuth login: authenticates
README.md - User → Monitoring dashboard: monitors
README.md - Monitoring dashboard → Snapshots: summarizes
app/Livewire/Dashboard/StorageCard.php