3X-UI, Hiddify, and Marzban: What Data to Save Before Moving Your Server

TL;DR

What to save before migrating 3X-UI, Hiddify, or Marzban: keys, domains, versions, clients, backups, testing plan, and safe rollback strategy.

Don’t want to set up a server yourself? Get a ready server
3X-UI, Hiddify, and Marzban: What Data to Save Before Moving Your Server

Quick answer: Before migrating your server with 3X-UI, Hiddify, or Marzban, take stock of versions, domains, TLS, protocols, users/keys, and routing. Set up secure backups, and create a verification and rollback plan. Start with diagnostics (what's currently working), then perform only reversible steps: take copies, record settings, add the new server alongside the old one, and switch clients over gradually.

1) Diagnostics: What Exactly Are You Moving and Why

Moving a “server” in the context of 3X-UI, Hiddify, and Marzban usually means moving several layers:

  • Control panel (the admin interface itself, its database/storage, settings, roles, API tokens).
  • Proxy service (sets of inbound/outbound rules, transport protocols, ports, routing).
  • Cryptographic materials (TLS certificates, private keys, Reality/other transport keys, WireGuard keys, and more).
  • Domain and DNS (A/AAAA records, CNAME, TTL, ACME/DNS validation).
  • Clients and profiles (subscription links, QR codes, app configs, profiles on routers/devices).

Before making any moves, write down (in a note or task) the reason for migration (provider change, regional move/IPv6 switch, panel swap, need for dedicated IP without neighbors, separating test/prod, simplifying support). This helps you decide what to transfer “as is” and what should be recreated (for example, issuing new certificates instead of copying private keys).

If you’re still deciding which panel fits your scenario best, check out the comparison and selection criteria here: 3X-UI, Hiddify, or Marzban in 2026: How to Choose and Set Up a Self-Hosted VPN. This article focuses specifically on inventorying and safe migration.

2) Inventory: What Data You Need to Save

Below is a practical checklist designed to help you restore full functionality on the new server without guesswork and without risking user access.

What to Document Why It’s Important How to Store Safely (Reversibly)
Versions: OS, kernel/virtualization, panel (3X-UI/Hiddify/Marzban), proxy components (core/engine), web server/reverse proxy Ensures config compatibility, DB migration, and repeatable deployment Text file stored encrypted; no secrets included
Network schema: public IP (v4/v6), internal interfaces, open ports, firewall rules Prevents loss of access after migration and avoids exposing unnecessary services Screenshot or text of rules; keep separate from keys
Domains and DNS: FQDN, all records (A/AAAA/CNAME), TTL, DNS provider, certificate validation method (HTTP/DNS) Migrating domain to new IP and reissuing TLS without downtime Export DNS zone from provider plus a written description
TLS: which certificates are used, expiration dates, chain, file locations, issuer (ACME/manual) Avoid unexpected expiration; properly restore HTTPS and SNI Better to reissue on new server; copy private keys only if necessary and encrypted
Protocol keys: Reality/XTLS parameters (if used), WireGuard/AmneziaWG keys, Hysteria2/QUIC keys, any static secrets Clients can’t connect without these; reissuing means reinstalling for all users Password manager or encrypted archive; access with least privilege principle
Users/profiles: client list, limits, expiration, tags, comments, UUID/logins, subscription links Preserve access structure and keep track of "who’s who" Panel export (if available) or DB/data file snapshot; encrypted storage
Routing: split/full rules, exceptions, DNS settings, resolvers, block lists (if any) Traffic behavior must stay consistent; otherwise, it might "seem to work but isn’t quite right" Text export of rules and comments explaining their purpose
Integrations: Telegram bots/notifications, API tokens, external databases, SSO/MFA Panels often survive migration, but notifications do not Store tokens in secret storage; reissue if possible
Logs and metrics: what’s enabled, where stored, rotation policies Prevent being “blind” during diagnostics and avoid unnecessary data retention Keep only what’s needed for support; don’t publish logs

Important: If you’re unsure whether a secret is truly needed for migration, first document where it’s used (diagnostics), then decide whether to copy or safely reissue it (reissuing may require new client profiles, so verify the switching and recovery procedure first).

3) Secure Storage: How to Save Backups and Keys Without Risk

Secret leaks or losses are migration risks alongside version incompatibility and diverging data. Here are core principles to keep the process reversible:

  • Separate “configs without secrets” from “secrets.” Configs can be stored more broadly (e.g., in a private repo), but secrets belong only in a password manager or encrypted container.
  • Encrypt backups before transfer/storage (zip with strong password, separate password channel). Never share private keys or archives in open chats.
  • Minimize backup lifespan: create backup → migrate → verify → delete temporary files on intermediate machines.
  • Prefer reissuing TLS certificates on the new server rather than copying private keys. This reduces risks if keys are compromised. Copying is a fallback plan if reissuing isn’t feasible due to timing or requirements.
  • Don’t disable TLS or cert verification "just for testing." Use a separate test domain/subdomain or parallel port instead of lowering security in production.

