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!

Backups missing on 1 server

Discussion in 'Data Protection' started by katmai, May 21, 2019.

  1. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    556
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Brno, Czech Republic
    Hi guys,

    So we have 4 servers, setup with incremental backups, every day: - Removed -

    On Sunday, the weekly backups are taken.

    I just checked today, and the Monday backups are all missing: - Removed -

    When i checked the backup logs, it looks like the backups just didn't run. Any ideas what's going on or how can i debug this further?:

    Code:
    [root@phhw-160403 cpbackup]# ls -la
    total 21724
    drwx------. 2 root root    4096 May 19 04:00 .
    drwx--x--x. 8 root root    4096 May 21 05:20 ..
    -rw-------. 1 root root 2395849 May  9 07:39 1557280801.log
    -rw-------. 1 root root 2223591 May 10 22:16 1557453601.log
    -rw-------. 1 root root 2172165 May 12 00:43 1557540001.log
    -rw-------. 1 root root 3070890 May 13 15:29 1557626402.log
    -rw-------. 1 root root 2389564 May 15 00:09 1557799201.log
    -rw-------. 1 root root 2176074 May 15 23:22 1557885601.log
    -rw-------. 1 root root 2018618 May 17 01:57 1557972001.log
    -rw-------. 1 root root 2757791 May 18 07:40 1558058402.log
    -rw-------. 1 root root 2979014 May 21 05:20 1558231201.log
    [root@phhw-160403 cpbackup]# pwd
    /usr/local/cpanel/logs/cpbackup
    Running on:
    • CENTOS 7.6 v78.0.24
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 katmai, May 21, 2019
    Last edited by a moderator: May 21, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,161
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @katmai

    Can you provide the output of the following:
    Code:
    cat /var/cpanel/backups/config
    Can you also check the cPanel error logs for the timeframe where backups should have been run to determine if there's any errors? You can find it here:

    Code:
    /usr/local/cpanel/logs/error_log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    556
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Brno, Czech Republic
    I think i figured out what happened. the weekly backup took too long to complete and the monday backup got skipped :/

    [2019-05-20 04:00:01 +0200] info [backup] A backup process (ID: 52563) is already running.
    [2019-05-20 04:00:01 +0200] info [backup] Backup log file: /usr/local/cpanel/logs/cpbackup/1558231201.log
    [2019-05-20 04:00:01 +0200] info [backup] To watch the backup, run:
    tail -f /usr/local/cpanel/logs/cpbackup/1558231201.log

    not sure how to sort this one out because the mail report came on the 19th and said the backup was successful.

    cat /var/cpanel/backups/config
    ---
    BACKUPACCTS: 'yes'
    BACKUPBWDATA: 'no'
    BACKUPDAYS: 0,1,2,3,4,5,6
    BACKUPDIR: /mnt/backups
    BACKUPENABLE: 'yes'
    BACKUPFILES: 'yes'
    BACKUPLOGS: 'no'
    BACKUPMOUNT: 'no'
    BACKUPSUSPENDEDACCTS: 'yes'
    BACKUPTYPE: incremental
    BACKUP_DAILY_ENABLE: 'yes'
    BACKUP_DAILY_RETENTION: 7
    BACKUP_MONTHLY_DATES: 1
    BACKUP_MONTHLY_ENABLE: 'yes'
    BACKUP_MONTHLY_RETENTION: 1
    BACKUP_WEEKLY_DAY: 0
    BACKUP_WEEKLY_ENABLE: 'yes'
    BACKUP_WEEKLY_RETENTION: 2
    CHECK_MIN_FREE_SPACE: 1
    DISABLE_METADATA: 'no'
    ERRORTHRESHHOLD: 3
    FORCE_PRUNE_DAILY: 0
    FORCE_PRUNE_MONTHLY: 0
    FORCE_PRUNE_WEEKLY: 0
    GZIPRSYNCOPTS: --rsyncable
    KEEPLOCAL: 1
    LINKDEST: 0
    LOCALZONESONLY: 'no'
    MAXIMUM_RESTORE_TIMEOUT: 21600
    MAXIMUM_TIMEOUT: 7200
    MIN_FREE_SPACE: 5
    MIN_FREE_SPACE_UNIT: percent
    MYSQLBACKUP: both
    POSTBACKUP: 'no'
    PREBACKUP: -1
    PSQLBACKUP: 'no'
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,161
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Yea, based on that log entry:

    Code:
    [2019-05-20 04:00:01 +0200] info [backup] A backup process (ID: 52563) is already running.
    [2019-05-20 04:00:01 +0200] info [backup] Backup log file: /usr/local/cpanel/logs/cpbackup/1558231201.log
    [2019-05-20 04:00:01 +0200] info [backup] To watch the backup, run:
    tail -f /usr/local/cpanel/logs/cpbackup/1558231201.log
    That's exactly what appears to have happened.


    Does that occur frequently even with incremental backups enabled?

    Code:
    BACKUPTYPE: incremental
    
    Unless there was a lot of data added recently to the account I would be concerned they were taking so long to complete.
     
    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