Configure/Move the backup folder to Hard Disk 2

Seyed Meeran

Registered
Nov 16, 2015
2
0
1
INDIA
cPanel Access Level
Root Administrator
Hi,

I have primary HDD and secondary HDD mounted in my VPS.

My primary hdd space is 25GB and i brought additional hdd of 80GB since it is running out of space.

Now i want to change the backup folder. i want to store all my backups in hard disk two.
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hello :),

For this you will have to mount your second HDD on /backup directory.

1) First login your server through SSH with the root user

2) Rename your current backup directory to backup-ORI
Code:
cd /
mv backup backup-ORI
3) Create new backup directory
Code:
mkdir backup
4) Create a partition on your second disk and mount that on /backup directly which you have just created on your server.

5) Move your old backup from /backup-ORI to /backup
Code:
cd /backup-ORI
mv * /backup/
Please try with above steps and let me know if you have any other question.

Thanks,
 

Seyed Meeran

Registered
Nov 16, 2015
2
0
1
INDIA
cPanel Access Level
Root Administrator
@24x7server

I tried the steps above and i am getting error that the directory is not mounted.

1 ) HDD 25GB ( I install cpanel on this HDD and backup folder is located in this HDD)

2 ) Now i brought another HDD 80GB and mounted as /home2

3 ) Now i want to create a folder "backup" inside /home2 (HDD2) and store all backup into the new folder in /home2
 
Last edited by a moderator:

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hello Seyed,

If you want to store your backup on /home2 partition then create backup directory on /home2 ( mkdir /home2/backup ) and change your backup path through WHM >> Backup configuration
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

Yes, you can simply create the directory and update the backup path via "WHM >> Backup Configuration". Note that storing accounts and backups on the same partition is not advised.

Thank you.