Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Bash to download specific files and save in two folders

$
0
0
I am trying to download all files from a user authentication, password protected https site, with a particular extension (.bam). The files are ~20GB each and I am not sure if the below is the best way to do it. I am also not sure how to direct the downloaded files to a folder as well as external drive. Thank you :).

Code:

while true
do
      printf "Files down loading please wait "
      wget --http-user cmccabe --http -passwd xxxx*** -r -A "*.bam" -q --show-progress --directory-prefix=C:\Users\cmccabe\Desktop\Example --directory-prefix=E:\WD\files https://test.xxxx.com/xxxxx.aspx
      printf "Files downloaded "

done


Viewing all articles
Browse latest Browse all 16232

Trending Articles