« netfilter/iptables nat PREROUTING REDIRECT 解决邮件服务器绑定锁 |
Main
| squid cache_peer access log analysis crontab demo »
April 27, 2004
lftp - my fav & some mirror method - ncftp wget rsync
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/04/27/000280.html
lftp - my fav & some mirror method - ncftp wget rsync
% rpm -qi lftp Name : lftp Relocations: (not relocateable) Version : 2.4.9 Vendor: Red Hat, Inc. Release : 2 Build Date: Wed 10 Dec 2003 12:47:55 AM CST Install date: Tue 23 Dec 2003 01:43:56 AM CST Build Host: bugs.devel.redhat.com Group : Applications/Internet Source RPM: lftp-2.4.9-2.src.rpm Size : 1734259 License: GPL Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://lftp.yar.ru/ Summary : A sophisticated file transfer program Description : LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job control and uses the readline library for input. It has bookmarks, built-in mirroring, and can transfer several files in parallel. It is designed with reliability in mind.
% lftp -h Usage: lftp [OPTS] <site> `lftp' is the first command executed by lftp after rc files -f <file> execute commands from the file and exit -c <cmd> execute the commands and exit --help print this help and exit --version print lftp version and exit Other options are the same as in `open' command -e <cmd> execute the command just after selecting -u <user>[,<pass>] use the user/password for authentication -p <port> use the port for connection <site> host name, URL or bookmark name
% more /etc/lftp.conf
## some useful aliases alias dir ls alias less more alias zless zmore alias bzless bzmore alias l "ls -l" alias lm "ls -l | more" alias lt "ls -ltr" alias ltm "ls -ltr | more" alias d3 "debug 3" set net:reconnect-interval-base 1 set net:reconnect-interval-max 1 set net:reconnect-interval-multiplier 1 set net:max-retries 4
## make prompt look better #set prompt "lftp \u\@\h:\w> " set prompt "ftp://\u\@\h\w > "
% man lftp NAME lftp - Sophisticated file transfer program
SYNTAX lftp [-d] [-e cmd] [-p port] [-u user[,pass]] [site] lftp -f script_file lftp -c commands lftp --version lftp --help
VERSION This man page documents lftp version 2.4.0.
On startup, lftp executes /etc/lftp.conf and then ~/.lftprc and ~/.lftp/rc. You can place aliases and `set' commands there. Some people prefer to see full protocol debug, use `debug' to turn the debug on. Use `debug 3' to see only greeting messages and error messages.
!ls rels debug 3 queue wait 0 queue get filename.ext queue -d 3 mirror dir/ mirror -R dir_to_be_uploaded get filename.ext -o newfilename.newext get -c filename.exe open ftp://user:pass@dns.server.ip:port/ user username jobs w ctrl z get filename.ext & pget -n bigfilename.ext mirror -c --parallel=n dir/ bookmark add bmname bookmark edit du -sh mget -c ftp://fxpsite1/filename.ext ftp://fxpsite2/newfilename.newext
-----> some mirror method 发信人: windtear (风中之珠), 信区: Service 标 题: 镜像的几种方法 发信站: HAPPY (Fri Apr 27 16:46:47 2001)
wget ncftpget 我用这两个多一些
example: wget -q -b -c -m -nr --tries=0 --wait=120 --timeout=120 ftp://166.111.215.36/incoming/_starw_/discovery/
wget -q -b -c -m -nr -nd --tries=0 --wait=120 --timeout=120 ftp://166.111.146.88:21/f:/FTP/Pub/RM/永不瞑目/
ncftpget -b -R -P 1021 ftp.sparrows.dhs.org . /pub/Movie/鉴证实录II
ncftpget -u *** -p *** -b -R 166.111.168.21 . /射雕英雄传/压好的RM/铁血丹心
rsync -r ftp.ns-lab.com::ftp/incoming/_starw_/discovery .
当然 ncftp lftp 运行后 & 或者 Ctrl+z bg 都可以的说
-- ※ 来源:.HAPPY bbs.happynet.org.[FROM: 166.111.168.21]
i like rsync:P rsync -rvutoglpD
|
|
Posted by windtear at April 27, 2004 10:27 PM