Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default WHM --> Configure Backup no longer works properly.

    We only need rolling backups of the server to be put in the /daily directory. But now after this most recent cPanel backup, our (slave) backup drive is always filling up because also the day-to-day directories are also being created, like this:

    daily/
    Tuesday_20091222/
    Wednesday_20091223/

    and so on.

    The day to day directories, e.g. Tuesday_20091222, etc. are being created even though our settings in WHM ---> Configure Backup are exactly the same as before.

    How can we go back to where it was, i.e. when only the daily/ directory was created and the cPanel system just did the incremental backups into this directory, without also creating the day to day directories and thereby filling up our backup drive to 100%???
    Last edited by jols; 12-24-2009 at 04:24 AM.

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Part two:

    Okay, this is strange. We've got two servers where the WHM ---> Configure Backups is configured exactly the same. One is over flowing our backup drive (see the post above) and the other is not, i.e. we only get the daily/ directory in cpbackups on the backup drive as we always have.

    Here's what's also strange:

    Both servers are running the exact same version of cPanel:
    cPanel 11.25.0-R42399 - WHM 11.25.0 - X 3.9
    REDHAT Enterprise 5.4 i686 standard

    But the one that is giving us the unwanted backup copies in the day to day directories has this extra feature at the botton of the backup configuration page:

    Execute Pre/Post Backup Script ---

    What is going on here? Anyone?

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    part three:

    Yup, I just checked all of our servers - Everywhere this option is available on the WHM ---> Backup Configuration page:

    Execute Pre/Post Backup Script ---

    ... we have this problem.

    I hate to make out all these tickets (for each of our servers with this issue) to cpanel.net support. So if anyone knows a fix for this, it would probably be helpful for all. Thanks.

    By the way, if I could find the backup script and the command in the script that is making the daily directories (duplicates/redundant backups of the daily directories) I would just comment it out, but so far I am unable to find where this script is. I've looked at /scripts/cpbackup but I just don't see which line I would need to comment out to make this happen. Help, anyone?
    Last edited by jols; 12-24-2009 at 05:25 AM.

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The option for Pre/Post backup only shows up in the Configure Backup interface if one of the following scripts exists:

    /scripts/precpbackup
    /scripts/postcpbackup

    Look for those scripts on the affected systems. One of them is the likely culprit for the strange directory naming. cpbackup only creates a daily directory.
    Kenneth
    Product Manager
    cPanel, Inc.

  5. #5
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by jols View Post
    I hate to make out all these tickets (for each of our servers with this issue) to cpanel.net support. So if anyone knows a fix for this, it would probably be helpful for all. Thanks.
    Please don't worry about opening tickets as this will actually help make things smoother since tickets can be used to see trends and make problems easier for us to find and ultimately lead to quicker resolutions.
    -Nick
    cPanel Inc.

    Need support? Submit a request here. Complimentary support is available to all license holders regardless of where you purchased your license.
    Need a complimentary support account? Create one here.

  6. #6
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Quote Originally Posted by cpanelkenneth View Post
    The option for Pre/Post backup only shows up in the Configure Backup interface if one of the following scripts exists:

    /scripts/precpbackup
    /scripts/postcpbackup

    Look for those scripts on the affected systems. One of them is the likely culprit for the strange directory naming. cpbackup only creates a daily directory.
    Thanks but there is no such precpbackup script to be found on the affected servers. Perhaps I am not understanding your post correctly.

    CORRECTION - I did however find a postcpbackup script, and shifting this one to /root did indeed make the additional option go away on the WHM backup config page.

    Okay, I think we're on to something here. This is the contents the postcpbackup script:

    #!/bin/sh
    /usr/bin/dowbackup.pl

    And that script contains this toward the top:

    # cPanel backup rotation script
    # v1.2
    #
    # usage: /usr/bin/dowbackup.pl [Monday,Wednesday,Friday]

    my %bconf;
    my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
    my @days = ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
    my $today = $days[$wday];

    Hopefully just removing postcpbackup will correct this issue.

    Hey, thanks for your help!
    Last edited by jols; 12-24-2009 at 08:49 PM.

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by jols View Post
    Thanks but there is no such precpbackup script to be found on the affected servers. Perhaps I am not understanding your post correctly.
    On the affected system, please use the following command (via root SSH access) to verify the status of the optional cpbackup "pre" and "post" files that may be involved:
    Code:
    # stat /scripts/precpbackup /scripts/postcpbackup

  8. #8
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by jols View Post
    Thanks but there is no such precpbackup script to be found on the affected servers. Perhaps I am not understanding your post correctly.

    CORRECTION - I did however find a postcpbackup script, and shifting this one to /root did indeed make the additional option go away on the WHM backup config page.

    Okay, I think we're on to something here. This is the contents the postcpbackup script:

    #!/bin/sh
    /usr/bin/dowbackup.pl

    And that script contains this toward the top:

    # cPanel backup rotation script
    # v1.2
    #
    # usage: /usr/bin/dowbackup.pl [Monday,Wednesday,Friday]

    my %bconf;
    my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
    my @days = ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
    my $today = $days[$wday];

    Hopefully just removing postcpbackup will correct this issue.

    Hey, thanks for your help!
    Thank you for the updated information. I agree that removal of the customization should help to alleviate the issue.

Similar Threads & Tags
Similar threads

  1. Properly configure DNS
    By david_sh in forum Enkompass Discussions
    Replies: 2
    Last Post: 04-20-2011, 01:43 PM
  2. WHM --> Configure Backup no longer works properly.
    By jols in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 12-24-2009, 08:57 PM
  3. Apache Update link in WHM no longer works.
    By jols in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-09-2007, 07:00 AM
  4. Bandwidth Usage in WHM No Longer Works?
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 06-23-2006, 12:43 PM
  5. configure backup - WHM
    By netnameus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-02-2005, 10:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube