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] [-e, --encrypt] [--limit-rate=INT] [-?, --help]
14        [--usage] {smb://host/share/path/to/file} [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           Enable SMB encryption.
84
85       --limit-rate=INT
86           Limit download rate by this many KB/s.
87

SMB URLS

89       SMB URL's should be specified in the following format:
90
91           smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
92
93           smb:// means all the workgroups
94
95           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.
96

EXAMPLES

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

BUGS

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

VERSION

113       This man page is part of version 4.18.9 of the Samba suite.
114

AUTHOR

116       The original Samba software and related utilities were created by
117       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
118       Source project similar to the way the Linux kernel is developed.
119
120       The smbget manpage was written by Jelmer Vernooij.
121
122
123
124Samba 4.18.9                      11/30/2023                         SMBGET(1)
Impressum