1SMBGET(1) User Commands SMBGET(1)
2
3
4
6 smbget - wget-like utility for download files over SMB
7
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
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
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
83 SMB URL's should be specified in the following format:
84
85 smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
86
87 smb:// means all the workgroups
88
89 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.
90
92 # Recursively download 'src' directory
93 smbget -R smb://rhonwyn/jelmer/src
94 # Download FreeBSD ISO and enable resuming
95 smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso
96 # Recursively download all ISOs
97 smbget -Rr smb://rhonwyn/isos
98 # Backup my data on rhonwyn
99 smbget -Rr smb://rhonwyn/
100
102 Permission denied is returned in some cases where the cause of the
103 error is unknown (such as an illegally formatted smb:// url or trying
104 to get a directory without -R turned on).
105
107 This man page is part of version 4.15.2 of the Samba suite.
108
110 The original Samba software and related utilities were created by
111 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
112 Source project similar to the way the Linux kernel is developed.
113
114 The smbget manpage was written by Jelmer Vernooij.
115
116
117
118Samba 4.15.2 11/13/2021 SMBGET(1)