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.

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:
    243
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    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 :)
     
  3. flashweb

    flashweb Well-Known Member

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

    Hope some at cpanel can confirm..
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
  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