πŸ“¦ Pulling a Home Directory from cPanel to Webuzo Using Rsync

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 [email protected]:/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 [email protected]:/home/exampleusername1/ /home/exampleusername1/

βœ… Useful for verifying paths and permissions before doing the real thing.


βœ… After the Transfer

Once the rsync process is done:

  1. Check ownership/permissions: chown -R exampleusername1:exampleusername1 /home/exampleusername1
  2. Restart any relevant services (e.g., Apache, PHP-FPM, MySQL)
  3. Audit config files like:
    • .htaccess
    • php.ini
    • wp-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!

Scroll to Top