{"id":12974,"date":"2024-02-26T08:59:32","date_gmt":"2024-02-26T08:59:32","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=12974"},"modified":"2026-02-26T14:02:11","modified_gmt":"2026-02-26T14:02:11","slug":"how-to-run-backup-via-command-line","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/","title":{"rendered":"How to Run Backup via Command Line"},"content":{"rendered":"<p>In this guide, we will demonstrate how to run a backup via the command line. Although experienced users can schedule <a href=\"https:\/\/www.bodhost.com\/kb\/where-can-you-find-the-mysql-backups-storage-location\/\" target=\"_blank\" rel=\"noopener\">cPanel backups and configure storage in WHM<\/a>, this section focuses on executing manual backup scripts from the command line.<\/p>\n<p><strong>Follow these steps to run a backup via the command line:<\/strong><\/p>\n<ol>\n<li>Log into the \u201cWHM\u201d account as root.<\/li>\n<li>Select the \u201cServer Configuration\u201d tool and click on the \u201cTerminal\u201d.<\/li>\n<li>Execute the following command-<br \/>\n\/usr\/local\/cpanel\/bin\/backup<\/li>\n<li>To observe background processes in real time, run the following command with the additional option-<br \/>\n\/usr\/local\/cpanel\/bin\/backup \u2013debug<\/li>\n<\/ol>\n<p>Was not it useful to you? If you encounter any problems, get in touch with our support team. They are available 24&#215;7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will demonstrate how to run a backup via the command line. Although experienced users can schedule cPanel backups and configure storage in WHM, this section focuses on executing manual backup scripts from the command line. Follow these steps to run a backup via the command line: Log into the \u201cWHM\u201d account [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[943],"tags":[1512],"class_list":["post-12974","post","type-post","status-publish","format-standard","hentry","category-whm","tag-backup-via-command-line"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Execute Backup via Command Line Interface<\/title>\n<meta name=\"description\" content=\"In this guide, we will demonstrate how to run a backup via the command line.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Execute Backup via Command Line Interface\" \/>\n<meta property=\"og:description\" content=\"In this guide, we will demonstrate how to run a backup via the command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-26T08:59:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:11+00:00\" \/>\n<meta name=\"author\" content=\"Paul Lopez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Lopez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/\"},\"author\":{\"name\":\"Paul Lopez\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\"},\"headline\":\"How to Run Backup via Command Line\",\"datePublished\":\"2024-02-26T08:59:32+00:00\",\"dateModified\":\"2026-02-26T14:02:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/\"},\"wordCount\":126,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Backup via Command Line\"],\"articleSection\":[\"WHM\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/\",\"name\":\"How to Execute Backup via Command Line Interface\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2024-02-26T08:59:32+00:00\",\"dateModified\":\"2026-02-26T14:02:11+00:00\",\"description\":\"In this guide, we will demonstrate how to run a backup via the command line.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-run-backup-via-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WHM\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/whm\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Run Backup via Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\",\"name\":\"Paul Lopez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"caption\":\"Paul Lopez\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/paullopez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Execute Backup via Command Line Interface","description":"In this guide, we will demonstrate how to run a backup via the command line.","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:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/","og_locale":"en_US","og_type":"article","og_title":"How to Execute Backup via Command Line Interface","og_description":"In this guide, we will demonstrate how to run a backup via the command line.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2024-02-26T08:59:32+00:00","article_modified_time":"2026-02-26T14:02:11+00:00","author":"Paul Lopez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Paul Lopez","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/"},"author":{"name":"Paul Lopez","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813"},"headline":"How to Run Backup via Command Line","datePublished":"2024-02-26T08:59:32+00:00","dateModified":"2026-02-26T14:02:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/"},"wordCount":126,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Backup via Command Line"],"articleSection":["WHM"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/","name":"How to Execute Backup via Command Line Interface","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2024-02-26T08:59:32+00:00","dateModified":"2026-02-26T14:02:11+00:00","description":"In this guide, we will demonstrate how to run a backup via the command line.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-run-backup-via-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"WHM","item":"https:\/\/www.bodhost.com\/kb\/category\/whm\/"},{"@type":"ListItem","position":2,"name":"How to Run Backup via Command Line"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813","name":"Paul Lopez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","caption":"Paul Lopez"},"url":"https:\/\/www.bodhost.com\/kb\/author\/paullopez\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=12974"}],"version-history":[{"count":2,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12974\/revisions"}],"predecessor-version":[{"id":12976,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12974\/revisions\/12976"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=12974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=12974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=12974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}