I can't run manually s3backup.sh

ruthnis3929

New Member
May 4, 2014
5
0
0
I checked and s3backup.sh is in the /usr/local/cpanel/whostmgr/docroot/cgi/s3backup/s3cfg directory.

When I try to run it it says: command not found.

How can I run it?
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Hi,

What happens if you run this via SSH:

Code:
/usr/local/cpanel/whostmgr/docroot/cgi/s3backup/s3cfg/s3backup.sh --showlog
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Strange. Are you running it as the root user?
 

ruthnis3929

New Member
May 4, 2014
5
0
0
Directly as root. I already installed it in another server and had no problem. Shall I send you privately the password of the server and can you check it?
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Yes please, via the contact form here:

http://www.mfscripts.com/contact.html
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
I've just tried now and I get:

Code:
/usr/local/cpanel/whostmgr/docroot/cgi/s3backup/s3cfg/s3backup.sh: line 37: mail: command not found
The mail issue is because you're missing the mail function on your server. I've added it by running this:

Code:
yum install mailx
Running s3backup.sh now produces this:

Code:
Send options without primary recipient specified.
Editing s3backup.sh and setting this resolves it:

Code:
_EMAIL=nobody@locahost
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Yes it looks ok apart from the backup path not existing as mentioned on email.