1SMBGET(1)                        User Commands                       SMBGET(1)
2
3
4

NAME

6       smbget - wget-like utility for download files over SMB
7

SYNOPSIS

9       smbget [-a, --guest] [-r, --resume] [-R, --recursive]
10        [-U, --user=STRING] [-w, --workgroup=STRING] [-n, --nonprompt]
11        [-d, --debuglevel=INT] [-D, --dots] [-o, --outputfile] [-f, --rcfile]
12        [-q, --quiet] [-v, --verbose] [-b, --blocksize] [-O, --stdout]
13        [-u, --update] [-?, --help] [--usage] {smb://host/share/path/to/file}
14        [smb://url2/] [...]
15

DESCRIPTION

17       This tool is part of the samba(7) suite.
18
19       smbget is a simple utility with wget-like semantics, that can download
20       files from SMB servers. You can specify the files you would like to
21       download on the command-line.
22
23       The files should be in the smb-URL standard, e.g. use
24       smb://host/share/file for the UNC path \\\\HOST\\SHARE\\file.
25

OPTIONS

27       -a, --guest
28           Work as user guest
29
30       -r, --resume
31           Automatically resume aborted files
32
33       -R, --recursive
34           Recursively download files
35
36       -U, --user=username[%password]
37           Username (and password) to use
38
39       -w, --workgroup=STRING
40           Workgroup to use (optional)
41
42       -n, --nonprompt
43           Don't ask anything (non-interactive)
44
45       -d, --debuglevel=INT
46           Debuglevel to use
47
48       -D, --dots
49           Show dots as progress indication
50
51       -o, --outputfile
52           Write the file that is being downloaded to the specified file. Can
53           not be used together with -R.
54
55       -O, --stdout
56           Write the file that is being downloaded to standard output.
57
58       -f, --rcfile
59           Use specified rcfile. This will be loaded in the order it was
60           specified - e.g. if you specify any options before this one, they
61           might get overridden by the contents of the rcfile.
62
63       -q, --quiet
64           Be quiet
65
66       -v, --verbose
67           Be verbose
68
69       -b, --blocksize
70           Number of bytes to download in a block. Defaults to 64000.
71
72       -?, --help
73           Show help message
74
75       --usage
76           Display brief usage message
77
78       -u, --update
79           Download only when remote file is newer than local file or local
80           file is missing.
81
82       -e|--encrypt
83           This command line parameter requires the remote server support the
84           UNIX extensions or that the SMB3 protocol has been selected.
85           Requests that the connection be encrypted. Negotiates SMB
86           encryption using either SMB3 or POSIX extensions via GSSAPI. Uses
87           the given credentials for the encryption negotiation (either
88           kerberos or NTLMv1/v2 if given domain/username/password triple.
89           Fails the connection if encryption cannot be negotiated.
90

SMB URLS

92       SMB URL's should be specified in the following format:
93
94           smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
95
96           smb:// means all the workgroups
97
98           smb://name/ means, if name is a workgroup, all the servers in this workgroup, or if name is a server, all the shares on this server.
99

EXAMPLES

101           # Recursively download 'src' directory
102           smbget -R smb://rhonwyn/jelmer/src
103           # Download FreeBSD ISO and enable resuming
104           smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso
105           # Recursively download all ISOs
106           smbget -Rr smb://rhonwyn/isos
107           # Backup my data on rhonwyn
108           smbget -Rr smb://rhonwyn/
109

BUGS

111       Permission denied is returned in some cases where the cause of the
112       error is unknown (such as an illegally formatted smb:// url or trying
113       to get a directory without -R turned on).
114

VERSION

116       This man page is part of version 4.12.2 of the Samba suite.
117

AUTHOR

119       The original Samba software and related utilities were created by
120       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
121       Source project similar to the way the Linux kernel is developed.
122
123       The smbget manpage was written by Jelmer Vernooij.
124
125
126
127Samba 4.12.2                      04/28/2020                         SMBGET(1)
Impressum