CALL US: +91-9971329945 / +91-120-4312792 Live Chat Submit Ticket   Login
cPanel & WHM backup through Command Line Interface

cPanel & WHM is a hosting tool used by hosting providers to manage their sites. Sometimes we want to take a backup of an account from the command-line interface.

In order to do that use the below command.

 

1. To take backup of all accounts

# /usr/local/cpanel/bin/backup

 

2. To take forceful backup of all accounts.

# /usr/local/cpanel/bin/backup –force

 

3. To take backup of single user

# /scripts/pkgacct <username>

Note: Replace <username> with your user.

 

 

To get more updates on cPanel & WHM click https://www.datanethosting.com/blog/

 

To know more click https://docs.cpanel.net/whm/backup/

cPanel & WHM restore backup through Command Line Interface

cPanel & WHM is a hosting tool used by hosting providers to manage their sites. Sometime we want to restore backup of an account from command line interface.

In order to do that use below command.

 

1. To restore backup of an account.

# /scripts/restorepkg <username.tar.gz>

Note: Replace <username.tar.gz> with your backup file.

 

Point To Remember: It will restore all the files, databases and Emails related to that user.

 

 

To get more updates on cPanel & WHM click https://www.datanethosting.com/blog/

 

To know more click https://docs.cpanel.net/whm/backup/