{"id":13,"date":"2023-04-03T16:11:32","date_gmt":"2023-04-03T16:11:32","guid":{"rendered":"https:\/\/hosta1.com\/blog\/?p=13"},"modified":"2023-04-03T16:11:32","modified_gmt":"2023-04-03T16:11:32","slug":"how-to-backup-and-restore-cpanel-accounts-via-ssh","status":"publish","type":"post","link":"https:\/\/hosta1.com\/kb\/how-to-backup-and-restore-cpanel-accounts-via-ssh\/","title":{"rendered":"How to Backup and Restore cPanel Accounts via SSH"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">cPanel provide ready script to do the backup to create cpanel backup from ssh execute below command <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First, log in to SSH as the Root user.<\/li>\n\n\n\n<li>Next, enter the following command string on the command line interface:<br>\/scripts\/pkgacct username<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">A backup of your account will be created and stored in the current directory you are logged in.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Restoring a cPanel Backup via SSH<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To restore a previously created backup of your cPanel account, just follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First, if you haven\u2019t already, log in to SSH as the Root user.<\/li>\n\n\n\n<li>Navigate to the directory containing your backup file.\u00a0<\/li>\n\n\n\n<li>Next, to restore your cPanel backup, enter the following command into the command line:<strong>\/scripts\/restorepkg backup-username-03-04.2023.tar.gz<\/strong><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>cPanel provide ready script to do the backup to create cpanel backup from ssh execute below command A backup of your account will be created and stored in the current directory you are logged in. Restoring a cPanel Backup via SSH To restore a previously created backup of your cPanel account, just follow these steps:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":1,"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":14,"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/posts\/13\/revisions\/14"}],"wp:attachment":[{"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosta1.com\/kb\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}