Strange backup error

guidob

Verified User
Joined
Oct 11, 2006
Messages
16
Hi,

When using ftp backup i get the following error:

Code:
User admin has been backed up.
/home/tmp/admin/admin.root.admin.tar.gz.cfg doesn't contain anything useful.
/home/tmp/admin/admin.root.admin.tar.gz.cfg should look something like this:
# Comment lines starting with a hash character
# and blank lines are ignored.

host Bozo.probe.net
user gleason
pass mypasswd

Any suggestions?
 
Weird

I am now getting exactly the same in my remote backup log reports!
Is this an hacker?
 
Hello,

It's not a hacker, it's done by the script:

/usr/local/directadmin/scripts/ftp_upload.php

by this bit of code, which creates the cfg, calls ncftpput, then deletes the cfg. This is done to preven the user/pass from being seen in a ps output.
Code:
CFG=${ftp_local_file}.cfg
/bin/rm -f $CFG
/bin/touch $CFG
/bin/chmod 600 $CFG
/bin/echo "host $ftp_ip" >> $CFG
/bin/echo "user $ftp_username" >> $CFG
/bin/echo "pass $ftp_password" >> $CFG

$FTPPUT -f $CFG -V -t 25 -m "$ftp_path" "$ftp_local_file" 2>&1
RET=$?

/bin/rm -f $CFG
If you want to see what *is* in the cfg, you can add a line just before the "$FTPPUT -f ... " line.
Code:
echo $CFG 2>&1
and it will dump that file to the backup log so you can see what actually got added.

John
 
Hi there

I am seeing this error now too now and again and it is stopping backups from happening!

Is there a fix?

Kind Regards

Jay
 
In addition, if the backups do work they can not be untar'd

Get the error;

tar: Child died with signal 11
tar: Error exit delayed from previous errors


Jay
 
Back
Top