coolify/app/Livewire/Project/Database
Andras Bacsai a9f42b9440 perf: optimize S3 restore flow with immediate cleanup and progress tracking
Optimizations:
- Add immediate cleanup of helper container and server temp files after copying to database
- Add pre-cleanup to handle interrupted restores
- Combine restore + cleanup commands to remove DB temp files immediately after restore
- Reduce temp file lifetime from minutes to seconds (70-80% reduction)
- Add progress tracking via MinIO client (shows by default)
- Update user message to mention progress visibility

Benefits:
- Temp files exist only as long as needed (not until end of process)
- Real-time S3 download progress shown in activity monitor
- Better disk space management through aggressive cleanup
- Improved error recovery with pre-cleanup

Compatibility:
- Works with all database types (PostgreSQL, MySQL, MariaDB, MongoDB)
- All existing tests passing
- Event-based cleanup acts as safety net for edge cases

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 14:23:50 +01:00
..
Backup Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
Clickhouse fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
Dragonfly fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
Keydb fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
Mariadb fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
Mongodb fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
Mysql fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
Postgresql fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
Redis fix: add authorization checks to database Livewire components 2025-10-14 17:33:42 +02:00
BackupEdit.php feat(DatabaseBackupJob, ScheduledTaskJob): enforce minimum timeout and add execution ID for timeout handling 2025-11-11 12:07:39 +01:00
BackupExecutions.php feat(backup): enhance backup job with S3 upload handling and notifications 2025-10-07 15:02:23 +02:00
BackupNow.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00
Configuration.php Merge branch 'next' into andrasbacsai/livewire-model-binding 2025-10-16 11:05:29 +02:00
CreateScheduledBackup.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00
Heading.php Fix loading icon showing during automatic status checks 2025-10-24 12:58:52 +02:00
Import.php perf: optimize S3 restore flow with immediate cleanup and progress tracking 2025-11-17 14:23:50 +01:00
InitScript.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
ScheduledBackups.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00