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 buddhadust
The website is http://buddhadust.net
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 http://buddhadust.net
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
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.