Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to download this entire directory with wget? How I can do that? This is the directory with the files that I want to download: http://java.net/projects/glassfish/sources/svn/show/trunk/fighterfish/sample

share|improve this question
5  
Did you try wget --help or reading its documentation ? –  Basile Starynkevitch Feb 2 '12 at 17:11
9  
Why wget? Why not svn co https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/sample/? –  Banthar Feb 2 '12 at 17:16
1  
@Banthar, you should make your comment an answer. Barring any specific reason OP wants to use wget, a svn checkout would be the most appropriate way to get code from a repository. –  shufler Feb 2 '12 at 17:34
add comment

migrated from stackoverflow.com Feb 2 '12 at 17:28

This question came from our site for professional and enthusiast programmers.

2 Answers

If you have no option other than wget, you could use wget -m http://java.net/projects/glassfish/sources/svn/show/trunk/fighterfish/sample, otherwise, like it had been mentioned use an SVN client and use this url: https://svn.java.net/svn/glassfish~svn.

If you want to use the command-line: svn co https://svn.java.net/svn/glassfish~svn

share|improve this answer
add comment

Referance the GNU Wget Manual, it has everything you'll need to know about using wget.

This may not answer your question, but this will create a 5 level deep mirror of the directory you give it.

"Create a five levels deep mirror image of the GNU web site, with the same directory structure the original has, with only one try per document, saving the log of the activities to `gnulog':

wget -r http://www.gnu.org/ -o gnulog

"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.