summaryrefslogtreecommitdiff
path: root/docs/htmldocs/smbtar.1.html
blob: ef416f2e6c3036f80128bef1ade164dd514b56b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130


 


<html><head><title>smbtar (1)</title>

<link rev="made" href="mailto:samba-bugs@samba.org">
</head>
<body>

<hr>

<h1>smbtar (1)</h1>
<h2>Samba</h2>
<h2>23 Oct 1998</h2>

    

    
<p><br><a name="NAME"></a>
<h2>NAME</h2>
    smbtar - shell script for backing up SMB/CIFS shares directly to UNIX tape drives
<p><br><a name="SYNOPSIS"></a>
<h2>SYNOPSIS</h2>
    
<p><br><strong>smbtar</strong> <a href="smbtar.1.html#minuss">-s server</a> [<a href="smbtar.1.html#minusp">-p password</a>] [<a href="smbtar.1.html#minusx">-x service</a>] [<a href="smbtar.1.html#minusX">-X</a>] [<a href="smbtar.1.html#minusd">-d directory</a>] [<a href="smbtar.1.html#minusu">-u user</a>] [<a href="smbtar.1.html#minust">-t tape</a>] [<a href="smbtar.1.html#minusb">-b blocksize</a>] [<a href="smbtar.1.html#minusN">-N filename</a>] [<a href="smbtar.1.html#minusi">-i</a>] [<a href="smbtar.1.html#minusr">-r</a>] [<a href="smbtar.1.html#minusl">-l log level</a>] [<a href="smbtar.1.html#minusv">-v</a>] filenames
<p><br><a name="DESCRIPTION"></a>
<h2>DESCRIPTION</h2>
    
<p><br>This program is part of the <strong>Samba</strong> suite.
<p><br><strong>smbtar</strong> is a very small shell script on top of
<a href="smbclient.1.html"><strong>smbclient</strong></a> which dumps SMB shares directly
to tape.
<p><br><a name="OPTIONS"></a>
<h2>OPTIONS</h2>
    
<p><br><ul>
<p><br><a name="minuss"></a>
<li><strong><strong>-s server</strong></strong> The SMB/CIFS server that the share resides upon.
<p><br><a name="minusx"></a>
<li><strong><strong>-x service</strong></strong> The share name on the server to connect
to. The default is <code>backup</code>.
<p><br><a name="minusX"></a>
<li><strong><strong>-X</strong></strong> Exclude mode. Exclude filenames... from tar create or
restore.
<p><br><a name="minusd"></a>
<li><strong><strong>-d directory</strong></strong> Change to initial <em>directory</em> before restoring
/ backing up files.
<p><br><a name="minusv"></a>
<li><strong><strong>-v</strong></strong> Verbose mode.
<p><br><a name="minusp"></a>
<li><strong><strong>-p password</strong></strong> The password to use to access a share. Default:
none
<p><br><a name="minusu"></a>
<li><strong><strong>-u user</strong></strong> The user id to connect as. Default: UNIX login name.
<p><br><a name="minust"></a>
<li><strong><strong>-t tape</strong></strong> Tape device. May be regular file or tape
device. Default: <em>TAPE</em> environmental variable; if not set, a file
called <code>tar.out</code>.
<p><br><a name="minusb"></a>
<li><strong><strong>-b blocksize</strong></strong> Blocking factor. Defaults to 20. See <strong>tar (1)</strong>
for a fuller explanation.
<p><br><a name="minusN"></a>
<li><strong><strong>-N filename</strong></strong> Backup only files newer than filename. Could be
used (for example) on a log file to implement incremental backups.
<p><br><a name="minusi"></a>
<li><strong><strong>-i</strong></strong> Incremental mode; tar files are only backed up if they
have the archive bit set. The archive bit is reset after each file is
read.
<p><br><a name="minusr"></a>
<li><strong><strong>-r</strong></strong> Restore. Files are restored to the share from the tar
file.
<p><br><a name="minusl"></a>
<li><strong><strong>-l log level</strong></strong> Log (debug) level. Corresponds to the
<a href="smbclient.1.html#minusd"><strong>-d</strong></a> flag of <a href="smbclient.1.html"><strong>smbclient
(1)</strong></a>.
<p><br></ul>
<p><br><a name="ENVIRONMENTVARIABLES"></a>
<h2>ENVIRONMENT VARIABLES</h2>
    
<p><br>The TAPE variable specifies the default tape device to write to. May
be overridden with the <a href="smbtar.1.html#minust"><strong>-t</strong></a> option.
<p><br><a name="BUGS"></a>
<h2>BUGS</h2>
    
<p><br>The <strong>smbtar</strong> script has different options from ordinary tar and tar
called from <a href="smbclient.1.html"><strong>smbclient</strong></a>.
<p><br><a name="CAVEATS"></a>
<h2>CAVEATS</h2>
    
<p><br>Sites that are more careful about security may not like the way the
script handles PC passwords. Backup and restore work on entire shares,
should work on file lists. <strong>smbtar</strong> works best with GNU tar and may
not work well with other versions.
<p><br><a name="VERSION"></a>
<h2>VERSION</h2>
    
<p><br>This man page is correct for version 2.0 of the Samba suite.
<p><br><a name="SEEALSO"></a>
<h2>SEE ALSO</h2>
    
<p><br><a href="smbclient.1.html"><strong>smbclient (1)</strong></a>, <a href="smb.conf.5.html"><strong>smb.conf
(5)</strong></a>
<p><br><a name="DIAGNOSTICS"></a>
<h2>DIAGNOSTICS</h2>
    
<p><br>See the <a href="smbclient.1.html#DIAGNOSTICS"><strong>DIAGNOSTICS</strong></a> section for
the <a href="smbclient.1.html"><strong>smbclient</strong></a> command.
<p><br><a name="AUTHOR"></a>
<h2>AUTHOR</h2>
    
<p><br>The original Samba software and related utilities were created by
Andrew Tridgell <a href="mailto:samba-bugs@samba.org"><em>samba-bugs@samba.org</em></a>. Samba is now developed
by the Samba Team as an Open Source project similar to the way the
Linux kernel is developed.
<p><br>Ricky Poulten <a href="mailto:poultenr@logica.co.uk"><em>poultenr@logica.co.uk</em></a> wrote the tar extension and
this man page. The <strong>smbtar</strong> script was heavily rewritten and
improved by Martin Kraemer <a href="mailto:Martin.Kraemer@mch.sni.de"><em>Martin.Kraemer@mch.sni.de</em></a>. Many
thanks to everyone who suggested extensions, improvements, bug fixes,
etc. The man page sources were converted to YODL format (another
excellent piece of Open Source software available at
<a href="ftp://ftp.icce.rug.nl/pub/unix/"><strong>ftp://ftp.icce.rug.nl/pub/unix/</strong></a>)
and updated for the Samba2.0 release by Jeremy Allison,
<a href="mailto:samba-bugs@samba.org"><em>samba-bugs@samba.org</em></a>.
<p><br>See <a href="samba.7.html"><strong>samba (7)</strong></a> to find out how to get a full
list of contributors and details on how to submit bug reports,
comments etc.
<p><br></body>
</html>