{"id":3532,"date":"2015-07-27T20:19:36","date_gmt":"2015-07-28T00:19:36","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3532"},"modified":"2025-03-09T15:36:41","modified_gmt":"2025-03-09T19:36:41","slug":"cpanel-backup-via-ssh-single-account","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/cpanel-backup-via-ssh-single-account\/","title":{"rendered":"How to Create and Download a cPanel Backup for a Single Account"},"content":{"rendered":"\r\n<p>Need to back up a single cPanel account for migration or restoration? You can use the <code>pkgacct<\/code> script to generate a cPanel package, making the transfer process smooth and efficient.<\/p>\r\n\r\n\r\n<h2>Step 1: Generate a cPanel Backup Package<\/h2>\r\n<p>Run the following command via SSH as the root user to create a full cPanel backup for a specific account:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>\/scripts\/pkgacct username<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Replace <code>username<\/code> with the actual cPanel account username.<\/p>\r\n\r\n<h2>Step 2: Move Backup File to User\u2019s Home Directory<\/h2>\r\n<p>By default, the backup is saved in <code>\/home<\/code> as <code>cpmove-username.tar.gz<\/code>. To allow the user to download it, move the file to their home directory:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>mv cpmove-username \/home\/username<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h2>Step 3: Set Correct Ownership<\/h2>\r\n<p>Ensure the user has the correct permissions to access and download the backup:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>chown username:username \/home\/username\/cpmove-username<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h2>Downloading the Backup<\/h2>\r\n<p>Once moved to the user\u2019s home directory, the backup can be downloaded via FTP, cPanel File Manager, or SSH.<\/p>\r\n\r\n<h2>Restoring the Backup on a New Server<\/h2>\r\n<p>To restore the cPanel account on another server, transfer the backup file and run:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>\/scripts\/restorepkg username<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h2>Need Assistance?<\/h2>\r\n<p>If you need help with cPanel account backups or server migrations, UnderHost\u2019s 24\/7 expert support is here to assist. Contact us via <a href=\"https:\/\/customerpanel.ca\/client\" target=\"_blank\">@CustomerPanel<\/a>.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Back up and transfer a single cPanel account easily between servers using the command line.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,11],"tags":[],"class_list":["post-3532","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-controlpanel","category-how-to"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3532"}],"version-history":[{"count":2,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3532\/revisions"}],"predecessor-version":[{"id":5131,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3532\/revisions\/5131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}