1SMBGET(1) User Commands SMBGET(1)
2
3
4
6 smbget - wget-like utility for download files over SMB
7
9 smbget [-a, --guest] [-r, --resume] [-R, --recursive]
10 [-u, --username=STRING] [-p, --password=STRING]
11 [-w, --workgroup=STRING] [-n, --nonprompt] [-d, --debuglevel=INT]
12 [-D, --dots] [-P, --keep-permissions] [-o, --outputfile]
13 [-f, --rcfile] [-q, --quiet] [-v, --verbose] [-b, --blocksize]
14 [-O, --stdout] [-?, --help] [--usage] {smb://host/share/path/to/file}
15 [smb://url2/] [...]
16
18 This tool is part of the samba(7) suite.
19
20 smbget is a simple utility with wget-like semantics, that can download
21 files from SMB servers. You can specify the files you would like to
22 download on the command-line.
23
24 The files should be in the smb-URL standard, e.g. use
25 smb://host/share/file for the UNC path \\\\HOST\\SHARE\\file.
26
28 -a, --guest
29 Work as user guest
30
31 -r, --resume
32 Automatically resume aborted files
33
34 -R, --recursive
35 Recursively download files
36
37 -u, --username=STRING
38 Username to use
39
40 -p, --password=STRING
41 Password to use
42
43 -w, --workgroup=STRING
44 Workgroup to use (optional)
45
46 -n, --nonprompt
47 Don't ask anything (non-interactive)
48
49 -d, --debuglevel=INT
50 Debuglevel to use
51
52 -D, --dots
53 Show dots as progress indication
54
55 -P, --keep-permissions
56 Set same permissions on local file as are set on remote file.
57
58 -o, --outputfile
59 Write the file that is being downloaded to the specified file. Can
60 not be used together with -R.
61
62 -O, --stdout
63 Write the file that is being downloaded to standard output.
64
65 -f, --rcfile
66 Use specified rcfile. This will be loaded in the order it was
67 specified - e.g. if you specify any options before this one, they
68 might get overridden by the contents of the rcfile.
69
70 -q, --quiet
71 Be quiet
72
73 -v, --verbose
74 Be verbose
75
76 -b, --blocksize
77 Number of bytes to download in a block. Defaults to 64000.
78
79 -?, --help
80 Show help message
81
82 --usage
83 Display brief usage message
84
86 SMB URL's should be specified in the following format:
87
88 smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
89
90 smb:// means all the workgroups
91
92 smb://name/ means, if name is a workgroup, all the servers in this workgroup, or if name is a server, all the shares on this server.
93
95 # Recursively download 'src' directory
96 smbget -R smb://rhonwyn/jelmer/src
97 # Download FreeBSD ISO and enable resuming
98 smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso
99 # Recursively download all ISOs
100 smbget -Rr smb://rhonwyn/isos
101 # Backup my data on rhonwyn
102 smbget -Rr smb://rhonwyn/
103
105 Permission denied is returned in some cases where the cause of the
106 error is unknown (such as an illegally formatted smb:// url or trying
107 to get a directory without -R turned on).
108
110 This man page is correct for version 3 of the Samba suite.
111
113 The original Samba software and related utilities were created by
114 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
115 Source project similar to the way the Linux kernel is developed.
116
117 The smbget manpage was written by Jelmer Vernooij.
118
119
120
121Samba 3.6 04/11/2016 SMBGET(1)