Part-DB-server/assets
Sebastian Almberg 1637fd63f4 Add backup restore feature
- Add restoreBackup() method to UpdateExecutor with full restore workflow
- Add getBackupDetails() to retrieve backup metadata and contents info
- Add restore controller routes (backup details API, restore action)
- Add restore button to backups table in UI
- Create backup_restore_controller.js Stimulus controller for confirmation
- Add translation strings for restore feature

The restore process:
1. Acquires lock and enables maintenance mode
2. Extracts backup to temp directory
3. Restores database (MySQL/PostgreSQL SQL or SQLite file)
4. Optionally restores config files and attachments
5. Clears and warms cache
6. Disables maintenance mode

Fix backup restore database import

The restore feature was using a non-existent doctrine:database:import
command. Now properly uses mysql/psql commands directly to import
database dumps.

Changes:
- Add EntityManagerInterface dependency to UpdateExecutor
- Use mysql command with shell input redirection for MySQL restore
- Use psql -f command for PostgreSQL restore
- Properly handle database connection parameters
- Add error handling for failed imports
2026-01-30 23:24:48 +01:00
..
ckeditor Fixed english translation for placeholder plugin and use more modern translation system 2025-10-17 17:57:34 +02:00
controllers Add backup restore feature 2026-01-30 23:24:48 +01:00
css Made sidebar toggle button smaller 2025-11-30 14:20:50 +01:00
fonts/dompdf Added GNU unifont as fallback font for labels with CJK characters 2023-07-02 03:26:56 +02:00
js Use requestSubmit() in form cleanup controller to avoid CSFR issues 2026-01-18 22:24:17 +01:00
styles Updated symfony recipes. 2021-01-03 20:54:47 +01:00
themes Use webpack entrypoints for bootstrap and bootswatch themes 2023-02-01 22:58:39 +01:00
tomselect Fixed bug in autoselect_typed plugin 2025-02-16 20:24:13 +01:00
controllers.json Removed the deprecated symfony/ux-toggle-password package by replacing it by our own local versions 2025-08-30 21:57:57 +02:00
stimulus_bootstrap.js Updated stimulus recipe 2025-11-30 15:07:59 +01:00
translator.js Move frontend translations to separate domain to reduce bundle size (#1197) 2026-01-18 18:50:38 +01:00
tsconfig.json Added an basic implementation of bootstrap-treeview in typescript 2022-08-06 03:40:24 +02:00