Assistance with FTP from centos to W2K3 machine

Issues related to software problems.

Assistance with FTP from centos to W2K3 machine

Postby RodPerez_GTA » 2012/02/21 00:49:38

Hello all,
I am new to this forum and this is my first post. I need some assistance on uploading a *.gz file via ftp to a W2K3 machine. Here are the info:

-Currently using CentOS 5.5 Final
-W2K3 machine set to allow anonymous log on via FTP

Here is the script

#!/bin/sh
#MySQL Backup Script
#Full Backup

### FTP server Setup ###
FTPD="some_directory"
FTPU="anonymous"
FTPP="some_email"
FTPS="some_IP"

# delete any existing backups
rm -f /some_location/db*.gz

#make a new backup file
mysqldump --user=some_username--password=some_password --all-databases | gzip > /some_location/db-`date +%Y-%m-%d`.gz

# local directory to pickup *.gz file
FILE="/some_location/"

# login to remote server
cd $FILE
ftp -n -i $FTPS <user $FTPU $FTPP
cd $FTPD
mput *.gz
quit

EOF
######

I would get the following error:
'AUTH GSSAPI': command not understood
'AUTH KERBEROS_V4': command not understood
KERBEROS_V4 rejected as an authentication type

Here is the log from the W2K3 box:
USER anonymous 331 0
PASS some_email 230 0
CWD /some_location 250 0
created /some_location/db-2012-02-21.gz 226 0
QUIT - 226 0

Assistance with this issue would be greatly appreciated.

Thanks,
Rod P.
RodPerez_GTA
 
Posts: 3
Joined: 2012/02/20 23:43:16

Assistance with FTP from centos to W2K3 machine

Postby pschaff » 2012/02/21 15:34:37

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

RodPerez_GTA wrote:
...
CWD /some_location 250 0
created /some_location/db-2012-02-21.gz 226 0

Looks like it worked. What's the problem? The messages can be safely ignored as long as the login ultimately succeeded.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Assistance with FTP from centos to W2K3 machine

Postby RodPerez_GTA » 2012/02/21 23:25:48

Forgot to mention that the *.gz file is corrupt when i open it from the file server. The data is incomplete. I checked the original *.gz on the centos box and there is more data than what is in the w2k3 box.

I found a workaround to it and just installed winSCP in the w2k3 box and automated the process. But if anyone has ever had this issue and resolved it, can you post your resolution.

Thanks
RodPerez_GTA
 
Posts: 3
Joined: 2012/02/20 23:43:16

Re: Assistance with FTP from centos to W2K3 machine

Postby TrevorH » 2012/02/22 01:34:55

Try a different ftp client? lftp might work. Or use smbclient

Code: Select all
/usr/bin/smbclient -U username //ip.add.re.ss/Directory password -c "put $NOW.csv.gz"
User avatar
TrevorH
Forum Moderator
 
Posts: 9081
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Assistance with FTP from centos to W2K3 machine

Postby RodPerez_GTA » 2012/02/22 02:34:29

thanks i will give it a try.
RodPerez_GTA
 
Posts: 3
Joined: 2012/02/20 23:43:16


Return to CentOS 5 - Software Support

Who is online

Users browsing this forum: No registered users and 2 guests