The /backup folder contains all the backup files performed by cPanel, and by default it's stored on the root-disk. You can move the folder to your data-disk so that it will not take up your root-disk space.
1. Log in to your servelet via SSH as root.
2. Use "df -h" command to verify on which folder the data-disk (/dev/vdb1) is mounted. For example, below result shows that the data-disk is mounted as /home. In some servelets, it may be mounted as /data or other folder.
root@server21 [/]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_centos6564bit-lv_root
13G 13G 0 100% /
tmpfs 939M 0 939M 0% /dev/shm
/dev/vda1 477M 147M 305M 33% /boot
/dev/vdb1 40G 28G 9.3G 76% /home
3. Check the total size of the backup folder using below command:
du -sh /backup
root@server21 [/]# du -sh /backup
7.6G /backup
And ensure that you have enough disk space on the data-disk to keep the file. On the above example, the backup folder contains 7.6 GB worth of data and the data-disk still has 9.3 GB of data.
4. Move the /backup folder to the /home/backup folder using below command:
cd /
mv backup /home
5. Login to WHM and go to WHM Home > Backup > Backup Configuration and change the "Default Backup Directory" from /backup to /home/backup.
6. Use "df -h" command again to verify that your root-disk space has been freed and the folder has been moved to the data disk.
root@server21 [/home/backup]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_centos6564bit-lv_root
13294328 5317084 7295260 43% /
tmpfs 961092 0 961092 0% /dev/shm
/dev/vda1 487652 150024 312028 33% /boot
/dev/vdb1 41153664 37262852 1793672 96% /home
7. You can also go to the /home/backup folder to verify that all the backup files are there.
cd /home/backup
ls -la
root@server21 [/home/backup]# ls -la
total 12
drwx------ 3 root root 4096 Jan 31 16:15 ./
drwx--x--x 21 root root 4096 Jan 31 16:15 ../
drwx------ 3 root root 4096 Jan 31 16:15 2016-01-31/
That's all. :)