Mam folder z widokiem folderów w Internecie ( http://example.com/folder1/folder2/ )
/ folder2 ma wiele folderów z plikami pdf. Chcę pobrać na mój serwer przez ssh całą zawartość katalogu / folder2, w tym wszystkie podfoldery i pliki korzystające z wget. Próbowałem następujących, ale wciąż otrzymuję tylko plik index.html i plik robots.txt.
[root@myserver downloads]# wget -r --no-parent --reject "index.html*" http://www.example.com/folder1/folder2/
--2015-08-07 07:46:36-- http://www.example.com/folder1/folder2/
Resolving www.example.com... 192.168.1.1
Connecting to www.example.com|192.168.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `www.example.com/folder1/folder2/index.html'
[ <=> ] 4,874,325 138K/s in 37s
2015-08-07 07:47:42 (128 KB/s) - `www.example.com/folder1/folder2/index.html' saved [4874325]
Loading robots.txt; please ignore errors.
--2015-08-07 07:47:42-- http://www.example.com/robots.txt
Connecting to www.example.com|192.168.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26 [text/plain]
Saving to: `www.example.com/robots.txt'
100%[======================================>] 26 --.-K/s in 0s
2015-08-07 07:47:42 (1.42 MB/s) - `www.example.com/robots.txt' saved [26/26]
Removing www.example.com/folder1/folder2/index.html since it should be rejected.
FINISHED --2015-08-07 07:47:42--
Downloaded: 2 files, 4.6M in 37s (128 KB/s)
[root@myserver downloads]#
Inne polecenia, które próbowałem z podobnymi błędami:
wget -m -p -E -k -K -np http://example.com/folder1/folder2/
wget -r http://example.com/folder1/folder2/ -nd -P /downloads -A PDF