Database and Recovery
Database and Recovery
Database backups protect Engine records. Installer recovery points protect local program files. Keep an off-server copy before upgrades, restores, bulk edits, or migrations.
Create a Backup
- Open Settings → Database Backup.
- Create a backup and wait for completion.
- Download the file to protected off-server storage.
Local backups are stored in /opt/xaccel-engine/storage/backup/. Configure the schedule and local retention under Settings → System Settings → Database.
Optimize a Table
- Open Settings → Database Tables.
- Sort by Total Size and select one table.
- Download a current backup.
- Run Optimize during low traffic and verify disk space afterward.
Optimization may rebuild and lock a table, require temporary disk space, and may not reduce its size.
Restore
- Download a backup of the current database and stop configuration changes.
- Upload or select the intended compatible backup.
- Confirm the restart.
- Verify login, License, Servers, Streams, DVB, Users, VOD, and playback.
Recover Program Files
sudo bash ./xaccel-engine-<version>.sh --recoveryUse installer recovery for a failed software upgrade and a database backup for database restoration.
Migrate
- Install a compatible Engine release on the target.
- Back up and restore the source database.
- Copy media, certificates, and operator-owned files with their permissions.
- Reissue or activate the target license.
- Update addresses, interfaces, DNS, TLS, SSH, and media paths.
- Test all required functions before moving traffic.
Do not run two machines with one license.