global change from samba.anu.edu.au to samba.org
[samba.git] / docs / htmldocs / smbtar.1.html
1
2
3  
4
5
6 <html><head><title>smbtar (1)</title>
7
8 <link rev="made" href="mailto:samba-bugs@samba.org">
9 </head>
10 <body>
11
12 <hr>
13
14 <h1>smbtar (1)</h1>
15 <h2>Samba</h2>
16 <h2>23 Oct 1998</h2>
17
18     
19
20     
21 <p><br><a name="NAME"></a>
22 <h2>NAME</h2>
23     smbtar - shell script for backing up SMB/CIFS shares directly to UNIX tape drives
24 <p><br><a name="SYNOPSIS"></a>
25 <h2>SYNOPSIS</h2>
26     
27 <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
28 <p><br><a name="DESCRIPTION"></a>
29 <h2>DESCRIPTION</h2>
30     
31 <p><br>This program is part of the <strong>Samba</strong> suite.
32 <p><br><strong>smbtar</strong> is a very small shell script on top of
33 <a href="smbclient.1.html"><strong>smbclient</strong></a> which dumps SMB shares directly
34 to tape.
35 <p><br><a name="OPTIONS"></a>
36 <h2>OPTIONS</h2>
37     
38 <p><br><ul>
39 <p><br><a name="minuss"></a>
40 <li><strong><strong>-s server</strong></strong> The SMB/CIFS server that the share resides upon.
41 <p><br><a name="minusx"></a>
42 <li><strong><strong>-x service</strong></strong> The share name on the server to connect
43 to. The default is <code>backup</code>.
44 <p><br><a name="minusX"></a>
45 <li><strong><strong>-X</strong></strong> Exclude mode. Exclude filenames... from tar create or
46 restore.
47 <p><br><a name="minusd"></a>
48 <li><strong><strong>-d directory</strong></strong> Change to initial <em>directory</em> before restoring
49 / backing up files.
50 <p><br><a name="minusv"></a>
51 <li><strong><strong>-v</strong></strong> Verbose mode.
52 <p><br><a name="minusp"></a>
53 <li><strong><strong>-p password</strong></strong> The password to use to access a share. Default:
54 none
55 <p><br><a name="minusu"></a>
56 <li><strong><strong>-u user</strong></strong> The user id to connect as. Default: UNIX login name.
57 <p><br><a name="minust"></a>
58 <li><strong><strong>-t tape</strong></strong> Tape device. May be regular file or tape
59 device. Default: <em>TAPE</em> environmental variable; if not set, a file
60 called <code>tar.out</code>.
61 <p><br><a name="minusb"></a>
62 <li><strong><strong>-b blocksize</strong></strong> Blocking factor. Defaults to 20. See <strong>tar (1)</strong>
63 for a fuller explanation.
64 <p><br><a name="minusN"></a>
65 <li><strong><strong>-N filename</strong></strong> Backup only files newer than filename. Could be
66 used (for example) on a log file to implement incremental backups.
67 <p><br><a name="minusi"></a>
68 <li><strong><strong>-i</strong></strong> Incremental mode; tar files are only backed up if they
69 have the archive bit set. The archive bit is reset after each file is
70 read.
71 <p><br><a name="minusr"></a>
72 <li><strong><strong>-r</strong></strong> Restore. Files are restored to the share from the tar
73 file.
74 <p><br><a name="minusl"></a>
75 <li><strong><strong>-l log level</strong></strong> Log (debug) level. Corresponds to the
76 <a href="smbclient.1.html#minusd"><strong>-d</strong></a> flag of <a href="smbclient.1.html"><strong>smbclient
77 (1)</strong></a>.
78 <p><br></ul>
79 <p><br><a name="ENVIRONMENTVARIABLES"></a>
80 <h2>ENVIRONMENT VARIABLES</h2>
81     
82 <p><br>The TAPE variable specifies the default tape device to write to. May
83 be overridden with the <a href="smbtar.1.html#minust"><strong>-t</strong></a> option.
84 <p><br><a name="BUGS"></a>
85 <h2>BUGS</h2>
86     
87 <p><br>The <strong>smbtar</strong> script has different options from ordinary tar and tar
88 called from <a href="smbclient.1.html"><strong>smbclient</strong></a>.
89 <p><br><a name="CAVEATS"></a>
90 <h2>CAVEATS</h2>
91     
92 <p><br>Sites that are more careful about security may not like the way the
93 script handles PC passwords. Backup and restore work on entire shares,
94 should work on file lists. <strong>smbtar</strong> works best with GNU tar and may
95 not work well with other versions.
96 <p><br><a name="VERSION"></a>
97 <h2>VERSION</h2>
98     
99 <p><br>This man page is correct for version 2.0 of the Samba suite.
100 <p><br><a name="SEEALSO"></a>
101 <h2>SEE ALSO</h2>
102     
103 <p><br><a href="smbclient.1.html"><strong>smbclient (1)</strong></a>, <a href="smb.conf.5.html"><strong>smb.conf
104 (5)</strong></a>
105 <p><br><a name="DIAGNOSTICS"></a>
106 <h2>DIAGNOSTICS</h2>
107     
108 <p><br>See the <a href="smbclient.1.html#DIAGNOSTICS"><strong>DIAGNOSTICS</strong></a> section for
109 the <a href="smbclient.1.html"><strong>smbclient</strong></a> command.
110 <p><br><a name="AUTHOR"></a>
111 <h2>AUTHOR</h2>
112     
113 <p><br>The original Samba software and related utilities were created by
114 Andrew Tridgell <a href="mailto:samba-bugs@samba.org"><em>samba-bugs@samba.org</em></a>. Samba is now developed
115 by the Samba Team as an Open Source project similar to the way the
116 Linux kernel is developed.
117 <p><br>Ricky Poulten <a href="mailto:poultenr@logica.co.uk"><em>poultenr@logica.co.uk</em></a> wrote the tar extension and
118 this man page. The <strong>smbtar</strong> script was heavily rewritten and
119 improved by Martin Kraemer <a href="mailto:Martin.Kraemer@mch.sni.de"><em>Martin.Kraemer@mch.sni.de</em></a>. Many
120 thanks to everyone who suggested extensions, improvements, bug fixes,
121 etc. The man page sources were converted to YODL format (another
122 excellent piece of Open Source software available at
123 <a href="ftp://ftp.icce.rug.nl/pub/unix/"><strong>ftp://ftp.icce.rug.nl/pub/unix/</strong></a>)
124 and updated for the Samba2.0 release by Jeremy Allison,
125 <a href="mailto:samba-bugs@samba.org"><em>samba-bugs@samba.org</em></a>.
126 <p><br>See <a href="samba.7.html"><strong>samba (7)</strong></a> to find out how to get a full
127 list of contributors and details on how to submit bug reports,
128 comments etc.
129 <p><br></body>
130 </html>