Running empty script in cpanel ?

Grzeslaw

Well-Known Member
Jul 11, 2006
76
1
158
Poland
Hi

I have just looked, into crontabs on my servers, and I saw that, there is an entry with the following content:
Code:
0 3 * * *       /scripts/cpbackup
But when I looked info the script, I don't saw anythink ?
It;s empty:
Code:
-rwxr-xr-x  1 root root 0 Sep  6 01:00 /scripts/cpbackup*
What does it mean, and what is it ?

Regards.
 

DeepakW

Active Member
Nov 13, 2005
33
0
156
Hello,

The script cpbackup runs backups on the server, if it is empty you can confirm it by checking contains of the script

# cat /scripts/cpbackup


If it is empty you can copy it through different server having same cPanel version and confirm the permissions as follows :

-rwxr-xr-x 1 root root 14252 Sep 4 00:10 /scripts/cpbackup*
 

Grzeslaw

Well-Known Member
Jul 11, 2006
76
1
158
Poland
heh i forgot, that my backup scripts rewrite this file ;)

thnks for info.