The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

disable to backup huge accounts

Discussion in 'General Discussion' started by dendis, Jan 5, 2009.

  1. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Is there any way how to disable for cpanel to backup accounts that disk size is for example more than 2 GB ?

    I know you can exclude some users from being backed up, but if server has hundreds of accounts to scan everything manually every week is costly.
     
  2. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    No one has idea?
    Maybe it would be possible to add some perl line to the backup script to check home directory size and if account is determined to be huge, it will return failure for that main backup function?
     
  3. mohit

    mohit Well-Known Member

    Joined:
    Jul 12, 2005
    Messages:
    553
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sticky On Internet
    2GB is nothing to worry about, if you have disk-space and enough RAM to smoothly generate the backup.

    However if you wish to specifically disable backup for any account, login to Root WHM-->configure backups--->Last button on page is "Select Accounts"

    you can uncheck any account you don't wish to backup, But make sure you Notify the customer before doing so and avoid getting into heated arguments as not taking a customer backup is not a good Idea.
     
  4. Zishan

    Zishan Well-Known Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    0
    Its possible but requires some manual work. A script can be written as a /scripts/precpbackup that checks the size of each account and if any account exceeds a specific size lets say 2G then those usernames are appended to cpbackup-exclude.conf so that those users will be excluded by the /scripts/cpbackup. If you have already excluded few users then you need to keep those usernames somewhere else too so that when your precpbackup script overrides cpbackup-exclude.conf those users will be added again if not already there.
     
  5. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    2GB backup can eat up space very quickly.
    7 days of backup
    1 weekly backup
    1 monthly

    Total 9 backups, plus site = 20GB

    Have 5 accounts that size, you are looking at 100GB space.

    A feature I'd like to see for backup is "per account settings"
    Some accounts would get the daily backups.
    Some would just get a weekly (without monthly)

    I haven't looked at the settings in a while, so maybe that is there already?
     
  6. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Instead of playing with this, maybe it would be better to inject some line to backup script which will simply return backup creation failure ?
     
Loading...

Share This Page