Change /backup drive
Hi guys, in:
Home / Backup / Backup Configuration I'm using the default value: /backup for both:
Default Backup Directory and Backup Staging Directory located on my drive:
/dev/nvme1n1/backup.
If I want to change the backup location to another drive on server (and create the dir) like:
/dev/nvme0n1/backup2
Do I only create the directory on another drive and change in WHM to /backup2 for both entries or is there more to it?
Note: the new drive that I would use for backups already has cpanel user accounts (as it's far larger drive than primary) so I would use it for both accounts and backup.
Thanks
-
Hey there! Yes, that really is all there is to it. However, your last note about it already having cPanel accounts will keep it from working. cPanel doesn't allow you to do that as it can severely slow down the server due to issues with quota calculation.
1 -
I see, so what can I do to move /backup from primary drive to secondary?
Is "Mount Backup Drive as Needed" an option in this case if I order 1 more drive?
Thanks for this Rex0 -
If you had another partition inside the other disk that would work fine, and then you could use the "mount backup drive as needed" option as well as that partition wouldn't need to be permanently active.
1 -
So the choice is:
1. get one more drive and use it solely for /backup2 (or partition it into 2 and use 1 partition for backup).
2. transfer cpanel accounts from secondary drive into primary, format/partition secondary drive into 2 and use one for backup and another for accounts.
Did I get this right Rex?0 -
Those would be good options, yes. We just don't want a situation where the backup partition also has live cPanel accounts on it.
1 -
Got it chief, thank you for this.
0 -
Sure thing!
0 -
Hi Alex, but I already have an single account in /home2 directory on /dev/nvme0n1 drive, the entire drive is a single partition - I didn't create multiple partitions and cPRex said this:
Hey there! Yes, that really is all there is to it. However, your last note about it already having cPanel accounts will keep it from working. cPanel doesn't allow you to do that as it can severely slow down the server due to issues with quota calculation.
Do you think it's safe to do what you suggested?
Thanks man0 -
Hi,
If /dev/nvme0n1 is not the root partition, then cPanel would disable quotas on this partition if you decide to store backups on it. This is done to avoid performance degradation. We have this clarified in our documentation on configuring backups:
https://docs.cpanel.net/whm/backup/backup-configuration/#configure-the-backup-directory
0
Please sign in to leave a comment.
Comments
9 comments