I have to download files which are outside the my site directory using
wget with windows let me make it more clear.
I have my site running on Linux server.
Domain ---> www.example.com /var/www/html ---> This is the my site directory /home/username/data.csv ---> This is the file I wants to download
When I try to download any file from the site directory it is working fine but it is not getting downloaded from here
c:\wget\ wget.exe --ftp-user="username" --ftp-password="password" "www.example.com/index.php"
The above command works good and '
index.php' file is downloaded successfully.
But how to target
/home/username/data.csv file and download using
I tried with this but I was sure this will not work.
c:\wget\ wget.exe --ftp-user="username" --ftp-password="password" "www.example.com/home/username/data.csv"
I can understand why this command does not work and return
404 error, because the domain is pointing to the
/var/www/html directory hence
wget internally reads it like
/var/www/html/home/username/data.csv and this is true there is no such file.
So my question is Does
wget accept the path?
How do I do download the file outside my site directory?