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![]()
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![]()
Alexandre Silva Hostert
Server Management for Brazilians | Gerenciamento de Servidores para Brasileiros
http://widecombrasil.com.br
Anyone?
Thank you
Alexandre Silva Hostert
Server Management for Brazilians | Gerenciamento de Servidores para Brasileiros
http://widecombrasil.com.br
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