From PasarGuard
The installer detects PasarGuard and offers to migrate data. The commands below are for manual execution. Source databases are only ever read.
# Auto-detect databasegowave import pasarguard
# Specify path to SQLite file or ZIP backupgowave import pasarguard /opt/pasarguard/data/db.sqlite3gowave import pasarguard /path/to/backup.zip
# Or provide PostgreSQL DSNgowave import pasarguard 'postgresql://user:pass@localhost/pasarguard'- Migrates users, VLESS UUIDs, passwords for Trojan, Shadowsocks and Hysteria, traffic limits, reset strategies, notes, last used timestamps and HWID devices.
- Migrates Xray profiles, inbounds, user groups and squads, host settings, nodes and traffic history.
- Auto-detects database via
SQLALCHEMY_DATABASE_URLin/opt/pasarguard/.env(SQLite, PostgreSQL, TimescaleDB, including PgBouncer) or/var/lib/pasarguard/db.sqlite3. - When importing a ZIP archive,
db.sqlite3must be at the root of the archive.