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!

Back Up Config

Discussion in 'Data Protection' started by PCZero, Jan 8, 2010.

  1. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    590
    Likes Received:
    44
    Trophy Points:
    178
    Location:
    Earth
    Is there a way to back up some sites daily and other monthly?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not that I'm aware of.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    590
    Likes Received:
    44
    Trophy Points:
    178
    Location:
    Earth
    Can resellers set up automated back ups for their clients or can automated back ups be done at the client level?
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    It is not possible from WHM. However, if you wish then you can create shell scripts to do it. Users can generate/download backup from cPanel using "Backups" option.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Friendly Moderator Note

    I've relocated this thread into the Data Protection discussion forum as it relates to backup configurations and applicable customization.

    Automated backups as configured in WHM (via root access) are performed server-wide and are not currently customizable by resellers or end-users; however, it is technically possible for users to create and use custom scripts to automate downloading backups via cPanel.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    590
    Likes Received:
    44
    Trophy Points:
    178
    Location:
    Earth
    Thanks Don... I was thinking along those lines, but it would be nice to have this ability at WHM level in a future release. Sort of an accoutn by account back up level.

    My situation is that I have no resellers and I include back ups as part of my hosting. Depending on the level of hosting that a client has, the back ups are performed at either the daily, weekly, or monthly basis. It would be great to have a check for those levels on the screen where you select which accounts to back up so that each account would be backed up at the request interval.

    Can you provide an example of the syntax to run a back up from a script? I imagine once I have the script written, I can simply addd it as a cron job. I'd prefer to have the jobs run at the server level (one each for weekly, daily, monthly) to back up the specific accounts, rather than have an individual script on each account's cron.
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I don't have an example custom script on-hand, but there are at least a few to be found via searching the forums. I recommend following the applicable feature request threads like Infopro suggested as this will help more as a long-term solution; adding any thoughts or opinions in the threads will also help by letting us know which feature requests are the most popular or that would be the most useful to users of cPanel and WHM.

    As far as creating backups via command-line, where it could be scripted, I would look at using the pkgacct script, as seen below; at minimum it takes a username as an argument, but there are a few other options available, such as specifying the directory where to save the backup ("$tarroot") as seen when reading the script contents:
    Code:
    # /scripts/pkgacct $user
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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