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 integrity Check

Discussion in 'Data Protection' started by santouras, Jun 16, 2009.

  1. santouras

    santouras Registered

    Joined:
    May 26, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi all

    is there a way to check the actual backup tar.gz file without extracting the files to check and see if everything has worked properly. Possibly some kind of command? I'm not sure. Basically we're looking to make sure the backups have run correctly and we do a weekly manual check to make sure everything is running smoothly, and would like to know more if there is anything more than checking the filesize and/or doing a restore to see if it has completed successfully.

    cheers
     
  2. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    cPanel creates a log for each backup and send it on email. You can check it to see if any problem appear. Usually, problems are with permissions (user has no access to nobody's files and cannot backup them)
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  4. UBERHOST

    UBERHOST Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    California, US
    That would mean deleting the accounts you are testing so that the backup can recreate it, in which case if your backup is for some reason corrupt, you'd have a very angry client.
     
  5. santouras

    santouras Registered

    Joined:
    May 26, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    very true

    with the backup logs, is there a spot in WHM where you can get them emailed? I can't spot a setting. Am using WHM 11.24.2 and am looking in the Backup -> Configure Backup screen
     
  6. 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
    This is configured in WHM -> Server Contacts -> Contact Manager. Scroll down to see the setting for "cPanel Backup."
     
  7. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Well, that's one way of doing it... another would be to extract the backup to another directory and use a comparison tool to ... well... compare the backup and the actual...
     
  8. brianjking

    brianjking Active Member

    Joined:
    Sep 15, 2009
    Messages:
    35
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    Twitter:
    Testing Backup Integrity

    If I want to test the integrity of the backup file created through a domain cPanel "download or generate a full backup" option how can I do this without extracting the contents and digging through it? Database driven websites make this an incredibly painful/almost impossible process.

    Additionally if the "download or generate a full backup" is corrupt and you restore it (after you have to delete the domain & all of it's files through WHM) then you lose all of your files, this equals an angry :mad: client & webhost.

    Please help! Thank you.

    @brianjking on twitter.
     
  9. 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

    Key things to look for:

    - All files are present. Sometimes, files owned by user nobody can cause issues. However, if you find 1 file owned by user nobody that is entirely in the backup (basically, not a 0k file), then this is probably a good backup so far.

    - Make sure all databases that are not empty have a SQL file that is > 1KB in size. On extremely rare occasion, there can be issues where the database is in use when cPanel tries to back it up and a database backup is not successful.

    - I know it sounds obvious, but it never hurts to view your backup logs when they are emailed to you with the email about automated backups (assuming you have left such notifications enabled on your server). Just view the logs to make sure no errors were reported. We are currently working on modifying this functionality to obviate, in the email, when an error has occurred during the backup process. Internal Case 28994


    PS: No need to post 3 times about the same issue :).
     
Loading...

Share This Page