linux - How do I mirror a directory with wget without creating parent directories? -
i want mirror folder via ftp, this:
wget --mirror --user=x --password=x ftp://ftp.site.com/folder/subfolder/evendeeper but not want create directory structure this:
ftp.site.com -> folder -> subfolder -> evendeeper
i want:
evendeeper
and below resulting structure. acceptable contents of evendeeper wind in current directory long subdirectories created subdirectories of evendeeper on server.
i aware of -np option, according documentation keeps following links parent pages (a non-issue binary files i'm mirroring via ftp). aware of -nd option, prevents creating directory structure @ all, subdirectories of evendeeper.
i consider alternatives long command-line-based, readily available ubuntu packages , automated wget.
for path like: ftp.site.com/a/b/c/d
-nh download files directory d in current directory, , -nh --cut-dirs=1 download files current directory.
Comments
Post a Comment