source: vendor/current/docs/manpages/smbget.1

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 4.7 KB
Line 
1'\" t
2.\" Title: smbget
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 10/25/2016
6.\" Manual: User Commands
7.\" Source: Samba 4.4
8.\" Language: English
9.\"
10.TH "SMBGET" "1" "10/25/2016" "Samba 4\&.4" "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"
31smbget \- wget\-like utility for download files over SMB
32.SH "SYNOPSIS"
33.HP \w'\ 'u
34smbget [\-a,\ \-\-guest] [\-r,\ \-\-resume] [\-R,\ \-\-recursive] [\-U,\ \-\-username=STRING] [\-w,\ \-\-workgroup=STRING] [\-n,\ \-\-nonprompt] [\-d,\ \-\-debuglevel=INT] [\-D,\ \-\-dots] [\-o,\ \-\-outputfile] [\-f,\ \-\-rcfile] [\-q,\ \-\-quiet] [\-v,\ \-\-verbose] [\-b,\ \-\-blocksize] [\-O,\ \-\-stdout] [\-u,\ \-\-update] [\-?,\ \-\-help] [\-\-usage] {smb://host/share/path/to/file} [smb://url2/] [\&.\&.\&.]
35.SH "DESCRIPTION"
36.PP
37This tool is part of the
38\fBsamba\fR(7)
39suite\&.
40.PP
41smbget 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
43The 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
49Work as user guest
50.RE
51.PP
52\-r, \-\-resume
53.RS 4
54Automatically resume aborted files
55.RE
56.PP
57\-R, \-\-recursive
58.RS 4
59Recursively download files
60.RE
61.PP
62\-U, \-\-username=\fIusername[%password]\fR
63.RS 4
64Username (and password) to use
65.RE
66.PP
67\-w, \-\-workgroup=STRING
68.RS 4
69Workgroup to use (optional)
70.RE
71.PP
72\-n, \-\-nonprompt
73.RS 4
74Don\*(Aqt ask anything (non\-interactive)
75.RE
76.PP
77\-d, \-\-debuglevel=INT
78.RS 4
79Debuglevel to use
80.RE
81.PP
82\-D, \-\-dots
83.RS 4
84Show dots as progress indication
85.RE
86.PP
87\-o, \-\-outputfile
88.RS 4
89Write the file that is being downloaded to the specified file\&. Can not be used together with \-R\&.
90.RE
91.PP
92\-O, \-\-stdout
93.RS 4
94Write the file that is being downloaded to standard output\&.
95.RE
96.PP
97\-f, \-\-rcfile
98.RS 4
99Use 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\&.
100.RE
101.PP
102\-q, \-\-quiet
103.RS 4
104Be quiet
105.RE
106.PP
107\-v, \-\-verbose
108.RS 4
109Be verbose
110.RE
111.PP
112\-b, \-\-blocksize
113.RS 4
114Number of bytes to download in a block\&. Defaults to 64000\&.
115.RE
116.PP
117\-?, \-\-help
118.RS 4
119Show help message
120.RE
121.PP
122\-\-usage
123.RS 4
124Display brief usage message
125.RE
126.PP
127\-u, \-\-update
128.RS 4
129Download only when remote file is newer than local file or local file is missing\&.
130.RE
131.SH "SMB URLS"
132.PP
133SMB URL\*(Aqs should be specified in the following format:
134.PP
135.if n \{\
136.RS 4
137.\}
138.nf
139smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
140.fi
141.if n \{\
142.RE
143.\}
144.PP
145.if n \{\
146.RS 4
147.\}
148.nf
149smb:// means all the workgroups
150.fi
151.if n \{\
152.RE
153.\}
154.PP
155.if n \{\
156.RS 4
157.\}
158.nf
159smb://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\&.
160.fi
161.if n \{\
162.RE
163.\}
164.SH "EXAMPLES"
165.sp
166.if n \{\
167.RS 4
168.\}
169.nf
170# Recursively download \*(Aqsrc\*(Aq directory
171smbget \-R smb://rhonwyn/jelmer/src
172# Download FreeBSD ISO and enable resuming
173smbget \-r smb://rhonwyn/isos/FreeBSD5\&.1\&.iso
174# Recursively download all ISOs
175smbget \-Rr smb://rhonwyn/isos
176# Backup my data on rhonwyn
177smbget \-Rr smb://rhonwyn/
178.fi
179.if n \{\
180.RE
181.\}
182.SH "BUGS"
183.PP
184Permission 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)\&.
185.SH "VERSION"
186.PP
187This man page is correct for version 3 of the Samba suite\&.
188.SH "AUTHOR"
189.PP
190The 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\&.
191.PP
192The smbget manpage was written by Jelmer Vernooij\&.
Note: See TracBrowser for help on using the repository browser.