Linux bulk download FTP server files

Source: Internet
Author: User

Because an Oracle test environment is being built within Vmwarem, the Oracle source installation files are copied from the host. There are many methods, this time want to use 3cdaemon Host (Windows) to do the TFTP server side, Linux as a client download implementation. It's not that easy.

1. Log in with FTP, found that get can only download a single file, mget can download multiple files, but not download the directory! Can't download a few G-size n subdirectory files ah.

2.wget-r-nh--ftp-user=username--ftp-password=password

such as: Wget-r-nh ftp://192.168.1.1:21/database/*--ftp-user=root--ftp-password=123456

Thought can, results of a check, only downloaded more than 100 m, more than 100 files, and the source file has 1777 files, 2.47g!

I don't know what the problem is!

3. The Internet has an expert to point out another way to download: with LFTP!!!

Then hurriedly installs the use.

[Email protected] packages]# RPM-IVH lftp-4.0.9-1.el6.x86_64.rpm

Warning:lftp-4.0.9-1.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey

Preparing ... ########################################### [100%]

1:lftp ########################################### [100%]

[Email protected] tools]# lftp ftp://root:[email protected]

lftp [Email protected]:~> dir

DRWXRWXRWX 1 Owner group 0 May 02 21:52.

DRWXRWXRWX 1 Owner group 0 May 02 21:52..

-RWXRWXRWX 1 Owner group 193328 may 21:52 compat-libstdc++-33-3.2.3-69.el6.i686.rpm

-RWXRWXRWX 1 Owner group 187476 may 21:52 compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm

DRWXRWXRWX 1 Owner group 0 APR 23:25 Database

DRWXRWXRWX 1 Owner group 0 may 21:53 Dbatools

lftp [email protected]:/> Mirror Database

total:829 directories, 1777 files, 0 symlinks

new:1777 files, 0 symlinks

2656496474 bytes transferred in 641 seconds (3.95m/s)

Finally succeeded!!!

Note: 1. Go to the directory location where you want to place the file before using it. This ensures that you are downloading to the specified directory.

2. Do not use anonymous direct login: Lftp ftp://192.168.1.1 Otherwise you will not find the server-side directory you set up. It's some other messy catalogue.

Linux bulk download FTP server files

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.