{"id":429,"date":"2021-06-15T15:16:04","date_gmt":"2021-06-15T15:16:04","guid":{"rendered":"https:\/\/hostandtech.com\/help\/?p=429"},"modified":"2021-11-26T20:43:17","modified_gmt":"2021-11-26T20:43:17","slug":"how-to-run-and-force-cpanel-backup-using-ssh","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/","title":{"rendered":"How To Run And Force cPanel Backup Using SSH"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"429\" class=\"elementor elementor-429\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-12f6560 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"12f6560\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-24a9269\" data-id=\"24a9269\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f5f4e98 elementor-widget elementor-widget-text-editor\" data-id=\"f5f4e98\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>By backup tool in <span style=\"color: #000000;\"><strong><a style=\"color: #000000;\" href=\"https:\/\/hostandtech.com\/help\/category\/whm-cpanel\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a><\/strong><\/span>,\u00a0 you can backup the entire system and accounts or specific accounts on local or remote destinations. The root administrator user can manage and schedule the backup by WHM interface. In addition, you can run cPanel backup to execute and force backup the system using SSH connection.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-03f0aff elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"03f0aff\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4461d6a\" data-id=\"4461d6a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3c99fcf elementor-widget elementor-widget-heading\" data-id=\"3c99fcf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">cPanel Backup Shell Commands<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e668cd9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e668cd9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0bbf2c5\" data-id=\"0bbf2c5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9874f2e elementor-widget elementor-widget-text-editor\" data-id=\"9874f2e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Run New cPanel Backup System via SSH<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3aa471a elementor-widget elementor-widget-code-highlight\" data-id=\"3aa471a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>\/usr\/local\/cpanel\/bin\/backup<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-86fa132 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"86fa132\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dd62247\" data-id=\"dd62247\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0f09dc3 elementor-widget elementor-widget-text-editor\" data-id=\"0f09dc3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Force cPanel To Perform A New Backup Even Shows Up-To-Date<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-77183e5 elementor-widget elementor-widget-code-highlight\" data-id=\"77183e5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>\/usr\/local\/cpanel\/bin\/backup --force<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-913555b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"913555b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ccc0b17\" data-id=\"ccc0b17\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fa1b146 elementor-widget elementor-widget-text-editor\" data-id=\"fa1b146\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>cPanel Legacy Backup System<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef5dc56 elementor-widget elementor-widget-code-highlight\" data-id=\"ef5dc56\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>\/usr\/local\/cpanel\/scripts\/cpbackup<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ce76ee9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ce76ee9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-07243ad\" data-id=\"07243ad\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2658c7a elementor-widget elementor-widget-text-editor\" data-id=\"2658c7a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Force cPanel To Perform A New Backup<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-54dec33 elementor-widget elementor-widget-code-highlight\" data-id=\"54dec33\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>\/usr\/local\/cpanel\/scripts\/cpbackup --force<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f62ee47 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f62ee47\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a84782f\" data-id=\"a84782f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5f88120 elementor-widget elementor-widget-heading\" data-id=\"5f88120\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">All Manual Backup Script Options<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f1ab1fc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f1ab1fc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2ea86d8\" data-id=\"2ea86d8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4186cf3 elementor-widget elementor-widget-text-editor\" data-id=\"4186cf3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The \/usr\/local\/cpanel\/bin\/backup script accepts the following options:<\/p><ul><li><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\"><strong>Debug<\/strong> : Runs the backup in the foreground and prints its progress on the command line. Example :&#8211;debug<\/span><\/li><li><strong>Allow Override<\/strong>:When the system performs the backup, use the pkgacct script in the the \/var\/cpanel\/lib\/Whostmgr\/Pkgacct\/pkgacct directory. Example : &#8211;allow-override<\/li><li><strong>Force Option<\/strong>:Performs extra backup, even if the system already contains up-to-date backup data files. Example: &#8211;force<\/li><li><strong>Help<\/strong>: Displays additional information.Example :&#8211;help<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5b7412f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5b7412f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-af7703e\" data-id=\"af7703e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f70b020 elementor-widget elementor-widget-text-editor\" data-id=\"f70b020\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Run Script Backup For Single Account<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2336a7a elementor-widget elementor-widget-text-editor\" data-id=\"2336a7a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"color: #7a7a7a;\">To back up a single cPanel account. You can use The <span style=\"font-weight: bolder;\">pkgacct<\/span>\u00a0Script instead.<\/p><p style=\"color: #7a7a7a;\">To perform this single backup :<\/p><ul style=\"font-size: 16px; background-color: #ffffff; color: #7a7a7a;\"><li style=\"font-size: 16px;\">Log into your server via SSH as root.\u00a0<\/li><li style=\"font-size: 16px;\">Run the following command. Optionally adding flags, followed by the username of the cPanel user you\u2019d like to backup. And the directory you\u2019d like used for the output.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-94a9305 elementor-widget elementor-widget-code-highlight\" data-id=\"94a9305\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>\/usr\/local\/cpanel\/scripts\/pkgacct [options] USERNAME DIRECTORY<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bc78c83 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bc78c83\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a4c0795\" data-id=\"a4c0795\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b411f35 elementor-widget elementor-widget-heading\" data-id=\"b411f35\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Some of pkgacct Script Backup Options<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a2d23d6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a2d23d6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4cb3aeb\" data-id=\"4cb3aeb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6e54790 elementor-widget elementor-widget-text-editor\" data-id=\"6e54790\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li><b>USERNAME<\/b> : Required The cPanel account username for which to create a cpmove archive. So you must pass this option after any options, but before the DIRECTORY option.<\/li><li><b>DIRECTORY<\/b>:The directory path in which to store the archive. By default, the script uses the \/home directory. You must pass this option after the USERNAME option.<\/li><li><b>\u2013allow-override<\/b>:Use the \/var\/cpanel\/lib\/Whostmgr\/Pkgacct\/pkgacct file to package the account, if it exists.<\/li><li><b>\u2013mysql=VERSION<\/b>:The archive\u2019s required minimum version of MySQL\u00ae. For example,<b>\u00a0 \u2013mysql=5.2.1<\/b><\/li><li><b>\u2013roundcube=VERSION<\/b>:The archive\u2019s required minimum version of Roundcube. For example,<b><\/b><b>\u00a0\u2013roundcube=3.0<\/b><\/li><li><b>\u2013dbbackup=TYPE<\/b>:With Types :all, schema ,name. For example,<b><\/b><b>\u00a0\u2013dbbackup=all<\/b><\/li><li><strong>&#8211;get_version: <\/strong>Display the version of the\u00a0<code>pkgacct<\/code>\u00a0script<strong>.<\/strong><\/li><li><strong>&#8211;use_backups<\/strong>: Use the account\u2019s last known successful backup as a template when the script creates the archive. Use this option to speed up the backup process.<\/li><li><strong>&#8211;incremental<\/strong>: Update the destination file with any new content since the previous backup. This option also removes any content that no longer exists on the account. If the destination file does\u00a0<strong>not<\/strong> exist, the script creates a new file in that location.\u00a0<strong>This option will pass the &#8211;nocompress option to create an uncompressed archive.<\/strong><\/li><li><strong>&#8211;split<\/strong>: Create the archive in smaller data files. This option reduces the overall load on the system and makes it easier to transfer the files. The system creates these files in the\u00a0<code>cpmove-USERNAME.tar.gz.part00001<\/code>\u00a0format, where\u00a0<code>USERNAME<\/code>\u00a0is the user\u2019s account and\u00a0<code>part00001<\/code>\u00a0is the file\u2019s incremental ID.<\/li><li><strong>&#8211;nocompress<\/strong>: Do not compress the archive.<\/li><li><strong>&#8211;userbackup<\/strong> :Allow the user to use the archive as a backup file for the account.<\/li><li><strong>&#8211;backup=FILEPATH<\/strong>: Use the archive as a backup for the account at the given file path. This option creates the\u00a0<code>username.tar.gz<\/code>\u00a0file, where\u00a0<code>username<\/code>\u00a0represents the account\u2019s username.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d16e8f4 elementor-widget elementor-widget-elementor-faq-schema\" data-id=\"d16e8f4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementor-faq-schema.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                                    <script type=\"application\/ld+json\">\n                    {\n                        \"@context\": \"https:\/\/schema.org\",\n                        \"@type\": \"FAQPage\",\n                        \"mainEntity\": [\n                         {\n                            \"@type\": \"Question\",\n                            \"name\": \"How Do I Force cPanel To Perform A New Backup Even Shows Up-To-Date?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;p&gt;Run this command:&lt;\/p&gt;&lt;p&gt;\/usr\/local\/cpanel\/bin\/backup --force&lt;\/p&gt;\"\n                            }\n                                                    },\n                                             {\n                            \"@type\": \"Question\",\n                            \"name\": \"How Do I Create A Full cPanel Backup on My server and accounts?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;p&gt;Run this comand:&lt;\/p&gt;&lt;p&gt;\/usr\/local\/cpanel\/scripts\/cpbackup&lt;\/p&gt;\"\n                            }\n                                                    },\n                                             {\n                            \"@type\": \"Question\",\n                            \"name\": \"How Do I Run Script Backup For Single Account?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;p&gt;To back up a single cPanel account. You can use The pkgacct Script instead.&lt;\/p&gt;&lt;p&gt;To perform this single backup :&lt;\/p&gt;&lt;ul&gt;&lt;li&gt;log into your server via SSH as root.&lt;\/li&gt;&lt;li&gt;Run the following command, optionally adding flags, followed by the username of the cPanel user you\u2019d like to backup, and the directory you\u2019d like used for the output.&lt;\/li&gt;&lt;\/ul&gt;&lt;div class=&quot;elementor-element elementor-element-94a9305 elementor-widget elementor-widget-code-highlight&quot; data-id=&quot;94a9305&quot; data-element_type=&quot;widget&quot; data-widget_type=&quot;code-highlight.default&quot;&gt;&lt;div class=&quot;elementor-widget-container&quot;&gt;&lt;div class=&quot;prismjs-okaidia copy-to-clipboard &quot;&gt;&lt;div class=&quot;code-toolbar&quot;&gt;&lt;pre class=&quot;highlight-height language-bash&quot; data-line=&quot;&quot;&gt;\/usr\/local\/cpanel\/scripts\/pkgacct [options] USERNAME DIRECTORY&lt;\/pre&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\"\n                            }\n                                                    }\n                    ]\n                    }\n                <\/script>\n                    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>By backup tool in cPanel,\u00a0 you can backup the entire system and accounts or specific accounts on local or remote destinations. The root administrator user can manage and schedule the backup by WHM interface. In addition, you can run cPanel backup to execute and force backup the system using SSH connection. cPanel Backup Shell Commands [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":14491,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[250,260],"tags":[2,280,278,123,290],"class_list":["post-429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-whm-cpanel","tag-cpanel","tag-linux-administrators","tag-linux-command","tag-ssh","tag-whm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Run cPanel Backup Via SSH Connection To Force Backup The System<\/title>\n<meta name=\"description\" content=\"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Run cPanel Backup Via SSH Connection To Force Backup The System\" \/>\n<meta property=\"og:description\" content=\"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"STS Host and Tech Knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-15T15:16:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-26T20:43:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1507\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"HostandTech Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Run cPanel Backup Via SSH Connection To Force Backup The System\" \/>\n<meta name=\"twitter:description\" content=\"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HostandTech Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/\"},\"author\":{\"name\":\"HostandTech Support\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\"},\"headline\":\"How To Run And Force cPanel Backup Using SSH\",\"datePublished\":\"2021-06-15T15:16:04+00:00\",\"dateModified\":\"2021-11-26T20:43:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/\"},\"wordCount\":533,\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png\",\"keywords\":[\"cPanel\",\"Linux Administrators\",\"Linux Command\",\"SSH\",\"WHM\"],\"articleSection\":[\"Linux\",\"WHM\/cPanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/\",\"url\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/\",\"name\":\"Run cPanel Backup Via SSH Connection To Force Backup The System\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png\",\"datePublished\":\"2021-06-15T15:16:04+00:00\",\"dateModified\":\"2021-11-26T20:43:17+00:00\",\"description\":\"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations\",\"breadcrumb\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png\",\"width\":2560,\"height\":1507,\"caption\":\"cPanel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostandtech.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Run And Force cPanel Backup Using SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostandtech.com\/help\/#website\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"name\":\"STS Host and Tech Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostandtech.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\",\"name\":\"STS Host and Tech Inc\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"width\":630,\"height\":270,\"caption\":\"STS Host and Tech Inc\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/stshostandtech\",\"https:\/\/x.com\/stshostandtech\",\"https:\/\/www.instagram.com\/stshostandtech\",\"https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\",\"name\":\"HostandTech Support\",\"url\":\"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Run cPanel Backup Via SSH Connection To Force Backup The System","description":"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations","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:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/","og_locale":"en_US","og_type":"article","og_title":"Run cPanel Backup Via SSH Connection To Force Backup The System","og_description":"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations","og_url":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/","og_site_name":"STS Host and Tech Knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2021-06-15T15:16:04+00:00","article_modified_time":"2021-11-26T20:43:17+00:00","og_image":[{"width":2560,"height":1507,"url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png","type":"image\/png"}],"author":"HostandTech Support","twitter_card":"summary_large_image","twitter_title":"Run cPanel Backup Via SSH Connection To Force Backup The System","twitter_description":"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations","twitter_image":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"HostandTech Support","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/"},"author":{"name":"HostandTech Support","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042"},"headline":"How To Run And Force cPanel Backup Using SSH","datePublished":"2021-06-15T15:16:04+00:00","dateModified":"2021-11-26T20:43:17+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/"},"wordCount":533,"publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"image":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png","keywords":["cPanel","Linux Administrators","Linux Command","SSH","WHM"],"articleSection":["Linux","WHM\/cPanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/","url":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/","name":"Run cPanel Backup Via SSH Connection To Force Backup The System","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage"},"image":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png","datePublished":"2021-06-15T15:16:04+00:00","dateModified":"2021-11-26T20:43:17+00:00","description":"You can run cPanel backup using SSH connection to backup the entire system and accounts or specific accounts on local or remote destinations","breadcrumb":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#primaryimage","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/cPanel_Logo.png","width":2560,"height":1507,"caption":"cPanel"},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-run-and-force-cpanel-backup-using-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/help\/"},{"@type":"ListItem","position":2,"name":"How To Run And Force cPanel Backup Using SSH"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/help\/#website","url":"https:\/\/hostandtech.com\/help\/","name":"STS Host and Tech Knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/help\/#organization","name":"STS Host and Tech Inc","url":"https:\/\/hostandtech.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","width":630,"height":270,"caption":"STS Host and Tech Inc"},"image":{"@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech","https:\/\/www.instagram.com\/stshostandtech","https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042","name":"HostandTech Support","url":"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":299,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"predecessor-version":[{"id":16188,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/429\/revisions\/16188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media\/14491"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}