Skip to content

Update the project or migrate to a new version

Before updating

  • Download the latest manager before using Update. The command bash x-ui-latest.sh runs a previously saved file and does not download the new release. Download command.
  • On a working VPS, choose 7. Update, not 1. Installation. Installation deletes managed data after confirmation.
  • Do not delete and recreate preconfigured connections or their associated managed Host records. Simply disable connections you do not need.
  • Update the 3x-ui panel through the project. If the panel is newer than the verified version supported by the downloaded manager, Update will stop. If the latest manager already supports your installed panel, no downgrade is necessary.
  • Manual Xray core updates are supported, but compatibility with every panel feature is not guaranteed.

More about manual changes

Which update method should you choose?

  1. Update without reinstalling - for compatible installations from v3.0.0 onward. Retains clients, subscriptions, keys, panel settings, Cascade and routing.
  2. Fresh installation while keeping clients - migrate from 2.x to 3.0+, reinstall with a clean configuration, or migrate an installation whose Update compatibility is not confirmed. Requires a compatible Backup v3. A new configuration is created, and clients and previous subscription paths are restored from the archive.
  3. Full Backup / Restore - restore a previous configuration after a failure or move the entire stack to a compatible VPS. This is a separate operation, not an update.

When to update · How to return to the previous installation after reinstalling

Part 1. Update the entire project

This method is for existing installations from v3.0.0 onward that support Update. The manager checks compatibility, creates and verifies a Backup v3 before making changes, updates the managed configuration and updates 3x-ui and Xray when necessary.

If Installation finished with warnings, check the Project Update row in its report. Available means that the compatibility contract has been recorded. When you run Update, the manager checks the current state of the installation again.

Clients, subscriptions, keys, panel settings, outbounds and routing are retained. You do not need to choose domains again, transfer clients or reconfigure your cascade.

Quick path: download the latest manager → choose 7 and confirm Update → verify the result. If you have manually changed managed settings, read the compatibility rules first.

Before updating

Connections may be briefly interrupted while services switch over. Manual changes to managed nginx and transport configurations may be replaced; the appearance of cover websites may change. Update is not intended to add options you did not enable during installation.

If you use a custom Xray template, check it before moving to 26.11.9. For unencrypted VLESS and Trojan outbounds, Xray rejects addresses such as 100.64.0.0/10 and 198.18.0.0/15. Use TLS, REALITY, VLESS encryption or an allowed local address. Scheduled geodata updates require .dat files, no more than 100 resources and a valid cron expression. The minimum @every interval is one minute. 3x-ui upgrade requirements

What can you change manually?

Do not delete preconfigured connections

Update and Change Domains use the stored IDs of inbounds and associated Host records created by the project. If you do not need a connection, disable it in the panel. Do not delete and recreate it: the new record will have a different ID. Do not delete its managed Hosts. You can add your own inbounds, clients, outbounds and routing rules. Keep the nginx integration in mind and avoid changing service ports, paths or other managed settings unnecessarily.

3x-ui panel. We recommend updating it through 7. Update. New panel versions are included in project releases after compatibility testing. Do not update the panel manually unless necessary. If the installed panel is newer than the version verified for the manager you are using, Update will stop. Download the latest stable manager first. If it already supports the installed panel, the panel will be retained. Otherwise, wait for a compatible project release; there is no need to downgrade.

Xray core. Manually updating Xray through the panel is supported. During Update, an older core is upgraded to the verified version, while an equal or newer version is retained, including when the panel itself is updated. We recommend using the stable core bundled with the verified 3x-ui version: another core may not support settings used by the panel or may break individual connections. Support for manual updates does not mean every Xray version is compatible with every panel feature.

Before updating manually or changing managed settings, create a Backup v3 and save it outside the VPS. After the change, check the panel, subscriptions and actual connections. If you see ROLLBACK UNVERIFIED, do not delete the recovery journal: follow the error recovery instructions.

Step 1. Download the latest manager

