| 1 | .\" Title: smbget
|
|---|
| 2 | .\" Author:
|
|---|
| 3 | .\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
|
|---|
| 4 | .\" Date: 08/18/2008
|
|---|
| 5 | .\" Manual: User Commands
|
|---|
| 6 | .\" Source: Samba 3.2
|
|---|
| 7 | .\"
|
|---|
| 8 | .TH "SMBGET" "1" "08/18/2008" "Samba 3\.2" "User Commands"
|
|---|
| 9 | .\" disable hyphenation
|
|---|
| 10 | .nh
|
|---|
| 11 | .\" disable justification (adjust text to left margin only)
|
|---|
| 12 | .ad l
|
|---|
| 13 | .SH "NAME"
|
|---|
| 14 | smbget - wget-like utility for download files over SMB
|
|---|
| 15 | .SH "SYNOPSIS"
|
|---|
| 16 | .HP 1
|
|---|
| 17 | 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] [\-?,\ \-\-help] [\-\-usage] {smb://host/share/path/to/file} [smb://url2/] [\.\.\.]
|
|---|
| 18 | .SH "DESCRIPTION"
|
|---|
| 19 | .PP
|
|---|
| 20 | This tool is part of the
|
|---|
| 21 | \fBsamba\fR(7)
|
|---|
| 22 | suite\.
|
|---|
| 23 | .PP
|
|---|
| 24 | 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\.
|
|---|
| 25 | .PP
|
|---|
| 26 | The files should be in the smb\-URL standard, e\.g\. use smb://host/share/file for the UNC path
|
|---|
| 27 | \fI\e\e\e\eHOST\e\eSHARE\e\efile\fR\.
|
|---|
| 28 | .SH "OPTIONS"
|
|---|
| 29 | .PP
|
|---|
| 30 | \-a, \-\-guest
|
|---|
| 31 | .RS 4
|
|---|
| 32 | Work as user guest
|
|---|
| 33 | .RE
|
|---|
| 34 | .PP
|
|---|
| 35 | \-r, \-\-resume
|
|---|
| 36 | .RS 4
|
|---|
| 37 | Automatically resume aborted files
|
|---|
| 38 | .RE
|
|---|
| 39 | .PP
|
|---|
| 40 | \-R, \-\-recursive
|
|---|
| 41 | .RS 4
|
|---|
| 42 | Recursively download files
|
|---|
| 43 | .RE
|
|---|
| 44 | .PP
|
|---|
| 45 | \-u, \-\-username=STRING
|
|---|
| 46 | .RS 4
|
|---|
| 47 | Username to use
|
|---|
| 48 | .RE
|
|---|
| 49 | .PP
|
|---|
| 50 | \-p, \-\-password=STRING
|
|---|
| 51 | .RS 4
|
|---|
| 52 | Password to use
|
|---|
| 53 | .RE
|
|---|
| 54 | .PP
|
|---|
| 55 | \-w, \-\-workgroup=STRING
|
|---|
| 56 | .RS 4
|
|---|
| 57 | Workgroup to use (optional)
|
|---|
| 58 | .RE
|
|---|
| 59 | .PP
|
|---|
| 60 | \-n, \-\-nonprompt
|
|---|
| 61 | .RS 4
|
|---|
| 62 | Don\'t ask anything (non\-interactive)
|
|---|
| 63 | .RE
|
|---|
| 64 | .PP
|
|---|
| 65 | \-d, \-\-debuglevel=INT
|
|---|
| 66 | .RS 4
|
|---|
| 67 | Debuglevel to use
|
|---|
| 68 | .RE
|
|---|
| 69 | .PP
|
|---|
| 70 | \-D, \-\-dots
|
|---|
| 71 | .RS 4
|
|---|
| 72 | Show dots as progress indication
|
|---|
| 73 | .RE
|
|---|
| 74 | .PP
|
|---|
| 75 | \-P, \-\-keep\-permissions
|
|---|
| 76 | .RS 4
|
|---|
| 77 | Set same permissions on local file as are set on remote file\.
|
|---|
| 78 | .RE
|
|---|
| 79 | .PP
|
|---|
| 80 | \-o, \-\-outputfile
|
|---|
| 81 | .RS 4
|
|---|
| 82 | Write the file that is being download to the specified file\. Can not be used together with \-R\.
|
|---|
| 83 | .RE
|
|---|
| 84 | .PP
|
|---|
| 85 | \-f, \-\-rcfile
|
|---|
| 86 | .RS 4
|
|---|
| 87 | 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 overriden by the contents of the rcfile\.
|
|---|
| 88 | .RE
|
|---|
| 89 | .PP
|
|---|
| 90 | \-q, \-\-quiet
|
|---|
| 91 | .RS 4
|
|---|
| 92 | Be quiet
|
|---|
| 93 | .RE
|
|---|
| 94 | .PP
|
|---|
| 95 | \-v, \-\-verbose
|
|---|
| 96 | .RS 4
|
|---|
| 97 | Be verbose
|
|---|
| 98 | .RE
|
|---|
| 99 | .PP
|
|---|
| 100 | \-b, \-\-blocksize
|
|---|
| 101 | .RS 4
|
|---|
| 102 | Number of bytes to download in a block\. Defaults to 64000\.
|
|---|
| 103 | .RE
|
|---|
| 104 | .PP
|
|---|
| 105 | \-?, \-\-help
|
|---|
| 106 | .RS 4
|
|---|
| 107 | Show help message
|
|---|
| 108 | .RE
|
|---|
| 109 | .PP
|
|---|
| 110 | \-\-usage
|
|---|
| 111 | .RS 4
|
|---|
| 112 | Display brief usage message
|
|---|
| 113 | .RE
|
|---|
| 114 | .SH "SMB URLS"
|
|---|
| 115 | .PP
|
|---|
| 116 | SMB URL\'s should be specified in the following format:
|
|---|
| 117 | .PP
|
|---|
| 118 | .RS 4
|
|---|
| 119 | .nf
|
|---|
| 120 | smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
|
|---|
| 121 | .fi
|
|---|
| 122 | .RE
|
|---|
| 123 | .PP
|
|---|
| 124 | .RS 4
|
|---|
| 125 | .nf
|
|---|
| 126 | smb:// means all the workgroups
|
|---|
| 127 | .fi
|
|---|
| 128 | .RE
|
|---|
| 129 | .PP
|
|---|
| 130 | .RS 4
|
|---|
| 131 | .nf
|
|---|
| 132 | 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\.
|
|---|
| 133 | .fi
|
|---|
| 134 | .RE
|
|---|
| 135 | .SH "EXAMPLES"
|
|---|
| 136 | .sp
|
|---|
| 137 | .RS 4
|
|---|
| 138 | .nf
|
|---|
| 139 | # Recursively download \'src\' directory
|
|---|
|
|---|