Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Customized code before and after cpbackup execution

Discussion in 'Data Protection' started by Bdzzld, Dec 6, 2005.

  1. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    391
    Likes Received:
    4
    Trophy Points:
    168
    Hello,

    I'd like to load the HDD controller driver before and unload it after the execution of the cpbackup script. I know it's possible to alter the cpbackup script itself, but I'd like to keep the script intact (my perl is too rusty).

    Where (cron?) or by what other script is this script executed ?

    Thanks.
     
  2. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Hey

    look in crontab file.

    line looks like
    0 1 * * * /scripts/cpbackup

    I think it calls other scripts.
    Just load the driver before the script is run.

    DONT edit the cpbackup script, i think cpanel updates it occationally so it will overwrite your changes :)

    cheers
    Andy
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice