找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2879|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows5 I+ h( d. l4 O

& Q. A% L, j5 IEasily mirror http/ftp sites to your local hard drive( S- V& f- g: A

& F' c, u5 |4 a4 WI searched for some time for a utility that would let me mirror a remote http site to my hard drive with Windows 95. While there are several utilities to do this, I couldn't find any that I liked. Specifically, I wanted to be able to do it from the command line so that I could call it from a script, and I wanted duplicate files on my local drive for subsequent processing by another application. When I found wget for the unix environment, I decided to port it to Windows.0 L9 G0 u) H& s/ B
  ~$ s" n6 J1 F; p% L$ o5 Y
The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.  W$ k/ V3 }. s$ c+ {+ s1 _

4 B. e4 P1 e, k8 z; J7 TThe most recent version I compiled is wgetwin-1_5_3_1-binary.zip. Version 1.5.3 of wget compiles cleanly for windows. To compile it yourself, you will also need to get wget-1.5.3.tar.gz. This 1.5.3.1 includes some additional changes to allow downloading of URLs that have '?' or '*' in their name. This compile was created on July 1, 1999.
0 k2 ~$ T0 B6 }* z: X; }  f6 p, X% T% ~4 m' i/ }
WGETRC file...5 i+ \' Q* b( K  Y1 `! X5 k
To set up a .wgetrc file under windows, you have two choices8 ^- S% c* U1 ]; u, h$ Q
9 a' U$ b) c. Z7 T! `1 E
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
  Z3 _' N& R# q3 O( TSet an environment variable called "HOME" (if it doesn't already exist) pointing to a directory. Put your wgetrc file in this directory, and call it 'wgetrc'
- W9 k; v" Y7 \+ i' f; j% o( IHeiko Herold has been diligently providing updated wget binaries for the windows platform as changes to the wget source archive are available. You can almost surely find a newer version of wget than I have available here. See http://www.geocities.com/heiko_herold/.+ ]8 Q* V; G2 N0 x, _

% A; `7 H" K# a4 R; m! nDarko Budor did some work porting 1.4.5 to windows. His page (including a 1.4.5 binary) is at http://diana.zesoi.fer.hr/~dbudor/wget/.  g9 r% E' V) @) s( b

# a% K' i$ v8 a% KLachlan Cranswick has created a compilation of many wget pages, and some good tips for getting wget working well at http://www.dl.ac.uk/CCP/CCP14/mirror/wget.htm . He actually mirrors all the sites there as well, and he's on the European side of the atlantic.. Q6 R7 a1 M# d% n1 P) @

1 C! ~, E( W% `Please don't email me for wget support. Although I've compiled it, I'm only a novice user of it. There is a wget mailing list. It is archived at http://fly.cc.fer.hr/archive/wget. To subscribe to it, send email to [email protected] with the word subscribe as the subject." z6 J* l" v3 O$ p/ Z. w

+ K: Q- B# f& Z: [5 |1 B* K* p0 C4 gThis page has been accessed1 P8 o6 ~0 r+ V7 l/ t  j% o
times since May 12, 1997.
0 y( r& V$ S3 `7 v% P  P1 e( L, [7 W% @1 i$ U1 J
Questions / comments / changes? Please contact me at [email protected]: s$ B9 c  y* _0 c; o+ t, H! C4 j* H5 R
7 b0 K+ W) K! X3 r% Q8 Q3 O( I3 O
* \: A/ V$ R3 z+ Q; T

3 I6 L2 Z6 m8 o# S$ P4 [哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|赛格电脑 华强北 电脑城 南山赛格 龙岗电子世界 龙华电脑城 沙井电脑城 松岗电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2025-9-2 07:22 , Processed in 0.089992 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表