For Hiddify, verify backup and project setup details in the official docs/repository: github.com/hiddify/hiddify-manager. Avoid random "import from the web" commands unless you confirm them against your version’s source.

4) Migration Plan Without Downtime: Parallel Setup and Gradual Switch

The most controlled method is parallel migration: keep the old server serving clients while setting up and testing the new one side by side. Return is possible only after reconciling current data, checking compatibility, and ensuring a single active source of changes.

Step 1. Prepare a "Current Server Passport"

  • Complete the inventory from the table above.
  • Note checkpoints: which clients/protocols definitely work now (e.g., “Android client via subscription,” “iOS profile,” “router”). This becomes your testing plan.
  • Make backups of panel data and secrets (if not included in the backup) separately.

Step 2. Set Up the New Server in Isolation

  • Deploy OS and base security: updates, SSH keys, restrict admin access by IP/password, enable MFA where possible. These steps don’t require disabling protections on the old server.
  • Install your chosen panel and create a minimal test configuration (1 test user, 1 protocol/inbound rule) without touching production domains.
  • Check admin access and time sync (NTP): TLS and tokens often depend on accurate time.

Step 3. Prepare Domains and Certificates Safely

  • If using your main domain, reduce DNS TTL in advance (reversible: you can restore it later). Don’t do this at the last minute.
  • Consider a temporary subdomain for testing the new server. This allows you to try certificate issuance and connectivity without affecting current users.
  • After successful testing, point A/AAAA records to the new IP. Keep the old server active until clients finish their checks.

Step 4. Transfer Users and Keys in a Controlled Way

  • If your panel supports export/import, use only officially confirmed methods for your version. If no confirmation, it’s safer to migrate users manually or via scripts you fully understand and have tested.
  • Reissue secrets (integration tokens, passwords) whenever possible to avoid leaking old credentials into the new system.
  • Switch subscription links gradually: start with yourself/test group, then everyone else. This is reversible — keep old links active during migration.

5) Verification and Rollback: How to Confirm It Works and Switch Back If Needed

Follow your detailed testing plan rather than relying on “it seems to open.” Example checklist (feel free to print it):

  1. Panel: login to admin, MFA, roles, create/delete test user.
  2. TLS: certificate valid, matches domain, no warnings, chain correct.
  3. Connection: test clients on key platforms (at least one mobile and one desktop), including mobile operator and public Wi-Fi networks (without disabling cert checks).
  4. DNS: resolves new IP, no stale records, TTL as expected.
  5. Routing: necessary resources accessible, no unexpected traffic leaks to wrong routes (check by symptoms: what loads or doesn’t, without sharing diagnostic data).
  6. Observability: logs are recorded and rotated, metrics (if any) update, disk space sufficient.
  7. Rollback plan: you know exactly how to revert DNS to the old IP and how long it takes based on TTL.

Rollback: changing DNS back is insufficient if users, keys, expiry dates, or limits have changed on the new server. Freeze changes, preserve the current state, and reconcile new data back before switching addresses and checking clients. Do not operate two independent panels as simultaneous sources of updates. Retain the old server and verified backups until acceptance.

FAQ: Common Questions Before Migration

Should I copy TLS certificates and private keys to the new server?

It’s usually safer to reissue certificates on the new server rather than copying private keys. Copying makes sense only if you must keep the exact key/chain or don’t have time to reissue. Always verify where the certificate is used and which domains it covers first.

Is there a one-click way to move users between 3X-UI, Hiddify, and Marzban?

Each panel has different data models and config formats, so no universal, guaranteed transfer exists. If your panel supports export/import, follow documentation for your version carefully and test with a single user first. If no official method exists, opt for manual transfer or gradual profile recreation.

What data is most often forgotten?

TTL and the complete set of DNS records, certificate issuance parameters (especially DNS validation), routing rules (split/full), and integrations (notification tokens) are commonly missed. Also often lost is the “who’s who” in the user list — tags, comments, limits.

How do I migrate when I have many clients and want to avoid mass app reinstalls?

Plan a parallel period: bring up and test the new server, then switch clients gradually via subscription or profile, starting with a small group. Keep the old configs active for a limited time to allow easy fallback.

What if some clients connect after migration but others don’t?

First, diagnose differences: client platform, network type (mobile/home/public), domain/certificate, protocol, and transport. Then apply reversible fixes: add separate inbound test profile, temporarily use a subdomain for comparison, check DNS and server time. Don’t lower security (don’t disable TLS checks), or you risk “fixing” symptoms at real security cost.

A subtle option for "I want a dedicated IP without neighbors and no hardware hassle": If you want a personal server with a dedicated IP managed through a control panel rather than setting up VPS from scratch, vpn.how offers personal VPN servers with dedicated IPs; check current locations, protocols, prices, and limits on the site and in your dashboard. This is ideal when you value resource predictability and easy management. However, this doesn’t help if you want a perfect clone of your current panel/custom integrations and full OS control — in those cases, self-hosted migration as outlined above is best.

Publisher: vpn.how


Share this article:

Analytics preferences

Allow Google Analytics to help us improve the site? Declining does not affect your VPN. You can change your choice at any time. Privacy policy