How to run backup via command line in WHM

October 6, 2023 / Command Line

In this article, we will explain how to run backup via the command line.

While experienced users can schedule cPanel backups and configure storage in WHM, this section focuses on running manual backup scripts from the command line.

Follow these steps to Run a Backup Via the Command Line:

  1. Log into the “WHM” account as root.
    WHM
  2. Run the following command.
    Run Backup

    /usr/local/cpanel/bin/backup
  3. To monitor background processes in real-time, execute the command with the added option:
    /usr/local/cpanel/bin/backup --debug

In this way, you can use the command lines to Run Backup.

Running backups via the command line gives you full control, but if you want a more user-friendly interface, check out how to use cPanel’s Backup Wizard for quick and easy full backups.

For more information, visit our knowledge base section.

Spread the love