How to transfer an account to another server without email data Print

  • 0

Introduction

As of the time of this article's writing, WHM's "Transfer Tool" utility does not have an option to exclude email from being transferred along with a cPanel account. The following procedure outlines how to transfer an account from one cPanel server to another without email data.

 

Procedure

  1. Access the source server's command line as the 'root' user via SSH or "Terminal" in WHM.
  2. Run the following command to package the account without its email.

    /usr/local/cpanel/scripts/pkgacct --skipmail $cPuser

    Please note that "$cPuser" must be replaced with the cPanel username of the account you want to transfer. 
    Please note that, by default, the archive named cpmove-$cPuser.tar.gz will be created in the /home folder.

  3. Use your preferred transfer method to transfer the archive from the source server to the destination server.
  4. Access the destination server's command line as the 'root' user via SSH or "Terminal" in WHM.
  5. Run the following command to restore the account.

    /usr/local/cpanel/scripts/restorepkg /path/to/cpmove-$cPuser.tar.gz

    Please note that "/path/to/cpmove-$cPuser.tar.gz" must be replaced with the full path to the archive you want to restore.

 

Additional resources

The pkgacct Script

The restorepkg Script


Was this answer helpful?
Back

Send Message