wget not excluding nested directory
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have seen this but it's not working. The remote/ftp directory structure is this:
domain.com/
toplevel/
foo1/
ARCHIVE/
README.stuff
DATA/
README.txt
...other nested folders
wantedstuff.zip
wantedstuff2/
morewantedstuff.zip
...otherstuffwanted
I want everything within /toplevel
EXCEPT everything inside the /ARCHIVE
folders for each nested folder in /toplevel/*
.
I tried this:
wget --continue -r --exclude-directories=/ARCHIVE/ ftp://domain.com/toplevel/
and these:
wget --continue -r --exclude-directories=ARCHIVE ftp://domain.com/toplevel/
wget --continue -r --exclude-directories=ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r X /ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE/*' ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE' ftp://domain.com/toplevel/
wget --continue -r --reject-regex '.*/ARCHIVE/.*' ftp://domain.com/toplevel/
But none seem to work, it still downloads that ARCHIVE folder. Wondering how to prevent it from downloading.
wget
add a comment |Â
up vote
0
down vote
favorite
I have seen this but it's not working. The remote/ftp directory structure is this:
domain.com/
toplevel/
foo1/
ARCHIVE/
README.stuff
DATA/
README.txt
...other nested folders
wantedstuff.zip
wantedstuff2/
morewantedstuff.zip
...otherstuffwanted
I want everything within /toplevel
EXCEPT everything inside the /ARCHIVE
folders for each nested folder in /toplevel/*
.
I tried this:
wget --continue -r --exclude-directories=/ARCHIVE/ ftp://domain.com/toplevel/
and these:
wget --continue -r --exclude-directories=ARCHIVE ftp://domain.com/toplevel/
wget --continue -r --exclude-directories=ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r X /ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE/*' ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE' ftp://domain.com/toplevel/
wget --continue -r --reject-regex '.*/ARCHIVE/.*' ftp://domain.com/toplevel/
But none seem to work, it still downloads that ARCHIVE folder. Wondering how to prevent it from downloading.
wget
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have seen this but it's not working. The remote/ftp directory structure is this:
domain.com/
toplevel/
foo1/
ARCHIVE/
README.stuff
DATA/
README.txt
...other nested folders
wantedstuff.zip
wantedstuff2/
morewantedstuff.zip
...otherstuffwanted
I want everything within /toplevel
EXCEPT everything inside the /ARCHIVE
folders for each nested folder in /toplevel/*
.
I tried this:
wget --continue -r --exclude-directories=/ARCHIVE/ ftp://domain.com/toplevel/
and these:
wget --continue -r --exclude-directories=ARCHIVE ftp://domain.com/toplevel/
wget --continue -r --exclude-directories=ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r X /ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE/*' ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE' ftp://domain.com/toplevel/
wget --continue -r --reject-regex '.*/ARCHIVE/.*' ftp://domain.com/toplevel/
But none seem to work, it still downloads that ARCHIVE folder. Wondering how to prevent it from downloading.
wget
I have seen this but it's not working. The remote/ftp directory structure is this:
domain.com/
toplevel/
foo1/
ARCHIVE/
README.stuff
DATA/
README.txt
...other nested folders
wantedstuff.zip
wantedstuff2/
morewantedstuff.zip
...otherstuffwanted
I want everything within /toplevel
EXCEPT everything inside the /ARCHIVE
folders for each nested folder in /toplevel/*
.
I tried this:
wget --continue -r --exclude-directories=/ARCHIVE/ ftp://domain.com/toplevel/
and these:
wget --continue -r --exclude-directories=ARCHIVE ftp://domain.com/toplevel/
wget --continue -r --exclude-directories=ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r X /ARCHIVE/ ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE/*' ftp://domain.com/toplevel/
wget --continue -r -X '*/ARCHIVE' ftp://domain.com/toplevel/
wget --continue -r --reject-regex '.*/ARCHIVE/.*' ftp://domain.com/toplevel/
But none seem to work, it still downloads that ARCHIVE folder. Wondering how to prevent it from downloading.
wget
wget
edited 15 mins ago
asked 22 mins ago
Lance Pollard
1325
1325
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480245%2fwget-not-excluding-nested-directory%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password