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!

Backup web site before terminiating

Discussion in 'Data Protection' started by flashweb, Sep 28, 2015.

  1. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    253
    Likes Received:
    2
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Hi,

    When web site is terminated with WHMCS (API), i want to take a backup before removing the web site, so i have latest copy in case needed.

    If i add following code to

    Code:
    /scripts/pkgacct "$@"
    
    /usr/local/cpanel/scripts/prekillacct

    Will it take a backup before terminating account ?

    Thanks,

    Yujin
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    688
    Likes Received:
    111
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Yujin,

    Looks like it should, but why not just test it, add it to the script, create a new test account, then terminate it :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    253
    Likes Received:
    2
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    I don't want anything goes wrong on a production server :)

    Hope some at cpanel can confirm..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    One potential issue to consider is the size of the account. A large account may take some time to backup, leaving the termination process hanging. Have you considered increasing the frequency of your scheduled backups as an alternative?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. lx24

    lx24 Member

    Joined:
    Oct 2, 2014
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    yes, the size of account matters a lot. You should consider to have schedule backups than taking up backup at the time of termination. Most of the production servers do have backups, depends on the its setup however. But taking the backup at the time of termination is not good idea i guess.
     
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