package components import ( "context" "time" ) // BackupFile represents a database backup file type BackupFile struct { Name string Size string Created time.Time FullPath string } // AdminDatabaseTools renders the database tools page with backup and restore functionality templ AdminDatabaseTools(ctx context.Context, backups []BackupFile) { @LayoutWithContext("Database Tools", ctx) {
Manage database backups, restoration and maintenance
Create a backup of the current database state.
Vacuum the database to reclaim space and optimize performance.
Remove old job history records to free up database space.
Export system configurations and jobs for backup or migration.