buy
Cpanel to webuzo migration via CLI

Overview

This document explains how to import cPanel accounts to Webuzo using the Webuzo CLI.

1. Recommended CLI Method: Bulk / Admin Import (--admin_import_cpanel)

This command connects to the cPanel/WHM server, fetches account configurations, packages, and resellers, creates any required accounts/plans in Webuzo, and imports them in parallel using Rsync over SSH.

CLI Command Syntax:

webuzo --admin_import_cpanel \ --host="<CPANEL_SERVER_IP_OR_HOSTNAME>" \ --whm_user="root" \ --pass="$(echo -n '<REMOTE_ROOT_PASSWORD>' | base64)" \ --migration_method="rsync" \ --port="22" \ --users="user1,user2,user3" \ --overwrite="overwrite"

Viewing Import Logs

To monitor the migration progress in real time, use:

tail -f /var/webuzo/logs/import_cpanel.log

Note: If --migration_method is not specified, the api method is used by default. For faster migration using direct SSH-based Rsync streaming, set --migration_method="rsync"


2. Alternative CLI Method: Single-Account Import (--import_cpanel)

This method imports a specific cPanel account into Webuzo.

CLI Command Syntax

webuzo --import_cpanel \ --admin_import="root" \ --server="<CPANEL_SERVER_IP_OR_HOSTNAME>" \ --pass="$(echo -n '<REMOTE_ROOT_PASSWORD>' | base64)" \ --migration_method="rsync" \ --port="22" \ --user="<CPANEL_USERNAME>"
Parameter Details:

  • --admin_import=root: Designates root privileges on the remote server (required to activate Rsync mode).
  • --migration_method=rsync: Forces direct SSH Rsync migration.
  • --user=<USERNAME>: The specific user to migrate.

    • Was this page helpful?
      Newsletter Subscription
      Subscribing you to the mailing list