Cpanel has ready made scripts that will make your works so easier

such are pkgacct for backing up and restorepkg for restoring individual accounts through command in ssh

First you need to login to the ssh as root

Create Backup of Individual Account

Then use the following command to backup that spicific account:

/scripts/pkgacct username

Notice that the directory that you are in will be used to create backup of that account in there

Restore Backup of Individual Account

To restore

/scripts/restorepkg USERNAME

Please notice that in order to restore  you need to be on the directory where the backup is located

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.