Batch download of files on remote FTP server with wget Tool

Source: Internet
Author: User
Tags remote ftp server

There are two methods:

1)

Wget -- FTP-user = username -- FTP-Password = password-m-NH ftp://xxx.xxx.xxx.xxx/xxx/xxx/file name

Wget -- FTP-user = username -- FTP-Password = password-r-m-NH ftp://xxx.xxx.xxx.xxx/xxx/xxx /*

The above is the command, and the FTP user name and password parameters are not explained;

-R (optional) indicates recursive download. this parameter is required if the entire directory is directly downloaded;

-M indicates the image, not explained;

-Mh indicates that the heap level directories are not generated and are directly displayed from the current directory. It is a very good parameter;

The FTP address is followed by the slash (*) indicating to download all the files in the directory. If only one file is used, enter the file name directly.

2)

Wget ftp: // username: password@xxx.xxx.xxx.xxx: 21 (Port Number)/filename

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.