Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    174

    Question cpbackup - no backups - thinks backups are up to date

    Hi,

    I noticed on one of my servers that the cpbackup process didn't fire off it's usual completion email...

    When I looked at the log file in

    /usr/local/cpanel/logs/cpbackup/*.log

    All it said was:

    [cpbackup] Started at Thu Oct 28 01:00:01 2010
    [cpbackup] Daily Backup is up to date.
    [cpbackup] Completed at Thu Oct 28 01:00:01 2010

    The last backup to run was 24hrs earlier. This is a shared hosting server so plenty of changes to user accounts requiring backup! Any ideas why cpbackup would do this?

    I just ran /scripts/cpbackup from shell and it did the same again, with the same entries in a new log file.

    Help!

  2. #2
    Member
    Join Date
    Nov 2008
    Posts
    174

    Smile

    Found the answer... apparently cpbackup checks the date/time of the backups directory - in this case /backup/cpbackup/daily

    If the access date is the same as the currently run backup then it will skip.

    This happened because I had removed some stake backups yesterday, and in doing so updated the directories access times.

    touch -d 00:00 /backup/cpbackups/daily

    and then re-ran /scripts/cpbackup and it ran fine.

  3. #3
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default This is correct

    As you observed, cpbackup does check the timestamps on files and directories when deciding whether to back them up or not. If the timestamps are newer than the designated interval (daily, weekly, monthly), then the files and/or directories will not be backed up.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  4. #4
    Member
    Join Date
    Jan 2010
    Posts
    16

    Default Re: cpbackup - no backups - thinks backups are up to date

    we run backups on sunday and is retained on the weekly/ directory. Is there any way to run cpbackup cron (set via cpanel - backup option ) even if the time stamp is less than 6 days on weekly/ ?

    This is because techs might work on the files in weekly/ causing the dates to get updated.

  5. #5
    Member Indianets's Avatar
    Join Date
    Jun 2008
    Posts
    54
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: cpbackup - no backups - thinks backups are up to date

    Quote Originally Posted by tuxer View Post
    we run backups on sunday and is retained on the weekly/ directory. Is there any way to run cpbackup cron (set via cpanel - backup option ) even if the time stamp is less than 6 days on weekly/ ?

    This is because techs might work on the files in weekly/ causing the dates to get updated.
    Simple ==> Change it to Daily and tick 'Sunday' only

    Complex ==> Add a cron just before the cpbackup cron to change the date time of weekly dir.

    - Vijay
    Last edited by Indianets; 01-14-2011 at 08:02 AM.

Similar Threads & Tags
Similar threads

  1. Use cpbackup for backups every 6 hours
    By dawa in forum Data Protection
    Replies: 5
    Last Post: 12-09-2009, 12:32 PM
  2. need to force backups (/scripts/cpbackup)
    By PPNSteve in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 03-08-2006, 03:19 PM
  3. CPbackup failing on FTP backups
    By tmunk in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-08-2005, 03:37 PM
  4. Weekly Backups NOT up to date
    By GOT in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-19-2004, 07:58 AM
  5. Backups ./CPBACKUP
    By vinc_dc43 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-30-2003, 10:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube