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!

prebackup

Discussion in 'General Discussion' started by sparek-3, Dec 1, 2008.

  1. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,649
    Likes Received:
    73
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Is /scripts/cpprebackup still the correct way to execute something before a cpbackup process is started?

    Reading through the cpbackup script it seems to indicated that this feature is deprecated, but I don't see where there is any mention of a replacement method.

    What is the correct way to run a script before cpbackup begins backing up accounts?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This is now /scripts/postcpbackup (after the backup process) and /scripts/precpbackup (before the backup process). These scripts need to be created with executable permissions for them to function properly.

    This and similar hooks are listed at: http://www.cpanel.net/support/docs/hooks.htm
     

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