source: branches/samba-3.5.x/docs/manpages/smbget.1@ 732

Last change on this file since 732 was 732, checked in by Silvan Scherrer, 13 years ago

Samba Server 3.5: update branche to 3.5.12

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