How to limit cpanel backup feature only to accounts under 10 GB size?

electric

Well-Known Member
Nov 5, 2001
789
10
318
Hello,

I have seen a few hosting providers with a limit where they do not allow customers to use the cpanel backup utility if their account is more than 10GB in size (or 10k inodes).

How can this be done? We have a few customers who have VERY large accounts, and it kills the server when they try to create a backup.

We would like to restrict the cpanel backup utility to only customers with x GB in size or X number of inodes.

Thanks!
 
  • Like
Reactions: garconcn

electric

Well-Known Member
Nov 5, 2001
789
10
318
Any idea how some hosting companies are doing this?

For example, there is one provider I tested out... I uploaded about 11 GB of files, and then I clicked the link to go into the backup or backup wizard. I received a message that says, "Sorry, but this backup feature is not available if your disk space usage is greater than 10 GB."

This message ONLY appears if the account actually has more than 10GB in it. (It is not depending on package assigned.) I know this because I deleted a few files so the account had 9.5gb of disk usage... and the backup and backup wizard functions started working as normal.

Any idea how they are doing that?

This is a terrific feature to have, because it stops high disk usage accounts from killing the server if they do a Full Backup.

Thanks.
 

cPDavidL

Linux Analyst II
Oct 15, 2012
79
18
133
cPanel Access Level
Root Administrator
I'm sorry, but there is no readily available function within cPanel, to limit access to backup functions depending on disk usage. I do see there's an official feature request already open for this feature, to which I would encourage you to lend your support.