Cher
Cher

Reputation: 2947

how to download a folder from bash?

I want to download a complete folder from a jenkins project containing many folder

I try with a wget and it works for only one file doing :

wget http://jenkinsmedia:XXXX/job/Lib//280/artifact/tool.rpm

but in the same place there is tool.rpm, there is a folder Test

I want to download the whole folder, is it possible? Or will I have to pick files one by one?

Upvotes: 0

Views: 4558

Answers (1)

moffeltje
moffeltje

Reputation: 4658

Try using wget -r http://jenkinsmedia:XXXX/job/Lib//280/artifact/

This will create a folder, in that folder it will have a folder job and so on..

use wget -nH --cut-dirs=4 -r http://jenkinsmedia:XXXX/job/Lib//280/artifact/ if you just want to have the folder with the documents

Upvotes: 2

Related Questions