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.

postcpbackup script not working

Discussion in 'Data Protection' started by chheda, Jun 8, 2013.

  1. chheda

    chheda Registered

    Joined:
    Sep 1, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I have CENTOS 6.4 x86_64 virtuozzo installed with WHM 11.36.1 (build 8).

    I am trying to rotate my cPanel/WHM backups using the script from https://github.com/tripflex/postcpbackup. However, when the script executes nothing happens.

    a. I have set the correct permissions
    root@cloud [/scripts]# ls -al | grep postcpbackup
    -rwxr-xr-x 1 root root 3625 Jun 8 15:42 postcpbackup*

    b. cpanel backup calls it, i can see it in logs (/usr/local/cpanel/logs/cpbackup).
    [cpbackup] The following backups were already up to date: weekly,monthly
    [cpbackup] Executing user defined post backup script (/usr/local/cpanel/scripts/postcpbackup).
    [cpbackup] Completed at Sat Jun 8 15:45:00 2013

    c. No output shows up when I execute test=echo /scripts/postcpbackup
    root@cloud [/scripts]# test=echo /scripts/postcpbackup
    root@cloud [/scripts]#


    Please help what I am doing wrong.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
  3. chheda

    chheda Registered

    Joined:
    Sep 1, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It sounds like an issue with the individual script because it does not run on it's own. Have you reviewed the changes to the backup system in cPanel version 11.38? The release notes are available at:

    cPanel 11.38 - Improved Backup System

    It's possible these changes negate the need for a third-party script in this case. cPanel version 11.38 was pushed out to the Release tier today, so you may want to update and see if the new features are helpful.

    Thank you.
     
Loading...

Share This Page