How to take backup of all cPanel accounts using SSH?

Use the /usr/local/cpanel/bin/backup script to run a manual backup in WHM via the command line. The system reads the backup configuration file and then performs the actions defined in the file. By default, the system performs this process in the background. You can review the log file in the /usr/local/cpanel/logs/cpbackup directory.

Run a manual backup

To run a backup manually, log in to the command line via SSH as the root user and run the following command:

/usr/local/cpanel/bin/backup

Options

The /usr/local/cpanel/bin/backup script accepts the following options:

OptionDescriptionExample
debug Runs the backup in the foreground and prints its progress on the command line. --debug
force Performs an additional backup, even if the system already contains up-to-date backup files. --force
allow-override When the system performs the backup, use the pkgacct script in the the /var/cpanel/lib/Whostmgr/Pkgacct/pkgacct directory. --allow-override
help Displays additional information. --help

 

  • backup of all cpanel accounts, backup, backup of cpanel account, cpanel backup
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to access VPS by SSH for first time?

You need to download latest version of Putty.exe file here: https://putty.org/ Open...

What is the requirements to Buy Pakistan Hosted VPS?

We Provide Pakistan Hosted VPS Servers only to Pakistani Customers. VPS Servers are hosted in...

How to change SSH Port in CentOS?

Connect to your server via SSH as root user. Run the following command: vi...

How to change server root password using SSH or VPS Portal?

Connect to your server via SSH as root user. Enter the command:passwd Type your password,...

How to Install CSF firewall in cPanel?

CSF firewall is fairly easy to install and require only few steps through SSH. Please follow the...