1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="smbget.1">
6 <refentrytitle>smbget</refentrytitle>
7 <manvolnum>1</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">User Commands</refmiscinfo>
10 <refmiscinfo class="version">&doc.version;</refmiscinfo>
15 <refname>smbget</refname>
16 <refpurpose>wget-like utility for download files over SMB</refpurpose>
21 <command>smbget</command>
22 <arg choice="opt">-a, --guest</arg>
23 <arg choice="opt">-r, --resume</arg>
24 <arg choice="opt">-R, --recursive</arg>
25 <arg choice="opt">-U, --user=STRING</arg>
26 <arg choice="opt">-w, --workgroup=STRING</arg>
27 <arg choice="opt">-n, --nonprompt</arg>
28 <arg choice="opt">-d, --debuglevel=INT</arg>
29 <arg choice="opt">-D, --dots</arg>
30 <arg choice="opt">-o, --outputfile</arg>
31 <arg choice="opt">-f, --rcfile</arg>
32 <arg choice="opt">-q, --quiet</arg>
33 <arg choice="opt">-v, --verbose</arg>
34 <arg choice="opt">-b, --blocksize</arg>
35 <arg choice="opt">-O, --stdout</arg>
36 <arg choice="opt">-u, --update</arg>
37 <arg choice="opt">-e, --encrypt</arg>
38 <arg choice="opt">-?, --help</arg>
39 <arg choice="opt">--usage</arg>
40 <arg choice="req">smb://host/share/path/to/file</arg>
41 <arg choice="opt">smb://url2/</arg>
42 <arg choice="opt">...</arg>
47 <title>DESCRIPTION</title>
49 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
50 <manvolnum>7</manvolnum></citerefentry> suite.</para>
52 <para>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.
56 The files should be in the smb-URL standard, e.g. use smb://host/share/file
57 for the UNC path <emphasis>\\\\HOST\\SHARE\\file</emphasis>.
62 <title>OPTIONS</title>
65 <term>-a, --guest</term>
66 <listitem><para>Work as user guest</para></listitem>
70 <term>-r, --resume</term>
71 <listitem><para>Automatically resume aborted files</para></listitem>
75 <term>-R, --recursive</term>
76 <listitem><para>Recursively download files</para></listitem>
80 <term> -U, --user=<replaceable>username[%password]</replaceable></term>
81 <listitem><para>Username (and password) to use</para></listitem>
85 <term>-w, --workgroup=STRING</term>
86 <listitem><para>Workgroup to use (optional)</para></listitem>
90 <term>-n, --nonprompt</term>
91 <listitem><para>Don't ask anything (non-interactive)</para></listitem>
95 <term>-d, --debuglevel=INT</term>
96 <listitem><para>Debuglevel to use</para></listitem>
100 <term>-D, --dots</term>
101 <listitem><para>Show dots as progress indication</para></listitem>
105 <term>-o, --outputfile</term>
106 <listitem><para>Write the file that is being downloaded to the specified file. Can not be used together with -R.</para></listitem>
110 <term>-O, --stdout</term>
111 <listitem><para>Write the file that is being downloaded to standard output.</para></listitem>
115 <term>-f, --rcfile</term>
116 <listitem><para>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.</para></listitem>
120 <term>-q, --quiet</term>
121 <listitem><para>Be quiet</para></listitem>
125 <term>-v, --verbose</term>
126 <listitem><para>Be verbose</para></listitem>
130 <term>-b, --blocksize</term>
131 <listitem><para>Number of bytes to download in a block. Defaults to 64000.</para></listitem>
135 <term>-?, --help</term>
136 <listitem><para>Show help message</para></listitem>
141 <listitem><para>Display brief usage message</para></listitem>
145 <term>-u, --update</term>
146 <listitem><para>Download only when remote file is newer than local file or local file is missing.</para></listitem>
150 <term>-e, --encrypt</term>
151 <listitem><para>Enable SMB encryption.</para></listitem>
157 <title>SMB URLS</title>
159 <para> SMB URL's should be specified in the following format:</para>
161 <para><programlisting>
162 smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
163 </programlisting></para>
165 <para><programlisting>
166 smb:// means all the workgroups
167 </programlisting></para>
169 <para><programlisting>
170 smb://name/ means, if <replaceable>name</replaceable> is a workgroup, all the servers in this workgroup, or if <replaceable>name</replaceable> is a server, all the shares on this server.
171 </programlisting></para>
176 <title>EXAMPLES</title>
179 # Recursively download 'src' directory
180 smbget -R smb://rhonwyn/jelmer/src
181 # Download FreeBSD ISO and enable resuming
182 smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso
183 # Recursively download all ISOs
184 smbget -Rr smb://rhonwyn/isos
185 # Backup my data on rhonwyn
186 smbget -Rr smb://rhonwyn/
194 <para>Permission denied is returned in some cases where the cause of the error is unknown
195 (such as an illegally formatted smb:// url or trying to get a directory without -R
200 <title>VERSION</title>
202 <para>This man page is part of version &doc.version; of
203 the Samba suite.</para>
207 <title>AUTHOR</title>
209 <para>The original Samba software and related utilities
210 were created by Andrew Tridgell. Samba is now developed
211 by the Samba Team as an Open Source project similar
212 to the way the Linux kernel is developed.</para>
214 <para>The smbget manpage was written by Jelmer Vernooij.</para>