1SMBGET(1)                        User Commands                       SMBGET(1)
2
3
4

NAME

6       smbget - wget-like utility for download files over SMB
7

SYNOPSIS

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] [-U, --update] [-?, --help] [--usage]
15        {smb://host/share/path/to/file} [smb://url2/] [...]
16

DESCRIPTION

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

OPTIONS

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
85       -U, --update
86           Download only when remote file is newer than local file or local
87           file is missing.
88
89       -e|--encrypt
90           This command line parameter requires the remote server support the
91           UNIX extensions or that the SMB3 protocol has been selected.
92           Requests that the connection be encrypted. Negotiates SMB
93           encryption using either SMB3 or POSIX extensions via GSSAPI. Uses
94           the given credentials for the encryption negotiation (either
95           kerberos or NTLMv1/v2 if given domain/username/password triple.
96           Fails the connection if encryption cannot be negotiated.
97

SMB URLS

99       SMB URL´s should be specified in the following format:
100
101           smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]
102
103           smb:// means all the workgroups
104
105           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.
106

EXAMPLES

108           # Recursively download ´src´ directory
109           smbget -R smb://rhonwyn/jelmer/src
110           # Download FreeBSD ISO and enable resuming
111           smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso
112           # Recursively download all ISOs
113           smbget -Rr smb://rhonwyn/isos
114           # Backup my data on rhonwyn
115           smbget -Rr smb://rhonwyn/
116

BUGS

118       Permission denied is returned in some cases where the cause of the
119       error is unknown (such as an illegally formatted smb:// url or trying
120       to get a directory without -R turned on).
121

VERSION

123       This man page is correct for version 3 of the Samba suite.
124

AUTHOR

126       The original Samba software and related utilities were created by
127       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
128       Source project similar to the way the Linux kernel is developed.
129
130       The smbget manpage was written by Jelmer Vernooij.
131
132
133
134Samba 4.2                         06/19/2018                         SMBGET(1)
Impressum