Restoring or Backup Cpanel Accounts via SSH

For your business to survive on the Internet, you must back up your hosting account. You must back up all of your data at least once a week, whether you are a small or large firm. cPanel comes with a number of ready-to-use scripts that will make your life easier. Pkgacct is used to back up CPanel web hosting accounts, while restorepkg is used to restore CPanel web hosting accounts using SSH or command-line interface.Click here to watch a video instruction on this topic:

How to create a backup of an Individual cPanel Account via SSH?

Step 1: Log in to the SSH as a root user.

Step 2: Enter the following command string on the command line interface:

/scripts/pkgacct username

Note:

 The account backup will be created in the directory where you are now working.

How to Restore the Individual cPanel Account via SSH?

How to Restore the Individual cPanel Account via SSH?

Step 1: To restore the cPanel account backups, enter the following command:

/scripts/restorepkg username

Note:

 The account backup will be produced in the directory in which you are now working.

How to Restore the Individual cPanel Account via SSH?

This is the simplest approach to use the command line interface to backup and restore individual cPanel web hosting accounts.