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.

my user-configurable scheduled full backup script

Discussion in 'Data Protection' started by Mango45, Mar 10, 2013.

  1. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    I've seen a great deal of scripts intended for automating full backups but wasn't able to find one that met all my requirements, so I wrote my own. This script rsyncs a full backup anywhere you want. It's user-configurable - the user can decide where to send the backup file to, what email address should be used in case of errors, and if old backup files should be deleted as they age. An RSA key is used for authentication and the user's cPanel password is not required in the config file.

    This can be used in a few different ways. Some users like a full backup copied to a remote server periodically. I used to do that, but now I actually prefer to exclude the home directory from the full backup (by way of a single * in cpbackup-exclude.conf). I store the full backup (which is now only a few MB in size) in my home directory and my NAS device rsyncs my home directory to the NAS once per night. My home directory is huge, but most of it doesn't change from day to day. Using rsync obviously requires significantly less bandwidth and server resources.

    Here's the script, completely free to use. Bug reports would be welcome, though it's been used successfully for quite some time now.
     
    #1 Mango45, Mar 10, 2013
    Last edited by a moderator: Mar 10, 2013
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,461
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please feel free to submit this to the cPanel Application Catalog:
    cPanel App Catalog
     
  3. Mango45

    Mango45 Active Member

    Joined:
    Apr 21, 2009
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    I can't submit it there because it doesn't integrate with the cPanel GUI.

    If I post the source code, with no link, and remove mentions of my website from the source, can I post it here?
     
    #3 Mango45, Mar 15, 2013
    Last edited: Mar 15, 2013
Loading...

Share This Page