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.

Prevent full backup for users

Discussion in 'General Discussion' started by AlexandreVeezon, Jan 15, 2008.

  1. AlexandreVeezon

    AlexandreVeezon Well-Known Member

    Joined:
    Dec 9, 2005
    Messages:
    99
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    /br/sc/rionegrinho
    cPanel Access Level:
    Root Administrator
    Hello

    How can I prevent users from doing full backups during day?
    I wish to allow then just at midnight to 6:00 AM.

    What I need to do?

    Thank you :)
     
  2. AlexandreVeezon

    AlexandreVeezon Well-Known Member

    Joined:
    Dec 9, 2005
    Messages:
    99
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    /br/sc/rionegrinho
    cPanel Access Level:
    Root Administrator
    Anyone?

    Thank you
     
  3. 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
    I was thinking of perhaps placing a hook on whatever API2 call this functionality may call, but it seems like the code is still in API1 format so I am unsure if it would call a hook as not all API1 calls call hooks.

    A hook would permit you to intercept this function call and create a script such that if it is between certain hours of the day, to not execute the backup and perhaps display an informative message instead.

    You can find the API call in /usr/local/cpanel/base/frontend/x3/backup/dofullbackup-include.html

    You can find details on API2 hooks in /usr/local/cpanel/hooks/ in a file called README
     
Loading...

Share This Page