How to restore cPanel account backup with new username

We already knows, how to restore the cPanel back-up using script command but most of us doesn’t know how to restore the cPanel back-up with new username.

In older version its not possible but In new WHM version its possible. Go through below steps to do it.

The first step is that you have to login to your remote server through an SSH connection. You can use either Putty in Windows or the Terminal if you are using a Mac or Linux. Then you will have to login as root user.

Choose any testing account, I am here using cppl account for testing purpose.

Take test cPanel account backup using scripts command.

/scripts/pkgacct/cppl

cpanel account restore with new username

cpanel account restore with new username1

Verify the backup file.

ls -lh

Now terminating cppl account from cpanel

/scripts/killacct cppl

You can use the above command to terminate an account or You can also do it within WHM.

Home »Account Functions »Terminate an Account

Now we will Restore the same domain with different/new username.

/scripts/restorepkg --newuser cpplnew /home/cpmove-cppl.tar.gz

cpanel account restore with new username-3

Finally Verify the restored account username details in home directory. You can see, its restored with new username and also created soft link.

ls -lh

cpanel account restore with new username-4So this is all you have to do to restore cPanel account with different username, Please Give your opinion below if you experience any issues or to discuss your ideas and experiences.