我想从FTP下载一个目录,其中包含一些源代码。 最初,我这样做了:
wget -r ftp://path/to/src
不幸的是,目录本身是SVN签出的结果,所以有很多.svn目录,爬上它们需要更长的时间。 是否可以排除这些.svn目录?
wget -X directory_to_exclude[,other_directory_to_exclude] -r ftp://URL_ftp_server
SERVER |-logs |-etc |-cache |-public_html |-images |-videos ( want to exclude ) |-files |-audio (want to exclude)
wget -X /public_html/videos,/public_html/audio ftp:SERVER/public_html/*
wget --exclude-directories=.svn -r ftp://path/to/src