Wget entire directory from the Caddy file_server

1. Output of caddy version:

v2.5.2

2. How I run Caddy:

Linux server x64 binary.

a. System environment:

Ubuntu 22.04.1 LTS

b. Command:

(dir_server) {
	root * "{args.0}"
	file_server browse
}
...
...
handle_path /dir_list/* {
	import dir_server "/path/to/share"
}

c. Service/unit/compose file:

Irrelevant

d. My complete Caddy config:

Irrelevant

3. The problem I’m having:

I’d like to be able to run a wget command to download/replicate the entire directory structure shown by a Caddy file browser.

4. Error messages and/or full log output:

Irrelevant

5. What I already tried:

6. Links to relevant resources:

Is something like this possible?: Download ALL Folders, SubFolders, and Files using Wget - Super User

I think your question is about wget - whether or not you’re using Caddy here shouldn’t matter.

Did you try it? Did you run into any problems?

This topic was automatically closed after 30 days. New replies are no longer allowed.