Backup Script und NCFTP Probleme

  • Thread starter Thread starter MrFreeze
  • Start date Start date
M

MrFreeze

Guest
Hallo musste meinen BackupServer wechseln und seit dem geht mein Script nimmer. Bekomme immer die Meldung:

"Falling back to PORT instead of PASV mode."

Was nun? :confused:



Verbindung so:
ncftp -u"$FTPU" -p"$FTPP" $FTPS<<EOF
 
Last edited by a moderator:
Für ncftp die Einstellungen ändern.
Wie rufst du dein ncftp auf?

Meist sind die in $HOME/.ncftp/prefs oder /etc/ncftp.prefs_v3.
Dort ein
passive=no
eintragen.

Oder brauchst du doch passive transfer mode?
 
Last edited by a moderator:
Habe es geändert damit habe ich nicht mehr die Fehlermeldung nun aber dafür ne andere hier der LOG von ncFTP


SESSION STARTED at: 2010-11-22 17:52:24 CET +0100
Program Version: NcFTP 3.2.1/349 Jul 29 2007, 09:55 AM
Library Version: LibNcFTP 3.2.1 (August 13, 2007)
Process ID: 21606
Platform: linux-x86-glibc2.5
Hostname: serverfarm.com (rc=2)
Terminal: vt100
17:52:24 Fw: firewall.net Type: 0 User: root Pass: ******** Port: 21
17:52:24 FwExceptions: .net,localhost,localdomain
17:52:24 Resolving serverfarm.com...
17:52:24 Connecting to 84.13.100.128...
17:52:24 LibNcFTP 3.2.1 (August 13, 2007) compiled for linux-x86-glibc2.5
17:52:24 Uname: Linux|serverfarm.com|2.6.18-028stab070.7|#1 SMP Fri Oct 1 13:53:00 MSD 2010|i686
17:52:24 Glibc: 2.5 (stable)
17:52:25 Logging in...
17:52:25 220: FTP on serverfarm.com ready
17:52:25 Connected to 84.13.100.128.
17:52:25 Cmd: USER us985741D
17:52:25 331: Password required for us985741D
17:52:25 Cmd: PASS xxxxxxxx
17:52:25 Logging in...
17:52:25 230: User us985741D logged in
17:52:25 Cmd: PWD
17:52:25 257: "/" is the current directory
17:52:25 Logged in to 84.13.100.128 as us985741D.
17:52:25 Cmd: FEAT
17:52:25 211: Features:
17:52:25 MDTM
17:52:25 MFMT
17:52:25 TVFS
17:52:25 AUTH TLS
17:52:25 MFF modify;UNIX.group;UNIX.mode;
17:52:25 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
17:52:25 PBSZ
17:52:25 PROT
17:52:25 REST STREAM
17:52:25 SIZE
17:52:25 End
17:52:25 Cmd: HELP SITE
17:52:25 214: HELP
17:52:25 CHGRP
17:52:25 CHMOD
17:52:25 Logged in to serverfarm.com.
17:52:25 Cmd: CLNT NcFTP 3.2.1 linux-x86-glibc2.5
17:52:25 500: CLNT not understood
17:52:25 > mkdir /
17:52:25 Cmd: PWD
17:52:25 257: "/" is the current directory
17:52:25 Cmd: CWD /
17:52:25 250: CWD command successful
17:52:25 Cmd: CWD /
17:52:26 250: CWD command successful
17:52:26 > mkdir //
17:52:26 Cmd: PWD
17:52:26 257: "/" is the current directory
17:52:26 Cmd: CWD //
17:52:26 250: CWD command successful
17:52:26 Cmd: CWD /
17:52:26 250: CWD command successful
17:52:26 > cd /
17:52:26 Cmd: CWD /
17:52:26 250: CWD command successful
17:52:26 > lcd
17:52:26 > mput /var/myscripts/*.tgz
17:52:26 Lglob [/var/myscripts/20101121174926.tgz]
17:52:26 Lglob [/var/myscripts/20101121175141.tgz]
17:52:26 Cmd: TYPE I
17:52:26 200: Type set to I
17:52:26 Cmd: OPTS MLST type;size;modify;UNIX.mode;perm;UNIX.owner;UNIX.group;
17:52:26 200: OPTS MLST type;size;modify;UNIX.mode;perm;UNIX.owner;UNIX.group;
17:52:26 Cmd: MLST 20101121174926.tgz
17:52:26 250: Start of list for 20101121174926.tgz
17:52:26 modify=20101122170324;perm=adfrw;size=0;type=file;UNIX.group=1153;UNIX.mode=0644;UNIX.owner=1346; 20101121174926.tgz
17:52:26 End of list
17:52:26 Cmd: PORT 72,44,91,27,179,202
17:52:26 200: PORT command successful
17:52:26 Cmd: STOR 20101121174926.tgz
17:52:56 Could not read reply from control connection -- timed out.
17:52:56 > quit
SESSION ENDED at: Mon Nov 22 17:52:56 2010
 
Das Timeout ist seltsam.
Sicher, dass da nicht irgendeine Firewall auf Quell- bzw. Zielrechner dazwischen funkt?
 
Back
Top