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.

Quota calculation -- exclude some directories

Discussion in 'General Discussion' started by 8p-design, Aug 1, 2009.

  1. 8p-design

    8p-design Active Member

    Joined:
    Mar 25, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    hi,

    We are making friendly backups, but because of this, we have to double the disk quota in each accounts.

    I'd like to exclude a directory from Quota calculation. I don't want to change the owners of the backups files.

    any clue?
    thanks!
    --
    Thierry
     
  2. 8p-design

    8p-design Active Member

    Joined:
    Mar 25, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Just to clarify, I am making a backup on another linux mountpoint on another drive. But cpanel adds the files in both places as being part of the user quota... because of ownership it seems.

    But I'd like quota to ignore the bckp folder content from any calculation.

    Was this clearer?
    thanks!
     
  3. Wenters.com

    Wenters.com Member

    Joined:
    Nov 8, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    What Linux/Unix flavour are we talking about?

    if we're talking about RedHat or CentOS, you could try to edit /etc/fstab and remove the usrquota setting for the backup disk/partition. Then unmount and remount the partition.

    Probably you should execute a command at this point to recalculate the quota's. [edit: that would be quotacheck ]

    I must admit that I have never tried this, and can give you no garantees that it works or not.
     
    #3 Wenters.com, Aug 3, 2009
    Last edited: Aug 3, 2009
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Ideally, you would not have quotas enabled on the backup partition so that the files on the backup partition do not count towards that user's quotas.
     
  5. 8p-design

    8p-design Active Member

    Joined:
    Mar 25, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    yes, this is what I want... I want to disable quota on certain directories.
    How do I do this?

    Is there a quota.conf file where I can --exclude my /mount/directory/
    ;)

    thanks!
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You will need to refer to your OS documentation for information on how to do that.
     
  7. 8p-design

    8p-design Active Member

    Joined:
    Mar 25, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    I'm on CENTOS 5.2 i686
    Still seeking how I can do this... so if anyone can point it out, I'd be grateful
    thanks!
     
Loading...

Share This Page