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.

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,384
    Likes Received:
    23
    Trophy Points:
    38
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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