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.

What should one be backing up on the server?

Discussion in 'General Discussion' started by isdoo, Jun 1, 2011.

  1. isdoo

    isdoo Active Member

    Joined:
    Mar 25, 2011
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Should both disks fail on my RAID and I lost everything, what should I be backing up?

    I guess that I would get the datacenter to rebuild the server and then I would put the information back on server.

    However I do not really want to backup what I do not need (for example I reckon some of the optional scripts all take up space)

    I am sure it is more than just /home/*

    Thank you.
     
  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
    Personally, on my server, I just backup the account information+data. I just go into Configure Backups in WHM and let that handle backing up the accounts for me. It just makes things simpler on me to ensure everything associated with the accounts is backed up and nothing extra is backed up. I don't get worried about backing up server configurations because default cPanel&WHM configurations change with time, so a good "start from scratch" is a good thing once in a very great while (e.g. when one finally outgrows/outlives their hardware) :).
     
  3. isdoo

    isdoo Active Member

    Joined:
    Mar 25, 2011
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Thanks.

    Silly question now - what directories would that be?

    (sorry for the newbie question)

    I am using an external script for backing up
     
  4. 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
    Quite a few - don't recall everything offhand.

    Any particular reason for using an external script?
     
  5. isdoo

    isdoo Active Member

    Joined:
    Mar 25, 2011
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    okay. Thanks anyway.

    Reason for external? Firstly it is off-site, is relatively inexpensive, allows users to restore backups themselves from different time stamps over the last week / month.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you are backing up directories rather than using cPanel backups, then I would suggest the list mentioned here:

    http://forums.cpanel.net/f5/rsync-backups-160054.html#post671150

    Of note, if you have InnoDB enabled, it isn't advisable to only copy /var/lib/mysql but to take a full mysqldump instead of the databases using this type of command:

    Code:
    mysqldump --add-drop-table --all-databases | gzip > /home/alldatabases.sql.gz
    This will backup all the databases and put them into a file at /home/alldatabases.sql.gz, which you could then copy with /home contents.
     
Loading...

Share This Page