Linux wget Download the entire FTP directory (including subdirectories)--Reproduced

Source: Internet
Author: User

[Plain]View PlainCopy
    1. Wget-nh-m--ftp-user=your_username--ftp-password=your_password ftp://your_ftp_host/*

Explain:
-NH: Do not create a directory named after the host name.
–cut-dirs: Want to remove the original directory layer, starting from the root directory to calculate. If you want to completely preserve the original directory structure of FTP, do not add this parameter.
-m: Download all subdirectories and keep the directory structure.
–FTP-USER:FTP User Name
–ftp-password:ftp Password
FTP://*.*.*.*/*:FTP host address. Finally, you can download the specified directory with the directory name.

Example:

[Plain]View PlainCopy 
    1. Wget-nh-m--ftp-user=tom--ftp-password=123456 ftp://192.168.19.1/tom/

Of course, if the number of files in the FTP directory is particularly large, the most efficient way is to first compress the package before downloading. There is no way, just use the above method to download it automatically.

Linux wget Download the entire FTP directory (including subdirectories)--Reproduced

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.