Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member Sergiu Tot's Avatar
    Join Date
    Jul 2007
    Location
    Cluj, Romania
    Posts
    62
    cPanel/Enkompass Access Level

    Root Administrator

    Default Weekly and mothly backups does not work

    Hello !

    It seems that the weekly and monthly backups do not work, even if they are activated in WHM. Does anyone have an and ideea what could be the cause ? Is it possible to be the OS (FreeBSD 6.2) ?

  2. #2
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,082

    Default

    Quote Originally Posted by Sergiu Tot View Post
    Hello !

    It seems that the weekly and monthly backups do not work, even if they are activated in WHM. Does anyone have an and ideea what could be the cause ? Is it possible to be the OS (FreeBSD 6.2) ?
    None of our freebsd 6.2 boxes work with the weekly and monthly settings but our Centos boxes are fine. We do our own kind of backups on the freebsd machines so we can live with the cpanel daily backups, but I am not sure why the weekly/monthly does not work.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  3. #3
    Member Sergiu Tot's Avatar
    Join Date
    Jul 2007
    Location
    Cluj, Romania
    Posts
    62
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The problem is (hopefuly) solved. I opened a ticket it seems that they know about it, only that the issue is fixed only on EDGE. The one who answered me was kind enough to fix it for me without upgrading cPanel to EDGE.

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

    Root Administrator

    Default

    The fix is rather straight foward. When executed via cron, if no PATH is setup by the system admin, or script writer, then a default PATH is used, which on FreeBSD is:

    Code:
    /bin:/usr/bin
    cpbackup was, for quite a while, simply calling the system tools, such as rsync, without specifying the full path to the binary. On FreeBSD, these are often in /usr/local/bin.

    The simple fix is to add /usr/local/bin to the $ENV{'PATH'} statement near the top of the script, like:

    Code:
    $ENV{'PATH'} .= ":/sbin:/usr/local/bin";

    The fixed version that is in EDGE doesn't do that, rather it looks up the actual path to the binary and uses the full path when calling it. There are also a number of other fixes in the EDGE version which make it non-portable to non-EDGE setups.

    Due to the path issues, the script works fine when called manually, but would never perform the rsync to weekly and monthly when called via cron.

    By the way, please feel free to open support tickets specific to FreeBSD as we are striving to improve our support of that platform. Our primary target platform is Linux, which uses SysV semantics and doesn't always translate well to a BSD platform.

  5. #5
    Member
    Join Date
    Jan 2008
    Posts
    27

    Default

    I am glad to see this finally fixed. I had been hunting for the solution to this problem for years without any success. Hopefully this will fix the backup issues on FreeBSD once and for all.

Similar Threads & Tags
Similar threads

  1. Weekly Backups
    By GaryT in forum Data Protection
    Replies: 4
    Last Post: 06-09-2010, 01:01 PM
  2. No weekly or monthly backups!
    By dario2 in forum Data Protection
    Replies: 1
    Last Post: 04-06-2010, 06:51 PM
  3. Weekly backups worked ONLY for 1 week
    By alex_funky_dj in forum Data Protection
    Replies: 2
    Last Post: 07-27-2009, 12:15 PM
  4. Weekly Backups NOT up to date
    By GOT in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-19-2004, 08:58 AM
  5. Backups created with users ID, also Weekly Only backups
    By tkoweb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-10-2004, 09:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube