How to download directories and subdirectories from an HTTPS server?

Dr. Muniba Faiza
1 Min Read

Previously, we provided a Python script to download data over an FTP server. This article will use the Linux command to download multiple directories and subdirectories from an HTTPS server.

This is a fast way to download thousands of files and/or directories from an HTTPS server. Here we will use the wget command. Type the following command in the terminal:

$ wget -r --no-parent <url>

For example, if you wish to download all protein structures from the HTTPS server of PDB, then you can use the following command:

$ wget -r --no-parent https://files.wwpdb.org/pub/pdb/data/structures/all/

It will create directories with the same name as mentioned on the server and then start downloading all files and will take quite less time.


 

Share This Article
Dr. Muniba is a Bioinformatician based in New Delhi, India. She has completed her PhD in Bioinformatics from South China University of Technology, Guangzhou, China. She has cutting edge knowledge of bioinformatics tools, algorithms, and drug designing. When she is not reading she is found enjoying with the family. Know more about Muniba
Leave a Comment

Leave a Reply