Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    3

    Default Backup integrity Check

    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. #2
    d_t
    d_t is offline
    Member
    Join Date
    Sep 2003
    Location
    Bucharest
    Posts
    231

    Default

    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. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    Aside from checking the logs, file sizes, etc., you should periodically test some of the backups by extracting them and verifying the contents.

  4. #4
    Member UBERHOST's Avatar
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    102

    Default

    Quote Originally Posted by PlatinumServerM View Post
    Aside from checking the logs, file sizes, etc., you should periodically test some of the backups by extracting them and verifying the contents.
    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.

    click logo to visit us for dedicated
    cPanel servers and more

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    3

    Default

    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. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by santouras View Post
    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
    This is configured in WHM -> Server Contacts -> Contact Manager. Scroll down to see the setting for "cPanel Backup."

  7. #7
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    Quote Originally Posted by UBERHOST View Post
    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.
    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. #8
    Member brianjking's Avatar
    Join Date
    Sep 2009
    Posts
    11

    Exclamation Testing Backup Integrity

    Quote Originally Posted by cPanelDavidG View Post
    This is configured in WHM -> Server Contacts -> Contact Manager. Scroll down to see the setting for "cPanel Backup."
    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 client & webhost.

    Please help! Thank you.

    @brianjking on twitter.

  9. #9
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by brianjking View Post
    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 client & webhost.

    Please help! Thank you.

    @brianjking on twitter.

    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 .

Similar Threads & Tags
Similar threads

  1. cpanel backup verify 100% integrity ?
    By wowo in forum Feature Requests for cPanel/WHM
    Replies: 5
    Last Post: 08-28-2011, 11:43 AM
  2. System integrity monitor
    By Gaming-Heaven in forum New User Questions
    Replies: 1
    Last Post: 01-18-2007, 08:42 AM
  3. How to check disk integrity
    By Diatone in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-05-2006, 02:23 PM
  4. Check WHM Backup Log
    By ghpoty in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-10-2005, 04:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube