proxy´úÀí   softÈí¼þ   IT Òµ½çÌØ¿ì   norton ŵ¶Ù²¡¶¾¿â   ´úÀíÁÐ±í   search FTPËÑË÷   whois IPµØÀíλÖà  blog ×·ÇóÍêÃÀ  
moneyÀí²Æ   lifeÉú»î   RSS¾ÛºÏÃÅ»§   firefox WEBä¯ÀÀÆ÷   Ãâ·ÑÓòÃû   typeset ¼Ù¹ÅÎÄ   AntiVirus ·´²¡¶¾   ipcn Õ¾µãµ¼º½  

« 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

°æÈ¨ÉùÃ÷£º¿ÉÒÔÈÎÒâ×ªÔØ£¬×ªÔØÊ±ÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂԭʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷¡£
http://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 

±¾blog WWW

Posted by windtear at April 27, 2004 10:27 PM

Trackback Pings

TrackBack URL for this entry:
http://cgi.windtear.net/cgi-bin/wt-tb.cgi/280

Listed below are links to weblogs that reference lftp - my fav & some mirror method - ncftp wget rsync:

» ÌáһϠrsync for windows (Ç¿´óµÄͬ²½±¸·Ý¹¤¾ß) from windtear ×·ÇóÍêÃÀ
http://windtear.net/archives/2006/04/11/000958.html ÌáһϠrsync for windows (Ç¿´óµÄͬ²½±¸·Ý¹¤¾ß) rsync ÊÇÇ¿´óµÄͬ²½±¸·ÝµÄºÃ¹¤¾ß linux windows ¾ù¿ÉʹÓà ±¾ÆªblogÌáÒ»ÏÂwindows°æ±¾ Ç°ÃæÔøÐ´¹ýrsyncµÄblog: rsync µ¥Ä£¿éÈÏÖ¤ÅäÖà /etc/rsyncd.conf rsync ͬ²½Ê¹Ó... [Read More]

Tracked on April 12, 2006 12:12 AM

Comments

Ò»°ãÓÃ -auvP --progress
-a = -rlptgoD

¿ÉÒÔ×ÃÇ鿼ÂǼÓÉÏ z
-auvPz --progress

¿ÉÒÔÉèÖÃ --exclude ignoredir/
CVSIGNORE

RSYNC_PASSWORD='yoursecret'
--password-file
--bwlimit=KBPS

--ignore-existing

Posted by: windtear at November 28, 2005 4:39 PM

Post a comment

Remember Me?



¡¾ÎÒ°®ÍøÂç¡¿
2007-12-31 23:51 2007Äê¶È ipcn.org/ipchina.org ×ܽᱨ¸æ
2007-12-31 00:31 vmware gsx server service
2007-12-31 00:15 squid ¶Ô 404 302 »º´æµÄÏà¹ØÎÊÌâ
2007-12-30 14:24 Éý¼¶µ½ MovableType 3.3x ²¢ÐÞ¸Ä entry_basename ¼æÈÝÐÔ
2007-12-30 13:52 [php] realip judge Ç°Ãæ²¹0µÄip¸ñʽÌÞ³ý
2007-12-14 16:34 rm -rf * ϵͳ¹ÜÀíÔ±ÒªÅŲéµÄ¶¨Ê±Õ¨µ¯
2007-12-13 19:03 ɽÎ÷µÄ¿í´øÔËÓªÉÌÌ«¹ý·ÖÁË Ë½×ԴܸÄdns½âÎö
2007-12-13 16:35 F5 MIB ÔÙѧϰ ΨһÐÔ±ê¼ÇÓõØÖ·µÄСbug
2007-12-11 22:15 perl ÓÃSpreadsheet::WriteExcelдÁ˸ö´¦Àí/¶ÁдexcelµÄС³ÌÐò
2007-12-11 13:39 perl ±äÁ¿×ªÒåµÄÎÊÌâ

±¾Õ¾Ê¹ÓÃÖеÄÈκÎÎÊÌâ,ÇëÓë windtear SPAM windtear SPAM net ÁªÏµ
Copyright© 1999-2008 Windtear. All rights reserved.
¾©ICP±¸05050670ºÅ