{"id":289,"date":"2025-04-16T10:39:46","date_gmt":"2025-04-16T08:39:46","guid":{"rendered":"https:\/\/www.24x7serverguard.com\/blog\/?p=289"},"modified":"2025-04-16T10:39:46","modified_gmt":"2025-04-16T08:39:46","slug":"%f0%9f%94%81-how-to-migrate-and-restore-a-single-cpanel-account-between-servers","status":"publish","type":"post","link":"https:\/\/www.24x7serverguard.com\/blog\/cpanel\/%f0%9f%94%81-how-to-migrate-and-restore-a-single-cpanel-account-between-servers\/","title":{"rendered":"\ud83d\udd01 How to Migrate and Restore a Single cPanel Account Between Servers"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Need to migrate a single cPanel account from one server to another without affecting the rest? Whether you&#8217;re moving hosting providers or setting up a new server, this guide walks you through <strong>step-by-step<\/strong> on how to backup, transfer, and restore a single cPanel account seamlessly.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f Step 1: Identify the cPanel Username on the Source Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, SSH into the <strong>source server<\/strong> and find the username associated with the domain:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/scripts\/whoowns domain.com<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will return the <strong>cPanel username<\/strong> for that domain.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udce6 Step 2: Generate a Full Backup of the Account<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you have the username, create a full cPanel backup which includes website files, databases, emails, and configurations:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/scripts\/pkgacct username<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the process is complete, a file named something like <code>cpmove-username.tar.gz<\/code> will be created in the <code>\/home<\/code> directory.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd10 Step 3: Change Permissions for Transfer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To make the file accessible for download, change its permissions:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">chmod 755 \/home\/cpmove-username.tar.gz<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then move it to a publicly accessible directory (e.g., the user&#8217;s <code>public_html<\/code> folder):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">mv \/home\/cpmove-username.tar.gz \/home\/username\/public_html\/<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udce5 Step 4: Download Backup on the Destination Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now, SSH into the <strong>destination server<\/strong> and navigate to the <code>\/home<\/code> directory:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cd \/home<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download the cPanel backup file using <code>wget<\/code>. Replace <code>serverip<\/code> with the IP of the <strong>source server<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">wget http:\/\/serverip\/~username\/cpmove-username.tar.gz<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u267b\ufe0f Step 5: Restore the Account on the Destination Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the download is complete, use the cPanel restore script to import the account:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/scripts\/restorepkg username<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This command will unpack the backup and automatically set up the user\u2019s account, including all websites, databases, and emails.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 That\u2019s It \u2013 Migration Complete!<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ve now successfully migrated a single cPanel account from one server to another without using WHM or cPanel interfaces. This method is reliable, efficient, and perfect for admins comfortable working via SSH.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udca1 Pro Tip:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure DNS is updated to point to the new server IP once the account is live on the destination server.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Need help automating bulk migrations or troubleshooting errors during transfer? Let us know in the comments!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Need to migrate a single cPanel account from one server to another without affecting the rest? Whether you&#8217;re moving hosting providers or setting up a new server, this guide walks you through step-by-step on how to backup, transfer, and restore a single cPanel account seamlessly. \ud83d\udee0\ufe0f Step 1: Identify the cPanel Username on the Source [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[277,278,276,279],"class_list":["post-289","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","tag-account-between-servers","tag-cpanel-to-cpanel","tag-migrate-and-restore-a-single-cpanel","tag-migration"],"_links":{"self":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":291,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/289\/revisions\/291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media\/290"}],"wp:attachment":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}