wget mirror into my git direcotry

I want to wget --mirror into a specified directory. I can use -P <PATH> but it still makes a subdirectory with the website name.

My Git directory name is buddhadustThe website is

So when I do a test it downloads into the specified directory, but makes a whole new folder called buddhadust.net

Here is the command I use, but I'm still getting the default folder creation with the name of the website inside the specified directory "buddhadust"

wget -P buddhadust --mirror -N --no-parent 

There are two reasons why I want to do this.
1. Copying files is a nightmare and often the files are set with new dates. 2. If I download directly into the GIT, I don't have to copy files and save a step

3

1 Answer

I can go into the git directory and create a terminal in that directory. Then I can use -nH flag. The problem is that it does not cycle through all of the files to see if there are new files added which is another issue. However, this issue is solved.

Need to delete index.html in order for it to cycle through the files.

wget -nH --mirror 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like