Connect to the VPS via SSH. If you logged in as a regular user, run sudo -i. On the VPS as root, download and launch the manager from the latest stable release:

curl -fSL https://github.com/xPROMSx/3x-ui-auto-nginx/releases/latest/download/x-ui-latest.sh -o x-ui-latest.sh && bash x-ui-latest.sh

Step 2. Update the project

  1. Select English.
  2. Choose 7. Update, read the warning and answer y at the Continue? [y/N] prompt.
  3. Wait for the final report. The manager prepares the update, creates a backup, applies the changes and verifies that the services work.

On success, you will see Result: SUCCESS and the path to the archive. If you see Result: UP TO DATE, your project is already up to date and nothing was changed.

Update retains Xray if its version is equal to or newer than the verified version. For a newer core, the manager displays both versions and checks the stack with the installed Xray. If the 3x-ui panel is newer than the version verified for the latest manager, Update will stop. Wait for a compatible project release. If the manager reports that Update support is not confirmed (the update_contract=1 contract), follow the fresh installation and client recovery procedure.

Step 3. Test your connection

Open your 3x-ui panel and connect to the proxy from your phone or computer. When migrating to 3.12.0, the panel invalidates old administrator sessions once. Sign in again using your existing credentials. Refresh the subscription or client profile if needed. If you use Cascade, check your usual route. If the update was applied, download the backup archive to your computer using the Backup guide.

Done: the project has been updated without reinstalling or transferring clients.

If the update fails

Read the reason and final status. If rollback was verified (ROLLBACK VERIFIED), check that the previous installation works. Do not run Installation instead of retrying Update.

If the status is ROLLBACK UNVERIFIED, check SSH access and leave the journal in place. 3x-ui 3.12.0 may modify the SQLite file on startup by recreating its standard triggers. For this reason, the manager retains the target installation and previous database even if the panel starts without any user action.

If the manager reports target_retained, follow these steps on the current VPS as root.

  1. Via SSH, launch the manager from the same version that started the unfinished Update (an exception to the rule about downloading the latest release) and choose 7. Update. Type YES to confirm closing the failed Update.
  2. Wait for confirmation and note the snapshot path under /var/lib/3x-ui-auto-nginx/retained-*/. It contains target.db with the latest records, target binaries and previous rollback materials. The Update result remains FAILED. The Backup and Restore menus become available again.
  3. If the problem is in your custom Xray configuration and the panel is accessible, fix it in the panel and test the connection. To return to the previous stack, choose 3. Backups → 3. Restore backup and select the Backup v3 archive created before Update. Check the date and version in the preview, then confirm with YES. After Restore, test panel login, a client connection and a new SSH session. Restore keeps a snapshot of the replaced installation, including records written after the Update was closed. Restore limitations and using the snapshot.

If closing the Update does not finish, launch the manager again via SSH. Until recovery is complete, leave the working database and its -wal, -shm and -journal files, the journal and the /var/lib/3x-ui-auto-nginx/update/ directory in place. If the manager does not offer to close the Update, follow its diagnostic message. To recover on a separate compatible VPS, use full Restore.

If certificate renewal has already started after Backup creation, Update waits up to 120 seconds for Certbot to finish. If that time expires, the manager keeps the backup and stops Update before switching files. Retry Update after renewal finishes.

Part 2. Fresh installation and client recovery

Use this method when moving from 2.x (including v2.9.1) to v3.0.0 or a newer release, or when reinstalling an already compatible v3.0.0+ version with a clean configuration. You can stay on your current VPS or move to a new one. Client transfer requires a Backup v3 archive, available since project v2.4.0; older formats are not supported. This is the archive format version, not the project version.

Why a full Backup is not suitable for updating

A full Backup v3 is intended to recover the previous server after a failure or move it to another hosting provider. Full Restore brings back the old nginx settings, 3x-ui database, Xray and other managed data from the archive.

If you perform a full Restore over a fresh installation, it replaces the new configuration with the old one. For example, new rate limiting for nginx public websites will not appear in a configuration from an old Backup if it was not present there.

