Posts Under Category: Backup

cPanel offers you to schedule backup and retain backup of server and accounts. But if you need to run backup manually, you can do it from SSH. Login to your server as root via SSH and run following command.

For cPanel new Backup system


If the backup is up-to-date, you can force to run backup using below command

/usr/local/cpanel/bin/backup --force

For cPanel Legacy backup system


If the backup is up-to-date and you wish to run backups anyway, use:

/usr/local/cpanel/scripts/cpbackup --force

Our Recommended Dedicated Server

cPanel default backup system may fail to create and save backup of your server and send you following message:

The backup was not able to be completed because timed out waiting for /bin/backup to finish


Possible cause of the problem

Any old backup process is still running in background on the server.

Confirm the cause

Login to your server as root via SSH and execute following command

/usr/local/cpanel/bin/backup --force

Most probably it will show you following type message:

Backup process currently running. Pid: 5378
Backup log file: /usr/local/cpanel/logs/cpbackup/1377934812.log


We need to kill the current running backup process. Note the Pid from above and run following command. Change xxxx to Pid number that you have got from above.

kill -9 xxxx

cPanel backup should now run normally. You can force to start a new fresh backup process using below command:

/usr/local/cpanel/bin/backup --force

Our Recommended Dedicated Server

If you have many websites / accounts on your server, and you want to make backup of all mySQL via a single command, here is how you can do. Creating regular full mySQL backup of all accounts is a very good practice. Creating full MySQL backup is also recommended before performing any mysql upgrade.

How to create full MySQL backup

Login as root via SSH and execute following command:

mysqldump --add-drop-table --all-databases | gzip > /home/alldatabases.sql.gz

This will create a SQL-based backup of everything in MySQL and save it into your /home directory. The name of your backup file will be alldatabases.sql.gz

You may change the backup file name and location where it will be saved.

How to restore full MySQL backup

To restore a full MySQL backup file, you will need root MySQL password. Run following command to get root mySQL password

tail /root/.my.cnf

The above command will show the root MySQL password. When you have password, run following command:

gunzip < /home/alldatabases.sql.gz | mysql -u root -p

If your saved full mysql backup is at different location, change the path in above command. If the name of your full mysql backup file is different, please change in above command.

You will be asked to enter password. So, enter the password that you have got above from tail /root/.my.cnf command.

Done!! It will take sometime to restore all database depending on size of database file.

Our Recommended Dedicated Server


R1soft server is unable to connect to Agent server, and giving following error message.

Failed to connect to (hostname) after 120000 milliseconds


The R1soft backup server IP has been blocked at Agent server firewall. If you have CSF firewall installed, then its blocked by CSF firewall.


Remove R1soft server IP from blocked / deny IP list. It may be temporary blocked or listed in csf.deny
Also add R1soft server IP in csf.allow as trusted IP.

Our Recommended Dedicated Server