1SMBGET(1) SMBGET(1)
2
3
4
6 smbget - wget-like utility for download files over SMB
7
9 smbget [-a, --guest] [-r, --resume] [-R, --recursive] [-u, --user‐
10 name=STRING] [-p, --password=STRING] [-w, --workgroup=STRING]
11 [-n, --nonprompt] [-d, --debuglevel=INT] [-D, --dots] [-P, --keep-per‐
12 missions] [-o, --outputfile] [-f, --rcfile] [-q, --quiet] [-v, --ver‐
13 bose] [-b, --blocksize] [-?, --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, --username=STRING
37 Username to use
38
39 -p, --password=STRING
40 Password to use
41
42 -w, --workgroup=STRING
43 Workgroup to use (optional)
44
45 -n, --nonprompt
46 Don't ask anything (non-interactive)
47
48 -d, --debuglevel=INT
49 Debuglevel to use
50
51 -D, --dots
52 Show dots as progress indication
53
54 -P, --keep-permissions
55 Set same permissions on local file as are set on remote file.
56
57 -o, --outputfile
58 Write the file that is being download to the specified file. Can not
59 be used together with -R.
60
61 -f, --rcfile
62 Use specified rcfile. This will be loaded in the order it was speci‐
63 fied - e.g. if you specify any options before this one, they might
64 get overriden by the contents of the rcfile.
65
66 -q, --quiet
67 Be quiet
68
69 -v, --verbose
70 Be verbose
71
72 -b, --blocksize
73 Number of bytes to download in a block. Defaults to 64000.
74
75 -?, --help
76 Show help message
77
78 --usage
79 Display brief usage message
80
82 SMB URL's should be specified in the following format:
83
84 smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
85
86
87
88 smb:// means all the workgroups
89
90
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
94
95
97 # Recursively download 'src' directory
98 smbget -R smb://rhonwyn/jelmer/src
99 # Download FreeBSD ISO and enable resuming
100 smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso
101 # Recursively download all ISOs
102 smbget -Rr smb://rhonwyn/isos
103 # Backup my data on rhonwyn
104 smbget -Rr smb://rhonwyn/
105
106
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
113 This man page is correct for version 3.0 of the Samba suite.
114
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
124
125 SMBGET(1)