After a fresh installation, choose Restore clients and subscriptions, not Restore backup. Keep the full Backup in any case: you will need it if you want to return to the previous configuration.

1. Save a Backup and your settings

Connect to the working VPS via SSH. If you did not log in as root, run sudo -i. Download and launch the latest stable manager on the working VPS as root:

curl -fSL https://github.com/xPROMSx/3x-ui-auto-nginx/releases/latest/download/x-ui-latest.sh -o x-ui-latest.sh && bash x-ui-latest.sh

Select English, then choose 3. Backups → 1. Create backup. Wait for Archive created and verified.

The archive will appear in /var/backups/x-ui/. Download it to your computer via SFTP, for example using Termius. How to download a backup.

Save the archive outside the VPS

Reinstalling the project removes previous managed data. Reinstalling the OS also deletes the archive on the VPS disk. Make sure the Backup v3 has been downloaded in full and is stored securely. It contains passwords and keys.

Record the settings you have changed yourself. If you have not changed anything, skip the relevant rows.

What to save Where to find it
Panel, REALITY and Vision domains; optional installation features (WARP, Security, AdGuard Home, protocols) Server details and the panel
Links or JSON for added outbound servers, and their names (tags) Xray → Outbounds
Custom routing rules, their order and selected outbounds Xray → Routing
Balancers: tags, primary and backup servers, availability check settings Xray → Balancers
Custom inbounds, individual client assignments, panel and subscription settings, and 2FA 3x-ui panel
Details of the second VPS if you use Cascade Cascade settings
AdGuard Home filters and rules, CDN settings, Telegram web proxy The relevant services

If you plan to reinstall the OS, save your SSH settings and any other service data separately. Reinstalling the project replaces the nginx configuration. If you use TWPM, save its data in advance and be prepared to restore the Telegram proxy separately. Do not publish saved links, passwords or keys.

There is no need to copy every standard Xray and nginx setting. The fresh installation creates them automatically.

2. Install the new version

Choose where to install

Option 1. Same VPS without reinstalling the OS

Suitable if the VPS is already dedicated to 3X-UI AUTO NGINX and working normally. Reinstall the project through the menu using the steps below. The installer will also update system packages. You will get the new settings and selected features of the latest release. Archives in /var/backups/x-ui/ remain on the VPS, but you still need to save a copy on your computer.

Option 2. Same VPS with an OS reinstallation

Reinstalling the OS erases the disk

Complete step 1 first. You will need to set up SSH access and your other services again. Do not reinstall until you have saved the necessary data.

Reinstall Ubuntu 24.04/26.04 or Debian 13 through your hosting provider's control panel. This gives you a clean system without leftover settings.

Option 3. A new VPS

Prepare a new server with a supported OS. If you want to keep previous subscription links, point the old domains to the new IP before issuing certificates. Connections may be interrupted during this change. Do not delete the old VPS yet.

Launch the latest installer

The remaining steps are the same for all three options. Connect via SSH and obtain root privileges. On the VPS as root, run:

curl -fSL https://github.com/xPROMSx/3x-ui-auto-nginx/releases/latest/download/x-ui-latest.sh -o x-ui-latest.sh && bash x-ui-latest.sh

Select English, then 1. Installation. A standard fresh installation uses the 3x-ui and Xray versions verified for the release. If a previous installation is detected, confirm its removal by typing YES only after saving your Backup.

  • Enter the previous panel domain if you want to preserve subscription links. Domains must point to the current VPS.
  • Choose the protocols and optional features you need. Do not enable WARP on a cascade entry server.
  • Answer N when asked whether to create a client: clients will be restored from your Backup.

If you need help with the installer prompts, open the getting started guide.

After installation, save the new panel address, username and password. Open the panel and make sure Xray is running.

3. Restore clients and subscriptions

If you reinstalled the project without reinstalling the OS, the archive is already in /var/backups/x-ui/. There is no need to upload it again.

If you reinstalled the OS or are using a new VPS, upload the archive from your computer to /var/backups/x-ui/ via SFTP. If the directory does not exist yet, create it on the VPS as root:

