Exclude account has more than xx GB from backup auto

activa

Well-Known Member
May 23, 2006
213
1
168
Morocco
cPanel Access Level
Root Administrator
Hello

is there any option (tip) to exclude account that has more tha XXX GB in qouta from backup ?

is there any option (tip) to exclude some extention like .mp3 from backup in all acount ?
 

_El_Chojin_

Member
May 22, 2009
21
0
51
For the first you will need to develop it, i know that Hostgator.com has that option for if the account size if more than xxGb or if the user has more than xx inodes on the homedir.

Maeby this can be done with a hook on the backup function.

Other possible approach to this could be make a shell script that runs every day for example, and calculate the homedire size, and if is bigger than xxGb call a script that will execute for example a cpanel script that will disable that account from the account lists to backup, i think this could be much more easier than the hook.