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.

new server will not do DAILY backup.

Discussion in 'Data Protection' started by jols, Oct 4, 2010.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    The new server insists on archiving backups like this:

    drwx--x--x 304 root root 12288 Oct 1 10:14 Friday_20101001/
    drwx--x--x 311 root root 12288 Oct 4 09:59 Monday_20101004/
    drwx--x--x 309 root root 12288 Oct 3 09:29 Sunday_20101003/



    And this of course fills up our backup drive regularly.

    We've got the backup config (in WHM) set exactly the same way as our other servers where we see only this on in the cpbackup directory:

    drwx--x--x 433 root root 12288 Oct 4 01:00 daily/


    What's the trick here? We need to only get the daily backup going where everyday is not stored as separate archive.
     
  2. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    There will be some custom hook script for backup rotations.
     
  3. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Thanks for your response, but I have no idea what you are referring to.
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    /etc/cpbackup.conf

    Can you please post the contents of your /etc/cpbackup.conf file? If any FTP log-in information is in the file, please redact it for security.
     
  5. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Thanks for your assistance.

    Here is the output of that file for the server in question:

    BACKUP2 yes
    BACKUPACCTS yes
    BACKUPCHECK yes
    BACKUPDAYS 0,1,2,3,4,5,6
    BACKUPDIR /backup
    BACKUPENABLE yes
    BACKUPFILES no
    BACKUPFTPDIR
    BACKUPFTPHOST
    BACKUPFTPPASSIVE no
    BACKUPFTPUSER
    BACKUPINC yes
    BACKUPINT daily
    BACKUPLOGS no
    BACKUPMOUNT yes
    BACKUPRETDAILY 1
    BACKUPRETMONTHLY 0
    BACKUPRETWEEKLY 0
    BACKUPTYPE normal
    COMPRESSACCTS no
    DIEIFNOTMOUNTED yes
    GZIPRSYNCOPTS --rsyncable
    MYSQLBACKUP accounts

    ----------------

    Just for comparison, here is the output of the same file from a different cPanel server that has no problem in this regard:

    BACKUP2 yes
    BACKUPACCTS yes
    BACKUPCHECK yes
    BACKUPDAYS 0,1,2,3,4,5,6
    BACKUPDIR /backup
    BACKUPENABLE yes
    BACKUPFILES no
    BACKUPFTPDIR
    BACKUPFTPHOST
    BACKUPFTPPASSIVE no
    BACKUPFTPUSER
    BACKUPINC yes
    BACKUPINT daily
    BACKUPLOGS no
    BACKUPMOUNT yes
    BACKUPRETDAILY 1
    BACKUPRETMONTHLY 0
    BACKUPRETWEEKLY 0
    BACKUPTYPE normal
    COMPRESSACCTS no
    DIEIFNOTMOUNTED yes
    GZIPRSYNCOPTS --rsyncable
    MYSQLBACKUP accounts
     
  6. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    On the first server, the one with the issue, the backup drive keeps threatening to fill up, I noticed just today in /cpbackup:

    drwx--x--x 311 root root 12288 Oct 4 09:59 Monday_20101004/
    drwx--x--x 309 root root 12288 Oct 3 09:29 Sunday_20101003/
    drwx--x--x 312 root root 12288 Oct 5 10:25 Tuesday_20101005/
    drwx--x--x 318 root root 12288 Oct 6 10:04 Wednesday_20101006/


    On the second server (comparison example in the post just before this one), as well as all of our other cPanel servers, the /cpbackup directory looks like the following and never threatens to overfill the backup drive:

    drwx--x--x 402 root root 12288 Oct 6 01:00 daily/
     
  7. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    One more observation:

    I did notice the other day, that during the cpbackup run, it does indeed make a /daily directory, but then apparently as a last step it changes the name of the directory to something like Wednesday_20101006/
     
  8. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The only thing that catches my attention is this:

    Code:
    BACKUPINC yes
    which means that you have incremental backups enabled. However, I enabled incremental backups on a test server and started a backup run, and the directory structure you are describing was not created. Backups were stored in directories named for the accounts, with no dates included in the directory or file names.

    At this point, I recommend submitting a ticket so that we may log in and investigate directly, because this appears to be an unusual situation.
     
Loading...

Share This Page