How to Backup and Restore cPanel Accounts via SSH? Print

  • cpanel, backup, ssh
  • 0

Creating a cPanel Backup via SSH

To create a backup of your individual cPanel account using SSH, just follow these steps:

  1. First, log in to SSH as the Root user.
     
  2. Next, enter the following command string on the command line interface:
     
    /scripts/pkgacct username
     
  3. A backup of your account will be created and stored in the directory you are currently in.

 

Restoring a cPanel Backup via SSH

To restore a previously created backup of your cPanel account, just follow these steps:

  1. First, if you haven’t already, log in to SSH as the Root user.
     
  2. Navigate to the directory containing your backup file. *Note: In order to restore your data, you must be in the correct directory.
     
  3. Next, to restore your cPanel backup, enter the following command into the command line:
     
    /scripts/restorepkg username

Finished. Now your accounts is backup and restore. 


Was this answer helpful?

« Back