Howto created trimmed directory tree while using wget for ftp download Howto created trimmed directory tree while using wget for ftp download bash bash

Howto created trimmed directory tree while using wget for ftp download


Look for --no-host-directories and --cut-dirs in the manpage.

This should work like expected (maybe you have to increase/decrease cut-dirs):

wget --recursive --no-verbose --no-host-directories --cut-dirs=3 --user user --password password ftp://site.tld/var/folder