Migrating from cPanel to Webuzo? One of the most efficient and reliable methods to transfer user data is using rsync over SSH. This guide walks you through pulling a home directory from a cPanel server into your Webuzo server via the Webuzo Terminal.
β Requirements
Make sure you have:
- SSH access to the source cPanel server
- The SSH port used by the cPanel server (e.g.,
5250) - The username and home directory path on the cPanel server
- Access to the Webuzo Terminal on the destination server
π§ Command Format
Use the following syntax to pull data using rsync:
rsync -e 'ssh -p[PORT]' -ahvP [USER]@[SOURCE_HOST]:[SOURCE_PATH] [DEST_PATH]
π Real-World Example
Scenario:
You’re migrating the home directory for user exampleusername1 from a cPanel server at vps.yourserver.com, using SSH port 5250.
π Run this command from your Webuzo Terminal:
rsync -e 'ssh -p5250' -ahvP exampleusername1@vps.yourserver.com:/home/exampleusername1/ /home/exampleusername1/
π Explanation of Flags
rsync: The file transfer utility-e 'ssh -p5250': Connects over SSH on the specified port-a: Archive mode (preserves symlinks, permissions, timestamps, and more)-h: Outputs human-readable numbers (e.g., 1K, 234M)-v: Verbose output (see whatβs happening)-P: Shows progress and resumes interrupted transfers
π§ͺ Optional: Perform a Dry Run First
To simulate the transfer without making any actual changes:
rsync -e 'ssh -p5250' -ahvP --dry-run exampleusername1@vps.yourserver.com:/home/exampleusername1/ /home/exampleusername1/
β Useful for verifying paths and permissions before doing the real thing.
β After the Transfer
Once the rsync process is done:
- Check ownership/permissions:
chown -R exampleusername1:exampleusername1 /home/exampleusername1 - Restart any relevant services (e.g., Apache, PHP-FPM, MySQL)
- Audit config files like:
.htaccessphp.iniwp-config.php(for WordPress)- Database connection strings
π Wrapping Up
Using rsync over SSH is a secure and effective way to transfer home directories between control panels. Whether you’re handling one account or a full server migration, it:
- Saves time
- Reduces manual errors
- Preserves integrity and permissions
π§° Tip: Consider writing a script or loop for multiple accounts to streamline the process!
