First of all login to your server via SSH as the root user and for restoring an account, make sure that you have a backup available in one of the following locations or your backup location for example, /backupdisk:

/, /home, /home2, /home3, /root, /tmp, /usr, /usr/home, /var/tmp, /web
 
To backup an account (in this example, username is rapid): 
#   /scripts/pkgacct rapid
 
To restore an account (in this example, username is rapid):
#   /scripts/restorepkg rapid

This is the easiest way of backingup and restoring cPanel web hosting accounts via the command line interface.
這篇文章有幫助嗎? 41 Users Found This Useful (121 Votes)