How to copy accounts from old server to a new server ?
Dear all,
I just purchase a new server with WHM/Cpanel, and I would like to copy/transfers all my accounts from OLD server to NEW server using SSH commands, how do I do that ? (I know WHM has a function to copy account to new server using web browser, but I don't want to use that, it is too slow, and I want to use SSH. By the way both servers are using WHM/Cpanel)
Thank you very much !
Sincerely,
Calvin
-
Hello, Please try with the following steps. 1) First create the backup on your server with /scripts/pkgacct command ( /scripts/pkgacct USERNAME) 2) SCP your all account backup file to new server under the home directory 3) Restore migrated backup files on new server through /scripts/restorepkg scripts ( /scripts/restorepkg USERNAME) Let me know if you have any other question. 0 -
Hi 24x7server, Thank you for your help, I don't understand the step #2, can you please give example ? Thank you very much ! Sincerely, Calvin 0 -
Calvin, The following links provide more details on utilizing SCP to transfer files: [url=http://www.tecmint.com/scp-commands-examples/]10 SCP Commands to Transfer Files/Folders in Linux [url=http://linux.die.net/man/1/scp]scp(1): secure copy - Linux man page You can however use any file transfer method of your choice (ftp, rsync, etc) to transfer your backup files. 0 -
Thank you very much Samir ! Sincerely, Calvin 0
Please sign in to leave a comment.
Comments
4 comments