migration.mdx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ---
  2. title: Migration
  3. description: Migrate to 3x-ui from x-ui, between servers, or between 3x-ui versions.
  4. icon: ArrowRightLeft
  5. ---
  6. ## Between servers
  7. Moving to a new server is a database move:
  8. <Steps>
  9. <Step>
  10. ### Back up the old server
  11. Copy the database (default `/etc/x-ui/x-ui.db`) and your certificates. See
  12. [Backup & restore](/docs/operations/backup-restore).
  13. </Step>
  14. <Step>
  15. ### Install 3x-ui on the new server
  16. Use the same install method and a compatible version. See
  17. [Installation](/docs/guide/installation).
  18. </Step>
  19. <Step>
  20. ### Restore the database
  21. Stop the panel, put the database in place, restore certificates, and start the
  22. panel. Update any IP/domain-specific settings.
  23. </Step>
  24. </Steps>
  25. ## Between 3x-ui versions
  26. Within the same backend, upgrading is usually just re-running the installer or
  27. pulling a new image — the panel migrates its own database. Across **major**
  28. versions, read the [release notes](https://github.com/MHSanaei/3x-ui/releases)
  29. first and take a backup.
  30. ## From x-ui
  31. Importing an older x-ui panel's database directly into 3x-ui is **not
  32. supported** — the schemas differ. Install 3x-ui fresh and recreate
  33. inbounds/clients, exporting share links from the old panel as you go.
  34. <Callout type="warn">
  35. Always take a backup before any migration, and keep the old server running
  36. until you've verified the new one.
  37. </Callout>