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.

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:
    356
    Likes Received:
    1
    Trophy Points:
    18
    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:
    16
    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
     
Loading...

Share This Page