Knowledgebase:
How to migrate big CPanel accounts between servers safely
Posted by John Terramoto, Last modified by John Terramoto on 06 August 2018 03:03 PM
  1. Sign in to the new hosting server. ( through SSH/terminal )
  2. 'rsync' the account folder to a temporary folder. ( rsync --delete --exclude={backup-*,error_log,debug.log,.trash} -ia root@oldserver.ukhost4u.com:/home/username/ /home/temp-username )
  3. Use 'Transfer Tool' on the new server WHM to initiate the migration by skipping the homedir.
  4. Once the migration is complete update the ownership of the temp folder. ( chown -R username:username /home/temp-username/ )
  5. Move the account folder created during the migration to a second temporary folder. ( mv /home/username/ /home/temp-username2/ )
  6. Move the first temporary folder to the account folder. ( mv /home/temp-username/ /home/username )
  7. Run a last rsync to update the most recent entries ( rsync --exclude '.htaccess' -ia root@oldserver.ukhost4u.com:/home/username /home/username/ )

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).