Recursive Download

SMB

# With smbclient, 
mkdir download; cd download
smbclient //<IP>/Share -U <username> 
smb: \> mask ""
smb: \> recurse ON
smb: \> prompt OFF
smb: \> mget *

# With smbget,
mkdir download; cd download
smbget -R smb://10.10.10.143/share/
find all files and sort them by size
find . -type f  -exec du -h {} + | sort -h

HTTP

# HTTP
wget -e robots=off --cut-dirs=3 --user-agent=Mozilla/5.0 --reject="index.html*" --no-parent --recursive --relative --level=1 --no-directories http://www.example.com/archive/example/5.3.0/

FTP

CP & RCP

Last updated