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:
|
Quellcode
|
1
2
|
#lftp sagen, dass mappool_sync.txt ausgeführt werden soll
lftp -f 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 --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.