source: trunk/samba-3.0.25pre1/docs/htmldocs/manpages/smbtar.1.html @ 1

Last change on this file since 1 was 1, checked in by Paul Smedley, 14 years ago

Initial code import

File size: 6.2 KB
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>smbtar</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="smbtar.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>smbtar &#8212; shell script for backing up SMB/CIFS shares
2        directly to UNIX tape drives</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">smbtar</code>  [-r] [-i] [-a] [-v] {-s server} [-p password] [-x services] [-X] [-N filename] [-b blocksize] [-d directory] [-l loglevel] [-u user] [-t tape] {filenames}</p></div></div><div class="refsect1" lang="en"><a name="id231202"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p><span><strong class="command">smbtar</strong></span> is a very small shell script on top
3        of <a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a> which dumps SMB shares directly to tape.</p></div><div class="refsect1" lang="en"><a name="id231436"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-s server</span></dt><dd><p>The SMB/CIFS server that the share resides
4                upon.</p></dd><dt><span class="term">-x service</span></dt><dd><p>The share name on the server to connect to.
5                The default is "backup".</p></dd><dt><span class="term">-X</span></dt><dd><p>Exclude mode. Exclude filenames... from tar
6                create or restore. </p></dd><dt><span class="term">-d directory</span></dt><dd><p>Change to initial <em class="parameter"><code>directory
7                </code></em> before restoring / backing up files. </p></dd><dt><span class="term">-v</span></dt><dd><p>Verbose mode.</p></dd><dt><span class="term">-p password</span></dt><dd><p>The password to use to access a share.
8                Default: none </p></dd><dt><span class="term">-u user</span></dt><dd><p>The user id to connect as. Default:
9                UNIX login name. </p></dd><dt><span class="term">-a</span></dt><dd><p>Reset DOS archive bit mode to
10                indicate file has been archived. </p></dd><dt><span class="term">-t tape</span></dt><dd><p>Tape device. May be regular file or tape
11                device. Default: <em class="parameter"><code>$TAPE</code></em> environmental
12                variable; if not set, a file called <code class="filename">tar.out
13                </code>. </p></dd><dt><span class="term">-b blocksize</span></dt><dd><p>Blocking factor. Defaults to 20. See
14                <span><strong class="command">tar(1)</strong></span> for a fuller explanation. </p></dd><dt><span class="term">-N filename</span></dt><dd><p>Backup only files newer than filename. Could
15                be used (for example) on a log file to implement incremental
16                backups. </p></dd><dt><span class="term">-i</span></dt><dd><p>Incremental mode; tar files are only backed
17                up if they have the archive bit set. The archive bit is reset
18                after each file is read. </p></dd><dt><span class="term">-r</span></dt><dd><p>Restore. Files are restored to the share
19                from the tar file. </p></dd><dt><span class="term">-l log level</span></dt><dd><p>Log (debug) level. Corresponds to the
20                <em class="parameter"><code>-d</code></em> flag of <a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a>.</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id230591"></a><h2>ENVIRONMENT VARIABLES</h2><p>The <em class="parameter"><code>$TAPE</code></em> variable specifies the
21        default tape device to write to. May be overridden
22        with the -t option. </p></div><div class="refsect1" lang="en"><a name="id230608"></a><h2>BUGS</h2><p>The <span><strong class="command">smbtar</strong></span> script has different
23        options from ordinary tar and from smbclient's tar command. </p></div><div class="refsect1" lang="en"><a name="id230623"></a><h2>CAVEATS</h2><p>Sites that are more careful about security may not like
24        the way the script handles PC passwords. Backup and restore work
25        on entire shares; should work on file lists. smbtar works best
26        with GNU tar and may not work well with other versions. </p></div><div class="refsect1" lang="en"><a name="id230635"></a><h2>DIAGNOSTICS</h2><p>See the <span class="emphasis"><em>DIAGNOSTICS</em></span> section for the <a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a> command.</p></div><div class="refsect1" lang="en"><a name="id271756"></a><h2>VERSION</h2><p>This man page is correct for version 3.0 of
27        the Samba suite.</p></div><div class="refsect1" lang="en"><a name="id271766"></a><h2>SEE ALSO</h2><p><a href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a>, <a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a>, <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a>.</p></div><div class="refsect1" lang="en"><a name="id271799"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities
28        were created by Andrew Tridgell. Samba is now developed
29        by the Samba Team as an Open Source project similar
30        to the way the Linux kernel is developed.</p><p><a href="" target="_top">Ricky Poulten</a> 
31        wrote the tar extension and this man page. The <span><strong class="command">smbtar</strong></span> 
32        script was heavily rewritten and improved by <a href="" target="_top">Martin Kraemer</a>. Many
33        thanks to everyone who suggested extensions, improvements, bug
34        fixes, etc. The man page sources were converted to YODL format (another
35        excellent piece of Open Source software, available at <a href="" target="_top">
36</a>) and updated for the Samba 2.0
37        release by Jeremy Allison.  The conversion to DocBook for
38        Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for
39        Samba 3.0 was done by Alexander Bokovoy.</p></div></div></body></html>
Note: See TracBrowser for help on using the repository browser.