1 | '\" t
|
---|
2 | .\" Title: smbget
|
---|
3 | .\" Author: [see the "AUTHOR" section]
|
---|
4 | .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
---|
5 | .\" Date: 09/18/2013
|
---|
6 | .\" Manual: User Commands
|
---|
7 | .\" Source: Samba 3.6
|
---|
8 | .\" Language: English
|
---|
9 | .\"
|
---|
10 | .TH "SMBGET" "1" "09/18/2013" "Samba 3\&.6" "User Commands"
|
---|
11 | .\" -----------------------------------------------------------------
|
---|
12 | .\" * Define some portability stuff
|
---|
13 | .\" -----------------------------------------------------------------
|
---|
14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
15 | .\" http://bugs.debian.org/507673
|
---|
16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
---|
17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
18 | .ie \n(.g .ds Aq \(aq
|
---|
19 | .el .ds Aq '
|
---|
20 | .\" -----------------------------------------------------------------
|
---|
21 | .\" * set default formatting
|
---|
22 | .\" -----------------------------------------------------------------
|
---|
23 | .\" disable hyphenation
|
---|
24 | .nh
|
---|
25 | .\" disable justification (adjust text to left margin only)
|
---|
26 | .ad l
|
---|
27 | .\" -----------------------------------------------------------------
|
---|
28 | .\" * MAIN CONTENT STARTS HERE *
|
---|
29 | .\" -----------------------------------------------------------------
|
---|
30 | .SH "NAME"
|
---|
31 | smbget \- wget\-like utility for download files over SMB
|
---|
32 | .SH "SYNOPSIS"
|
---|
33 | .HP \w'\ 'u
|
---|
34 | smbget [\-a,\ \-\-guest] [\-r,\ \-\-resume] [\-R,\ \-\-recursive] [\-u,\ \-\-username=STRING] [\-p,\ \-\-password=STRING] [\-w,\ \-\-workgroup=STRING] [\-n,\ \-\-nonprompt] [\-d,\ \-\-debuglevel=INT] [\-D,\ \-\-dots] [\-P,\ \-\-keep\-permissions] [\-o,\ \-\-outputfile] [\-f,\ \-\-rcfile] [\-q,\ \-\-quiet] [\-v,\ \-\-verbose] [\-b,\ \-\-blocksize] [\-O,\ \-\-stdout] [\-?,\ \-\-help] [\-\-usage] {smb://host/share/path/to/file} [smb://url2/] [\&.\&.\&.]
|
---|
35 | .SH "DESCRIPTION"
|
---|
36 | .PP
|
---|
37 | This tool is part of the
|
---|
38 | \fBsamba\fR(7)
|
---|
39 | suite\&.
|
---|
40 | .PP
|
---|
41 | smbget is a simple utility with wget\-like semantics, that can download files from SMB servers\&. You can specify the files you would like to download on the command\-line\&.
|
---|
42 | .PP
|
---|
43 | The files should be in the smb\-URL standard, e\&.g\&. use smb://host/share/file for the UNC path
|
---|
44 | \fI\e\e\e\eHOST\e\eSHARE\e\efile\fR\&.
|
---|
45 | .SH "OPTIONS"
|
---|
46 | .PP
|
---|
47 | \-a, \-\-guest
|
---|
48 | .RS 4
|
---|
49 | Work as user guest
|
---|
50 | .RE
|
---|
51 | .PP
|
---|
52 | \-r, \-\-resume
|
---|
53 | .RS 4
|
---|
54 | Automatically resume aborted files
|
---|
55 | .RE
|
---|
56 | .PP
|
---|
57 | \-R, \-\-recursive
|
---|
58 | .RS 4
|
---|
59 | Recursively download files
|
---|
60 | .RE
|
---|
61 | .PP
|
---|
62 | \-u, \-\-username=STRING
|
---|
63 | .RS 4
|
---|
64 | Username to use
|
---|
65 | .RE
|
---|
66 | .PP
|
---|
67 | \-p, \-\-password=STRING
|
---|
68 | .RS 4
|
---|
69 | Password to use
|
---|
70 | .RE
|
---|
71 | .PP
|
---|
72 | \-w, \-\-workgroup=STRING
|
---|
73 | .RS 4
|
---|
74 | Workgroup to use (optional)
|
---|
75 | .RE
|
---|
76 | .PP
|
---|
77 | \-n, \-\-nonprompt
|
---|
78 | .RS 4
|
---|
79 | Don\*(Aqt ask anything (non\-interactive)
|
---|
80 | .RE
|
---|
81 | .PP
|
---|
82 | \-d, \-\-debuglevel=INT
|
---|
83 | .RS 4
|
---|
84 | Debuglevel to use
|
---|
85 | .RE
|
---|
86 | .PP
|
---|
87 | \-D, \-\-dots
|
---|
88 | .RS 4
|
---|
89 | Show dots as progress indication
|
---|
90 | .RE
|
---|
91 | .PP
|
---|
92 | \-P, \-\-keep\-permissions
|
---|
93 | .RS 4
|
---|
94 | Set same permissions on local file as are set on remote file\&.
|
---|
95 | .RE
|
---|
96 | .PP
|
---|
97 | \-o, \-\-outputfile
|
---|
98 | .RS 4
|
---|
99 | Write the file that is being downloaded to the specified file\&. Can not be used together with \-R\&.
|
---|
100 | .RE
|
---|
101 | .PP
|
---|
102 | \-O, \-\-stdout
|
---|
103 | .RS 4
|
---|
104 | Write the file that is being downloaded to standard output\&.
|
---|
105 | .RE
|
---|
106 | .PP
|
---|
107 | \-f, \-\-rcfile
|
---|
108 | .RS 4
|
---|
109 | Use specified rcfile\&. This will be loaded in the order it was specified \- e\&.g\&. if you specify any options before this one, they might get overridden by the contents of the rcfile\&.
|
---|
110 | .RE
|
---|
111 | .PP
|
---|
112 | \-q, \-\-quiet
|
---|
113 | .RS 4
|
---|
114 | Be quiet
|
---|
115 | .RE
|
---|
116 | .PP
|
---|
117 | \-v, \-\-verbose
|
---|
118 | .RS 4
|
---|
119 | Be verbose
|
---|
120 | .RE
|
---|
121 | .PP
|
---|
122 | \-b, \-\-blocksize
|
---|
123 | .RS 4
|
---|
124 | Number of bytes to download in a block\&. Defaults to 64000\&.
|
---|
125 | .RE
|
---|
126 | .PP
|
---|
127 | \-?, \-\-help
|
---|
128 | .RS 4
|
---|
129 | Show help message
|
---|
130 | .RE
|
---|
131 | .PP
|
---|
132 | \-\-usage
|
---|
133 | .RS 4
|
---|
134 | Display brief usage message
|
---|
135 | .RE
|
---|
136 | .SH "SMB URLS"
|
---|
137 | .PP
|
---|
138 | SMB URL\*(Aqs should be specified in the following format:
|
---|
139 | .PP
|
---|
140 | .if n \{\
|
---|
141 | .RS 4
|
---|
142 | .\}
|
---|
143 | .nf
|
---|
144 | smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
|
---|
145 | .fi
|
---|
146 | .if n \{\
|
---|
147 | .RE
|
---|
148 | .\}
|
---|
149 | .PP
|
---|
150 | .if n \{\
|
---|
151 | .RS 4
|
---|
152 | .\}
|
---|
153 | .nf
|
---|
154 | smb:// means all the workgroups
|
---|
155 | .fi
|
---|
156 | .if n \{\
|
---|
157 | .RE
|
---|
158 | .\}
|
---|
159 | .PP
|
---|
160 | .if n \{\
|
---|
161 | .RS 4
|
---|
162 | .\}
|
---|
163 | .nf
|
---|
164 | smb://name/ means, if \fIname\fR is a workgroup, all the servers in this workgroup, or if \fIname\fR is a server, all the shares on this server\&.
|
---|
165 | .fi
|
---|
166 | .if n \{\
|
---|
167 | .RE
|
---|
168 | .\}
|
---|
169 | .SH "EXAMPLES"
|
---|
170 | .sp
|
---|
171 | .if n \{\
|
---|
172 | .RS 4
|
---|
173 | .\}
|
---|
174 | .nf
|
---|
175 | # Recursively download \*(Aqsrc\*(Aq directory
|
---|
176 | smbget \-R smb://rhonwyn/jelmer/src
|
---|
177 | # Download FreeBSD ISO and enable resuming
|
---|
178 | smbget \-r smb://rhonwyn/isos/FreeBSD5\&.1\&.iso
|
---|
179 | # Recursively download all ISOs
|
---|
180 | smbget \-Rr smb://rhonwyn/isos
|
---|
181 | # Backup my data on rhonwyn
|
---|
182 | smbget \-Rr smb://rhonwyn/
|
---|
183 | .fi
|
---|
184 | .if n \{\
|
---|
185 | .RE
|
---|
186 | .\}
|
---|
187 | .SH "BUGS"
|
---|
188 | .PP
|
---|
189 | Permission denied is returned in some cases where the cause of the error is unknown (such as an illegally formatted smb:// url or trying to get a directory without \-R turned on)\&.
|
---|
190 | .SH "VERSION"
|
---|
191 | .PP
|
---|
192 | This man page is correct for version 3 of the Samba suite\&.
|
---|
193 | .SH "AUTHOR"
|
---|
194 | .PP
|
---|
195 | The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
---|
196 | .PP
|
---|
197 | The smbget manpage was written by Jelmer Vernooij\&.
|
---|