Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 960 Bytes

readme.md

File metadata and controls

41 lines (27 loc) · 960 Bytes

Installing Prerequisites on Ubuntu/Debian

First, update your system and install the required tools:

sudo apt update -y && sudo apt upgrade -y
sudo apt install -y python3 python3-pip python3-venv unzip wget git

Step 1: Export Marzban Data

This tool exports Admins, Users, and JWT keys from Marzban.

Setting Up the Export Tool

  1. Install Uv:
export PIP_BREAK_SYSTEM_PACKAGES=1
pip install uv
  1. Prepare the Database:

    • SQLite: Ensure Marzban is stopped.
    • MySQL: Have your database credentials ready.
  2. Download and Run:

cd && git clone https://github.com/erfjab/migration.git && cd migration && uv sync &&  uv run app/export/export.py
  1. Save marzban.json file your pc

This will generate a marzban.json file with the exported data. For the next step, upload this file to the /root/import directory.

  1. Delete Files
rm -rf /root/migration