postcpbackup script not working

chheda

Registered
Sep 1, 2007
2
0
51
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
[email protected] [/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
[email protected] [/scripts]# test=echo /scripts/postcpbackup
[email protected] [/scripts]#


Please help what I am doing wrong.
 

24x7server

Well-Known Member
Apr 17, 2013
1,907
95
78
India
cPanel Access Level
Root Administrator

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.