Part-DB-server/templates/admin
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
..
update_manager Add backup restore feature 2026-01-30 23:24:48 +01:00
_attachments.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_delete_form.html.twig Forbid a user to delete himself on the admin page 2023-10-24 13:32:44 +02:00
_duplicate.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_export_form.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_info.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_parameters.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
attachment_type_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
base_admin.html.twig Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
base_company_admin.html.twig Added possibility to define alternative names on data structures 2023-07-16 22:59:46 +02:00
category_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
currency_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
footprint_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
group_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
label_profile_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
manufacturer_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
measurement_unit_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
part_custom_state_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
project_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
storelocation_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
supplier_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
user_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00