{"id":2361,"date":"2024-01-13T11:49:58","date_gmt":"2024-01-13T11:49:58","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=2361"},"modified":"2024-01-13T11:50:01","modified_gmt":"2024-01-13T11:50:01","slug":"how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/","title":{"rendered":"How to generate a backup and restore the entire cPanel account using the command-line interface?"},"content":{"rendered":"\n<p><strong>Introduction:<\/strong><\/p>\n\n\n\n<p>Creating and restoring backups of cPanel accounts is a crucial task to safeguard website data and configurations. The command-line interface (CLI) provides a convenient way to perform these operations efficiently. In this guide, we&#8217;ll walk through the steps to generate a backup and restore entire cPanel account using the <code>pkgacct<\/code> and <code>cpmove<\/code> utilities.<\/p>\n\n\n\n<p><strong>Backup Generation:<\/strong><\/p>\n\n\n\n<p>1. Use an SSH client to connect to our server&#8217;s command-line interface.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ ssh root@ip-address<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2. Change to the directory where cPanel scripts are located. This will typically be in \/scripts a directory. Use the following command.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ cd \/script<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>3. Use the <code>pkgacct<\/code> command to create a backup of the cPanel account. Replace <code>ACCOUNT_USERNAME<\/code> with the actual cPanel account username, and <code>DESTINATION_PATH<\/code> with the desired path where we want to store the backup file.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ .\/pkgacct  Accout-Username <code>Destination-path<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>This command will create a backup of the specified cPanel account and store it in the specified destination directory.<\/p>\n\n\n\n<p>4. The <code>pkgacct<\/code>  process may take some time, depending on the size of the account. We can monitor the progress by observing the output in the terminal.<\/p>\n\n\n\n<p>5. Once the backup process is complete, we will find a compressed backup file in the destination directory which is specified. The file will typically have a name like <code>cpmove-ACCOUNT_USERNAME.tar.gz<\/code>.<\/p>\n\n\n\n<p><strong>Restoration:<\/strong><\/p>\n\n\n\n<p>1. Similar to the backup process, connect to our server via SSH<\/p>\n\n\n\n<p>2. Change to the cPanel scripts directory.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ cd \/scripts<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>3. Use the <code>restorepkg<\/code> command to restore our cPanel account. Replace <code>BACKUP_FILENAME<\/code> with the actual backup file name.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>.\/restorepkg BACKUP_FILENAME<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4. Observe the terminal for progress updates as the restoration process takes place.<\/p>\n\n\n\n<p>5. Once the restoration is complete, log in to our cPanel interface and verify that all files, databases, and configurations have been restored successfully.<\/p>\n\n\n\n<p><strong>Conclusion<\/strong>:<\/p>\n\n\n\n<p>Effectively generating and restoring backups from the command line is essential for maintaining the integrity of our cPanel account. Regular backups ensure data security and provide a reliable solution for disaster recovery scenarios.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Creating and restoring backups of cPanel accounts is a crucial task to safeguard website data and configurations. The command-line interface (CLI) provides a convenient way to perform these operations efficiently. In this guide, we&#8217;ll walk through the steps to generate a backup and restore entire cPanel account using the pkgacct and cpmove utilities. Backup ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2361","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to generate a backup and restore the entire cPanel account using the command-line interface? - PheonixSolutions Knowledge-Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to generate a backup and restore the entire cPanel account using the command-line interface? - PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"og:description\" content=\"Introduction: Creating and restoring backups of cPanel accounts is a crucial task to safeguard website data and configurations. The command-line interface (CLI) provides a convenient way to perform these operations efficiently. In this guide, we&#8217;ll walk through the steps to generate a backup and restore entire cPanel account using the pkgacct and cpmove utilities. Backup ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-13T11:49:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-13T11:50:01+00:00\" \/>\n<meta name=\"author\" content=\"Saikrishna Areddy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Saikrishna Areddy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/\"},\"author\":{\"name\":\"Saikrishna Areddy\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"headline\":\"How to generate a backup and restore the entire cPanel account using the command-line interface?\",\"datePublished\":\"2024-01-13T11:49:58+00:00\",\"dateModified\":\"2024-01-13T11:50:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/\"},\"wordCount\":320,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/\",\"name\":\"How to generate a backup and restore the entire cPanel account using the command-line interface? - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"datePublished\":\"2024-01-13T11:49:58+00:00\",\"dateModified\":\"2024-01-13T11:50:01+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2024\\\/01\\\/13\\\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to generate a backup and restore the entire cPanel account using the command-line interface?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\",\"name\":\"PheonixSolutions Knowledge-Base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\",\"name\":\"Saikrishna Areddy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"caption\":\"Saikrishna Areddy\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/author\\\/saikrishna\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to generate a backup and restore the entire cPanel account using the command-line interface? - PheonixSolutions Knowledge-Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/","og_locale":"en_US","og_type":"article","og_title":"How to generate a backup and restore the entire cPanel account using the command-line interface? - PheonixSolutions Knowledge-Base","og_description":"Introduction: Creating and restoring backups of cPanel accounts is a crucial task to safeguard website data and configurations. The command-line interface (CLI) provides a convenient way to perform these operations efficiently. In this guide, we&#8217;ll walk through the steps to generate a backup and restore entire cPanel account using the pkgacct and cpmove utilities. Backup ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2024-01-13T11:49:58+00:00","article_modified_time":"2024-01-13T11:50:01+00:00","author":"Saikrishna Areddy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Saikrishna Areddy","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/"},"author":{"name":"Saikrishna Areddy","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"headline":"How to generate a backup and restore the entire cPanel account using the command-line interface?","datePublished":"2024-01-13T11:49:58+00:00","dateModified":"2024-01-13T11:50:01+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/"},"wordCount":320,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/","name":"How to generate a backup and restore the entire cPanel account using the command-line interface? - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"datePublished":"2024-01-13T11:49:58+00:00","dateModified":"2024-01-13T11:50:01+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2024\/01\/13\/how-to-generate-a-backup-and-restore-the-entire-cpanel-account-using-the-command-line-interface\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"How to generate a backup and restore the entire cPanel account using the command-line interface?"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/","name":"PheonixSolutions Knowledge-Base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba","name":"Saikrishna Areddy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","caption":"Saikrishna Areddy"},"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/author\/saikrishna\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2361"}],"version-history":[{"count":3,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2361\/revisions"}],"predecessor-version":[{"id":2366,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2361\/revisions\/2366"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}