You are not logged in.

1

Friday, April 23rd 2010, 7:39pm

lftp Problem im Fastloadscript

Hallo

Im wiki beschreibt ihr ja wie man mit Hilfe von lftp Dateien auf nen FTP Server syncronisieren kann.

Wenn ich folgenden Befehl in mein script einbaue"lftp -f mappool_sync.txt -u ftp_user:ftp_password ftp_host"
Kommt ne Fehlermeldung "mirror: not connected"

Und ja ich haben die richtigen FTP Daten benutzt.

Wenn ich lftp eingebe und dann mit "user ftp_user" und dem Passwort dazu mich auf dem FTP einlogge und den Befehl manuell eingebe also "lftp -f mappool_sync.txt" dann funktioniert alles perfekt.

Also was mache ich falsch ^^

Gruß chris
<!-- m --><a class="postlink" href="http://www.clan-tbm.de">http://www.clan-tbm.de</a><!-- m -->

DeaD_EyE

Administrator

Posts: 3,980

Location: Hagen

Occupation: Mechatroniker (didaktische Systeme)

wcf.user.option.userOption53: Nein

  • Send private message

2

Saturday, April 24th 2010, 2:28pm

Re: lftp Problem im Fastloadscript

big-lol

Anscheinend hab ich selbst den Syntax noch nicht ganz verstanden. Ich meine mal, dass das so aber funktioniert hat.
Ich habs im Wiki jetzt geändert.

Die Lösung ist eigentlich ganz einfach:

Source code

1
2
#lftp sagen, dass mappool_sync.txt ausgeführt werden soll
lftp -f mappool_sync.txt


mappool_sync.txt

#lftp sagen, auf welchen Server er connecten soll
lftp -u ftp_user:ftp_password ftp_host
#eigentliche Aufgaben beginnen
mirror -eR /home/gameserver/server1/cstrike/maps/ /httpdocs/cstrike/maps
mirror -eR /home/gameserver/server1/cstrike/materials/ /httpdocs/cstrike/materials
mirror -eR /home/gameserver/server1/cstrike/models/ /httpdocs/cstrike/models
mirror -eR /home/gameserver/server1/cstrike/sound/ /httpdocs/cstrike/sound
#lftp verlassen
quit


Hier meine Lftp-Version, die ich nutze.

lftp-Versionsausgabe

lftp --version
LFTP | Version 3.7.3 | Copyright (c) 1996-2008 Alexander V. Lukyanov

LFTP is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for LFTP. See COPYING for details.

Send bug reports and questions to <lftp@uniyar.ac.ru>.

Libraries used: Readline 5.2, Expat 2.0.1, GnuTLS 2.4.2, zlib 1.2.3.3


Ich hoffe mal, dass so jetzt alles richtig ist.

3

Saturday, April 24th 2010, 3:25pm

Re: lftp Problem im Fastloadscript

Hallo

So ähnlich hatte ich es schon probiert, aber test das gleich nochmal und geb dann bescheid.


Gruß chris


***edit***

Funktioniert :)

Besten Dank für die schnelle Hilfe
<!-- m --><a class="postlink" href="http://www.clan-tbm.de">http://www.clan-tbm.de</a><!-- m -->