mkdir -p -m 700 /var/backups/x-ui

Keep the archive file permissions private (600). If SFTP does not let you write to that directory, upload the archive to your home directory and enter the full path in the menu. Do not make your Backup publicly accessible.

Check the inbounds

Clients will be assigned to all supported active local inbounds of the new installation. If you previously restricted individual clients to certain inbounds, do not enable special inbounds before importing; restore the required assignments manually afterwards.

Download and launch the latest manager on the VPS as root:

curl -fSL https://github.com/xPROMSx/3x-ui-auto-nginx/releases/latest/download/x-ui-latest.sh -o x-ui-latest.sh && bash x-ui-latest.sh
  1. Choose 3. Backups → 4. Restore clients and subscriptions.
  2. Select your archive number from the list.
  3. Read the warning and press Enter to continue.
  4. Enter the username and password for the new panel, and the 2FA code if enabled.
  5. Wait for the report. Check whether all clients were restored.

What is restored automatically

  • Clients, their identifiers and supported credentials.
  • Enabled status, expiration dates, traffic, IP and device limits, and supported counters.
  • Subscription identifiers and the previous shared RAW and JSON paths. After a successful transfer, the original URLs remain usable if you keep the panel domain and the required subscription types.

What is not transferred: previous inbound configuration and individual assignments, server keys and ports, outbounds, routing, balancers, panel settings, nginx and additional services. AmneziaWG addresses are allocated from the new subnet. Old individual connection links may change, so refresh subscriptions.

If the report lists skipped clients or shows PARTIAL, check why. If a client's email or subscription ID matches an existing client, the existing client is not overwritten. More about client transfer.

4. Restore your settings

If you have no custom settings, skip to verifying the result. Otherwise, restore only what you need in the following order:

  1. Inbounds and clients. Add your custom inbounds and check individual client assignments.
  2. Cascade. If you used two VPS instances, restore your cascade. If you reinstalled the exit server, obtain a current link for the entry server.
  3. Outbound servers. Add your servers using the Add an outbound server guide. Reuse the previous tags if available, and check each server with the HTTP test.
  4. Balancer. If you used a backup exit server, configure the balancer.
  5. Routing. Restore your rules and check their tags and order. Do not replace the entire new Xray JSON with the old one; it may contain obsolete settings.
  6. Optional settings. Restore the required subscription types, panel settings and 2FA, AdGuard Home, CDN and Telegram web proxy if you used them. If their addresses have changed, update your devices.

5. Verify the result

  1. Make sure clients have been restored and their expiration dates, limits and connections are correct.
  2. Refresh the subscription in the app on your phone or computer. If the panel domain is unchanged and subscription transfer succeeded, you do not need to change the URL. If the domain changed, copy the new link from the panel.
  3. Connect to the VPS and test internet access. If you use Cascade or routing rules, check the expected exit IP addresses. Retrieve any individual connection links that were added manually again.
  4. Check any additional services you need and verify a new SSH login.

Create a new Backup and download it to your computer. Migration is complete.

How to return to the previous installation

If you kept the old VPS, point the DNS records back to it and refresh subscriptions in the apps. Otherwise, use the saved archive and full Backup Restore on a compatible OS. Full Restore brings back the previous configuration, not the new project version.

When should you update?

Read the latest release notes first. If you only need new manager features, download the latest script and open the relevant menu option.

  • For compatible installations, use Update. It updates components older than the verified version, retains a newer Xray core and stops if the panel is newer than the verified version.
  • nginx, the kernel and system packages: update through the operating system. If VPS security is enabled, security updates are installed automatically.

Getting started · Backups and clients · All guides

Attribution and use of materials

© 2026 xPROMSx contributors · 3X-UI AUTO NGINX

Our material may be copied and distributed under the GNU GPL-3.0-only license, provided the attribution and link to the original are retained.

Original source: https://xpromsx.github.io/3x-ui-auto-nginx/guides/update/

Terms of use for project materials