Table of Contents
- What the Migration Transfers
- Which Method Is Right for You?
- Method 1 - New Server Migration (recommended)
- Option A - Remote Connection (direct DB access)
- Option B - Database URL File (upload backup.sql)
- Method 2 - Same Server Migration (reinstall)
- Finalizing: Password Reset, Update Tables, Services
- Bringing Main & Load Balancers Online
- After Migration: VODs and Movies
- Quick Summary Table
- FAQ
What the Migration Actually Transfers
Supported source panels include XtreamUI, XUI (XUI.ONE), NXT, and other Xtream-Codes-family panels. The migration tool is built into the Xtream-Masters panel itself — no external scripts, no paid consultants, no API integration. It is part of your license.
Which Method Is Right for You?
There are two official migration methods. Pick based on where your new Xtream-Masters panel will run:
- Method 1 New Server Migration — your Xtream-Masters main server is a different/new server from your old panel. Your old panel stays running during migration. This is the recommended path.
- Method 2 Same Server Migration — you are installing Xtream-Masters on the same server where your old panel currently runs. The server OS will be wiped and reinstalled.
Method 1New Server Migration (Recommended)
Use this when your Xtream-Masters main server is a different/new server from your old panel. Your old panel stays running during migration.
1Add Your New Main Server in the CMS
Login to the Xtream-Masters CMS with your XM: account (xm:********), then add your new main server for installation. Wait for the CMS to complete the install.
2Click the “Migrate” Button on the Server Page
Once the install is finished, open the server page in the CMS and click the Migrate button. You will see two tabs — pick the one that fits your situation:
Option A: Remote Connection (direct DB access)
Use this if your old server's database port is accessible remotely.
- Enter your old panel's database credentials:
host,port,DB name,username,password. - Select the source panel type (XUI, NXT, XtreamUI, etc.).
- Click Migrate — the system will connect to your old DB and copy the data automatically.
You don't need to upload any backup file with this option.
Option B: Database URL File (upload backup.sql)
Use this if your old server's database port is not accessible remotely, or if you prefer to use a SQL dump file.
- On your OLD server, export the database:
mysqldump -u [username] -p [database_name] > backup.sql
- Upload the backup.sql file to your NEW Xtream-Masters server (not the old one!) at:
/home/xtreamaster/wwwdir/backup.sqlYou can upload it via SCP, SFTP, or any file transfer method to the Xtream-Masters server.
- In the migration page, enter the file URL in this format:
http://YOUR_SERVER_IP:STREAM_PORT/backup.sqlThe stream port can be found in
/home/x_m/bin/nginx/conf/ports.confon your Xtream-Masters server. - Select the source panel type and click Migrate.
Important: Delete /home/xtreamaster/wwwdir/backup.sql after migration completes for security.
3Reset the Admin Password
Once migration completes:
- In the CMS panel, click the admin password reset option (or use the reset link shown after migration).
- Set your new admin password.
4Final Configuration
- Go to the CMS dashboard, set the Panel Port, then login as admin.
- Navigate to Settings → Update Tables — click the Update Tables button to finalize migration.
5Bring Servers Online
See Bringing Main & Load Balancers Online below — same steps apply to both methods.
Related FAQ: VODs not working after migration.
Method 2Same Server Migration (Reinstall)
Use this when you want to install Xtream-Masters on the same server where your old panel is currently running. The server will be wiped and reinstalled.
1Export the Database on the Current Server
2Download backup.sql to Your Local Computer
Important — the server will be wiped, so the backup must live off the server.
3Back Up Any Images and Files You Want to Keep
Logos, EPG files, custom branding assets, etc. These are not in the SQL dump.
4Reinstall the Server with Ubuntu 18.04 / 20.04 / 22.04
Clean OS install. Do not try to install Xtream-Masters on top of the old panel.
5Panel Configuration
- Login to the Xtream-Masters CMS with your XM: account (
xm:********). - Add your server for installation and wait for it to complete.
6Upload backup.sql to the Xtream-Masters Server
This is your same server, now freshly installed:
Or use SFTP / any file transfer tool to place the file at: /home/xtreamaster/wwwdir/backup.sql.
7Migration Process
- Click Migrate on the server page → go to the Database URL File tab.
- Enter the backup URL:
http://YOUR_SERVER_IP:STREAM_PORT/backup.sql - Select the source panel type and click Migrate.
8Password Reset
- Click the admin password reset option.
- Set your new admin password.
9Final Configuration
- Go to the CMS dashboard, set the Panel Port, then login as admin.
- Navigate to Settings → Update Tables to finalize migration.
10Bring Servers Online
See next section.
Finalizing: Password Reset, Update Tables, Panel Port
These three steps are common to both methods and must be completed for the migration to be considered finished:
- Admin password reset. The old panel's hashes are preserved where possible, but you must explicitly reset the admin account from the CMS reset link.
- Panel Port. Set it in the CMS dashboard so the admin UI is reachable on the intended port. Remember this is separate from the stream port.
- Update Tables. After logging in as admin, go to Settings and click the Update Tables button. This finalizes schema mappings for the migrated data.
Bringing Main & Load Balancers Online
After the migration is finalized, bring your streaming infrastructure online:
Main Server
- Go to the Servers Page, edit the Main Server, set the SSH password.
- Navigate to Servers Page → click Main Option → Restart Service.
Load Balancers
- Edit each LB and set its SSH password.
- Navigate to Servers Page → click LB Option → Re-install Balancer.
Wait up to a couple of minutes for each load balancer to come online. Refresh the Servers page to confirm status.
After Migration: Fixing VODs & Movies
One thing the database migration does not automatically handle is the on-disk location of your VOD (movies and series) files, because every source panel uses a different folder layout. After the SQL migration completes, if you had locally-hosted VODs, you will need to move them.
Xtream-Masters stores all VODs (movies and series) in a single folder:
Typical source-panel VOD folders to migrate from:
- XtreamCodes / XtreamUI / XUI:
/home/xtreamcodes/iptv_xtream_codes/movies/ - Other panels: check the old panel's config
Move the files and fix permissions:
If you re-encoded instead of moving, the panel's Movies/Series pages will kick off re-processing automatically for entries that still have valid source URLs.
Quick Summary Table
| Migration Method | Where Does backup.sql Go? |
|---|---|
| Option A — Remote Connection | No backup file needed — system reads directly from your old database. |
| Option B — Database URL File | Upload to /home/xtreamaster/wwwdir/backup.sql on your Xtream-Masters server (the destination server where the panel was installed). |
| Method 2 — Same Server | Same as Option B — upload to /home/xtreamaster/wwwdir/backup.sql after the fresh OS install. |
