Tag: smbclient

Debian

Recursively download a directory using smbclient

smbclient — ftp-like client to access SMB/CIFS resources on servers. Download folder smbclient ‘\\server\share’ -U usernamesmbclient ‘\\server\share’ -U username mask "" recurse ON prompt OFF cd ‘/path/to/remote/directory’ lcd ‘/path/to/download/’ mget *mask "" recurse ON prompt OFF cd ‘/path/to/remote/directory’ lcd ‘/path/to/download/’ mget * Options Usage: smbclient service -R, –name-resolve=NAME-RESOLVE-ORDER Use these name resolution services only -M, …