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] [-e, --encrypt] [-?, --help] [--usage]
14 {smb://host/share/path/to/file} [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
82 -e, --encrypt
83 Enable SMB encryption.
84
86 SMB URL's should be specified in the following format:
87
88 smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
89
90 smb:// means all the workgroups
91
92 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.
93
95 # Recursively download 'src' directory
96 smbget -R smb://rhonwyn/jelmer/src
97 # Download FreeBSD ISO and enable resuming
98 smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso
99 # Recursively download all ISOs
100 smbget -Rr smb://rhonwyn/isos
101 # Backup my data on rhonwyn
102 smbget -Rr smb://rhonwyn/
103
105 Permission denied is returned in some cases where the cause of the
106 error is unknown (such as an illegally formatted smb:// url or trying
107 to get a directory without -R turned on).
108
110 This man page is part of version 4.16.2 of the Samba suite.
111
113 The original Samba software and related utilities were created by
114 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
115 Source project similar to the way the Linux kernel is developed.
116
117 The smbget manpage was written by Jelmer Vernooij.
118
119
120
121Samba 4.16.2 06/13/2022 SMBGET(1)