Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 300543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:55:25+00:00 2026-05-12T06:55:25+00:00

I want to download only .htm or .html files from my server. I’m trying

  • 0

I want to download only .htm or .html files from my server. I’m trying to use ncftpget and even wget but only with limited success.

with ncftpget I can download the whole tree structure no problem but can’t seem to specify which files I want, it’s either all or nothing.

If I specify the file type like this, it only looks in the top folder:

ncftpget -R -u myuser -p mypass ftp://ftp.myserver.com/public_html/*.htm ./local_folder

If I do this, it downloads the whole site and not just .htm files:

ncftpget -R -u myuser -p mypass ftp://ftp.myserver.com/public_html/ ./local_folder *.htm

Can I use ncftp to do this, or is there another tool I should be using?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:55:26+00:00Added an answer on May 12, 2026 at 6:55 am

    You can do it with wget

    wget -r -np -A "*.htm*" ftp://site/dir
    

    or:

    wget -m -np -A "*.htm*" ftp://user:pass@host/dir
    

    However, as per Types of Files:

    Note that these two options do not affect the downloading of HTML files (as determined by a .htm or .html filename prefix). This behavior may not be desirable for all users, and may be changed for future versions of Wget.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use wget to download files linked from the main page of
I want to download an image from a remote server only if it is
I want to download an image from a remote server only if it is
I am trying to download a file from an ftp site only if it's
i'm trying to use this to download mp3 files Intent downloadIntent = new Intent(Intent.ACTION_VIEW,
I want to download a page and show this in WEBVIEW local, but the
I want to download a file from Internet and InternetReadFile seem a good and
I want to download a file from internet and I imagine this should be
I want to download a labeled version of file from TFS. I tried out
I am trying to use httrack ( http://www.httrack.com/ ) in order to download a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.